2016/06/21

How to install VirtualBox Guest Additions on Ubuntu Server 14.04

sudo apt-get install -y dkms build-essential linux-headers-generic linux-headers-$(uname -r)
sudo mount /dev/cdrom /media/cdrom
ls -l /media/cdrom/
sudo /media/cdrom/VBoxLinuxAdditions.run

2016/06/17

How to install Docker Bugzilla on Ubuntu 14.04

[user@localhost ~]$ sudo su
[root@localhost ~]$ apt-get update
[root@localhost ~]$ apt-get install -y python-pip
[root@localhost ~]$ curl -L https://github.com/docker/fig/releases/download/1.0.1/fig-`uname -s`-`uname -m` > /usr/local/bin/fig; chmod +x /usr/local/bin/fig
[root@localhost ~]$ pip install -U fig
[root@localhost ~]$ git clone https://github.com/dklawren/docker-bugzilla-fig.git docker-bugzilla
[root@localhost ~]$ cd docker-bugzilla
[root@localhost ~]$ fig up

Open web browser and type URL "http://localhost/bugzilla" to login.

ADMIN_EMAIL = admin@example.com
ADMIN_PASSWORD = password

2016/06/12

How to install Redmine 2.4.2 on Ubuntu 14.04

-------Install Prerequisites-------
sudo su
apt-get update && apt-get -y upgrade
apt-get -y install apache2 libapache2-mod-passenger mysql-server mysql-client
apt-get -y install redmine redmine-mysql

-------Edit passenger.conf-------
nano /etc/apache2/mods-available/passenger.conf

PassengerDefaultUser www-data
PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
PassengerDefaultRuby /usr/bin/ruby

ln -s /usr/share/redmine/public /var/www/redmine
gem install bundler

2016/06/11

How to install Ruby 2.2 on Ubuntu 14.04

apt-get -y install rbenv
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
rbenv install 2.2.0
rbenv global 2.2.0
ruby -v

2016/06/09

How to install Nagios Core Server and Client Agent on Ubuntu Server 14.04

-------Install Prerequisites-------
[user@localhost ~]$ sudo su
[root@localhost ~]$ apt-get update
[root@localhost ~]$ apt-get -y install build-essential libgd2-xpm-dev apache2 apache2-utils unzip
[root@localhost ~]$ useradd -m nagios
[root@localhost ~]$ passwd nagios
[root@localhost ~]$ groupadd nagcmd
[root@localhost ~]$ usermod -a -G nagcmd nagios
[root@localhost ~]$ usermod -a -G nagcmd www-data

-------Install Nagios Core Server-------
[root@localhost ~]$ wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.1.1.tar.gz
[root@localhost ~]$ tar xzf nagios-4.1.1.tar.gz
[root@localhost ~]$ cd nagios-4.1.1
[root@localhost ~]$ ./configure --with-command-group=nagcmd
[root@localhost ~]$ make all
[root@localhost ~]$ make install-webconf
[root@localhost ~]$ /usr/bin/install -c -m 644 sample-config/httpd.conf /etc/apache2/sites-enabled/nagios.conf
[root@localhost ~]$ ls -l /etc/apache2/sites-enabled/

2016/06/07

How to change Hostname and add new user on Ubuntu

[user@localhost ~]$ sudo nano /etc/hostname
[user@localhost ~]$ sudo nano /etc/hosts

ubuntu-vm

[user@localhost ~]$sudo hostname

[user@localhost ~]$ sudo useradd -m newuser
[user@localhost ~]$ sudo passwd newuser

2016/06/03

How to install Openfire 4.0.2 on Ubuntu Server 14.04

-------Install OpenJDK 7 and MySQL 5.6-------
apt-get update
apt-get install -y openjdk-7-jre
apt-get install -y mysql-server-5.6
mysql -u root -p
CREATE DATABASE openfire CHARACTER SET='utf8′;
CREATE USER 'openfire'@'localhost' IDENTIFIED BY 'openfire';
GRANT ALL PRIVILEGES ON openfire.* TO openfire@localhost WITH GRANT OPTION;
FLUSH PRIVILEGES;
quit