2018/06/07

How to install Kubernetes on Ubuntu 16.04

System Preparation
sudo su
apt update && apt install -y apt-transport-https curl ca-certificates software-properties-common

Install Docker 17.03
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
   $(lsb_release -cs) \
   stable"
apt update && apt install -y docker-ce=$(apt-cache madison docker-ce | grep 17.03 | head -1 | awk '{print $3}')
systemctl enable docker
docker info

2018/05/28

How to install MantisBT on Ubuntu 16.04

sudo su
apt update && apt upgrade -y
apt install -y apache2 libapache2-mod-php7.0 php7.0 php7.0-mysql php7.0-xml php-mbstring mysql-server
mysql -uroot -p
CREATE DATABASE mantisbt;
CREATE USER 'mantisbt'@'localhost' IDENTIFIED BY 'mantisbt';
GRANT ALL PRIVILEGES ON mantis.* TO 'mantisbt'@'localhost' IDENTIFIED BY 'mantisbt' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit

2018/05/04

How to install Rocket.Chat on Ubuntu Server 16.04

Install required packages
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
apt update
apt install -y graphicsmagick build-essential mongodb-org nodejs

Start MongoDB
systemctl start mongod
systemctl enable mongod

Download and install Rocket.Chat
cd /opt
wget https://cdn-download.rocket.chat/build/rocket.chat-0.64.0.tgz
tar xzf rocket.chat-0.64.0.tgz
mv bundle Rocket.Chat
cd Rocket.Chat/programs/server
npm install
cd ../..
export ROOT_URL=http://localhost/
export MONGO_URL=mongodb://localhost:27017/rocketchat
export PORT=3000
node main.js


Ctrl+C to stop service

2018/04/10

How to install Prometheus and Grafana on Ubuntu Server 16.04

Monitor Server
sudo su
sudo apt update
sudo apt -y upgrade

Install Go

curl -O https://storage.googleapis.com/golang/go1.10.1.linux-amd64.tar.gz
tar -xvf go1.10.1.linux-amd64.tar.gz
mv go /usr/local

nano ~/.profile
export PATH=$PATH:/usr/local/go/bin

source ~/.profile
go version
go version go1.10.1 linux/amd64

2018/04/03

How to install LibreNMS on Ubuntu Server 16.04

System update and install package
sudo su
apt install software-properties-common
add-apt-repository ppa:ondrej/php
apt update
apt install -y apache2 composer fping git graphviz imagemagick libapache2-mod-php7.2 mariadb-client mariadb-server mtr-tiny nmap php7.2-cli php7.2-curl php7.2-gd php7.2-json php7.2-mbstring php7.2-mcrypt php7.2-mysql php7.2-snmp php7.2-xml php7.2-zip python-memcache python-mysqldb rrdtool snmp snmpd whois sendmail

Configure DB
mysql -uroot -p
CREATE DATABASE librenmsdb;
CREATE USER 'librenmsuser'@'localhost' IDENTIFIED BY 'librenmspwd';
GRANT ALL PRIVILEGES ON librenmsdb.* TO 'librenmsuser'@'localhost';
exit

nano /etc/mysql/mariadb.conf.d/50-server.cnf
innodb_file_per_table=1
sql-mode=""
lower_case_table_names=0

/lib/systemd/systemd-sysv-install enable mysql
systemctl restart mysql

2018/03/23

Linux Machine Hardware Information Check Tool

dmidecode
https://www.nongnu.org/dmidecode/
Release download
http://download.savannah.gnu.org/releases/dmidecode/

apt-get install dmidecode
or
yum install dmidecode