How To Install OTRS on Ubuntu 16.04 LTS

Install OTRS on Ubuntu 16

OTRS (Open-Source Ticket Request System) is a web-based ticketing system, widely used by businesses for services like customer support, help desks and call centres. The software is separated into several parts, the main section being the OTRS framework, which contains all central functions for the application and the ticket system.

Install OTRS on Ubuntu 16.04 LTS

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation OTRS on a Ubuntu 16.04 (Xenial Xerus) server.

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing MariaDB.

Install MariaDB on the server using apt-get command:

sudo apt-get install mariadb-server

By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB:

mysql_secure_installation

Configure it like this:

- Set root password? [Y/n] y
- Remove anonymous users? [Y/n] y
- Disallow root login remotely? [Y/n] y
- Remove test database and access to it? [Y/n] y
- Reload privilege tables now? [Y/n] y

Once installed, OTRS require that you change the following settings:

nano /etc/mysql/my.cnf

Under the [mysqld] section, paste:

max_allowed_packet = 20M
query_cache_size = 32M
innodb_log_file_size = 256M

Start MariaDB with system:

systemctl start mysql
systemctl enable mysql

Step 3. Installing OTRS (OpenSource Trouble Ticket System).

First thing to do is to go to OTRS’s download page and download the latest stable version of OTRS:

wget https://www.otrs.com/thank-you-for-downloading-the-otrs-software/?download=otrs-5.0.16.tar.bz2

Unpack the OTRS archive to the document root directory on your server:

tar xpf otrs-5.0.16.tar.bz2
mv otrs-5.0.16 /opt/otrs

Check if the system contains all required PERL modules and install required modules with apt (as suggested by the script), executing the command:

perl /opt/otrs/bin/otrs.CheckModules.pl

Create a OTRS user:

useradd -d /opt/otrs -c 'OTRS user' otrs
usermod -G www-data otrs

Default config files In /opt/otrs, execute the following command:

cp Kernel/Config.pm.dist Kernel/Config.pm

Step 4. Configure Apache web server.

Check installed modules and configure Apache:

perl -cw /opt/otrs/bin/cgi-bin/index.pl
perl -cw /opt/otrs/bin/cgi-bin/customer.pl
perl -cw /opt/otrs/bin/otrs.Console.pl

If the response is “syntax OK” for all, it means that the Perl modules have been installed successfully.

Next, install the Apache web server and mod_perl, using apt-get command:

apt-get install apache2 libapache2-mod-perl2

In /opt/otrs there is a configuration file for Apache. Link it to the webserver configuration directory:

ln -s /opt/otrs/scripts/apache2-httpd.include.conf /etc/apache2/conf-enabled/zzz_otrs.conf

OTRS requires a few Apache modules to be active for optimal operation:

a2enmod perl
a2enmod headers
a2enmod version
a2enmod deflate
a2enmod filter

Finally, Restart the webserver so it will load new configurations:

systemctl restart apache2

We will need to change some folders permissions:

bin/otrs.SetPermissions.pl --web-group=www-data

Step 5. Accessing OTRS.

OTRS will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/otrs/installer.pl or http://server-ip/otrs/installer.pl and complete the required the steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.
OTRS
Congratulation’s! You have successfully installed OTRS. Thanks for using this tutorial for installing OTRS (OpenSource Trouble Ticket System) on Ubuntu 16.04 Xenial Xerus server. For additional help or useful information, we recommend you to check the official OTRS web site.

How To Install Vivaldi Browser on Ubuntu 16.04 LTS

Install Vivaldi Browser on Ubuntu 16

Vivaldi is a feature-rich, next-generation web browser application based on the powerful and open source Chromium project, from which the popular Google Chrome web browser is derived. The application is freely distributed and cross-platform, created by the former CEO of Opera Software, built using modern Web technologies like React, JavaScript, Node.js, and Browserify.

Install Vivaldi Browser on Ubuntu 16.04 LTS

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Vivaldi Browser on a Ubuntu 16.04 (Xenial Xerus) server.

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing Vivaldi Browser.

Download the deb package of Vivaldi and then install it with Ubuntu software center or use dpkg tool to install it:

### Ubuntu 32 bit ###
wget https://downloads.vivaldi.com/stable/vivaldi-stable_1.6.689.34-1_i386.deb
sudo dpkg -i vivaldi-stable_1.6.689.34-1_i386.deb

### Ubuntu 64 bit ###
wget https://downloads.vivaldi.com/stable/vivaldi-stable_1.6.689.34-1_amd64.deb
sudo dpkg -i vivaldi-stable_1.6.689.34-1_amd64.deb

Once installed, open Vivaldi web browser from Ubuntu Dash or Terminal. Run “vivaldi” command in Terminal. (without quotes):

vivaldi

Congratulation’s! You have successfully installed Vivaldi. Thanks for using this tutorial for installing Vivaldi browser on Ubuntu 16.04 LTS (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official Vivaldi browser web site.

How To Install Monit on Ubuntu 16.04 LTS

Install Monit on Ubuntu 16

Monit is a opensource process tool for Linux operating system which helps you to monitor system process using web browser and also when ever requires it automatically do the maintenance or repair of particular process in such a way that it can be brought back online. The monitoring can be directly on the command line or on the web. You can assign Monit multiple tasks (not only monitoring), so if a certain service fails the check, Monit can alert or do something about it (try to restart the service for example).

Install Monit on Ubuntu 16.04 LTS

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Monit monitoring tool on a Ubuntu 16.04 (Xenial Xerus) server.

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing Monit and Apache web server.

Run the following commands in Terminal:

apt-get install apache2 libapache2-mod-php
apt-get install monit

Step 3. Configure Monit monitoring tool.

After the installation is complete, edit the main config file to resemble the example below using your favorite text editor and set your own username and password:

nano /etc/monit/monitrc

set httpd port 2812 and # # set the listening port to your desire.

use address localhost # only accept connection from localhost
allow localhost # allow localhost to connect to the server and
allow admin:monit # require user 'admin' with password 'monit'
allow @monit # allow users of group 'monit' to connect (rw)
allow @users readonly # allow users of group 'users' to connect readonly

Once you’ve configured it, you need to start the monit service to reload the new configuration settings:

systemctl restart monit.service

Step 4. Configuring Programs Self Monitoring using Monit.

Once the initial config is completed, we can configure some of the services we want to monitor. To do this, we will create separate files for every service located within the /etc/monit.d/ directory. Following are some useful configuration examples for monit, that can be very helpful to see how a service is running, where it keeps its pidfile and how to start and stop a service etc:

## SSH ##
# nano /etc/monit.d/ssh
start program “/etc/init.d/sshd start”
stop program “/etc/init.d/sshd stop”
if failed port 22 protocol ssh then restart
## Webserver ##
# nano /etc/monit.d/http
check process webserver with pidfile /var/run/httpd/httpd.pid
group apache
start program = “/etc/init.d/httpd start”
stop program = “/etc/init.d/httpd stop”
if failed host 0.0.0.0 port 80 then restart
# nano /etc/monit.d/ntp
check process ntpd with pidfile /var/run/ntpd.pid
start program = “/etc/init.d/ntpd start”
stop program = “/etc/init.d/ntpd stop”
if failed host 127.0.0.1 port 123 type udp then alert

After adding required services in monit monitoring configuration file, Use the below command to verify syntax of file:

monit -t

Finally, restart monit service:

systemctl restart monit.service

The configuration file is pretty self-explaining, if you are unsure about an option, take a look at the Monit documentation.

Step 5. Accessing Monit.

Monit will be available on HTTP port 2812 by default. Open your favorite browser and navigate to http://your-domain.com:2812 or http://server-ip:2812 and and then enter the credentials you created in conf above.

Congratulation’s! You have successfully installed Monit. Thanks for using this tutorial for installing Monit monitoring tool on Ubuntu 16.04 LTS (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official Monit web site.

How To Install Dropbox on Ubuntu 16.04 LTS

Install Dropbox on Ubuntu 16

Dropbox is a useful file-sharing and syncing service that lets you sync files between different machines over the Internet for free. It’s very useful for backing up your important documents, pictures, MP3 files, video files, and other data.

Install Dropbox on Ubuntu 16.04 LTS

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Dropbox on a Ubuntu 16.04 (Xenial Xerus) server.

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing Dropbox.
Run the following commands in Terminal to install Dropbox:

### Ubuntu 32-Bit ###
sudo apt-get install libappindicator1
wget https://d1ilhw0800yew8.cloudfront.net/client/dropbox-lnx.x86-7.3.29.tar.gz
tar -xvf dropbox-lnx.x86-7.3.29.tar.gz
cd .dropbox-dist/ ./dropboxd

### Ubuntu 64-Bit ###
sudo apt-get install libappindicator1
wget https://d1ilhw0800yew8.cloudfront.net/client/dropbox-lnx.x86_64-7.3.29.tar.gz
tar -xvf dropbox-lnx.x86_64-7.3.29.tar.gz
cd .dropbox-dist/ ./dropboxd

Once installed, open Dropbox from Ubuntu Dash or Terminal and enter your Dropbox credentials, and you can start using Dropbox with Ubuntu 16.04 Xenial Xerus.

Congratulation’s! You have successfully installed Dropbox. Thanks for using this tutorial for installing Dropbox on Ubuntu 16.04 LTS (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official Dropbox web site.

How To Install Chamilo on Ubuntu 16.04 LTS

Install Chamilo on Ubuntu 16

Chamilo is an open-source (under GNU/GPL licensing) e-learning and content management system, aimed at improving access to education and knowledge globally. It is backed up by the Chamilo Association, which has goals including the promotion of the software, the maintenance of a clear communication channel and the building of a network of services providers and software contributors. The Chamilo project aims at ensuring the availability and quality of education at a reduced cost, through the distribution of its software free of charge, the improvement of its interface for 3rd world countries devices portability and the provision of a free access public e-learning campus.

Install Chamilo on Ubuntu 16.04 LTS

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Chamilo on a Ubuntu 16.04 (Xenial Xerus) server.

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Install LAMP (Linux, Apache, MariaDB, PHP) server.

A Ubuntu 16.04 LAMP server is required. If you do not have LAMP installed, you can follow our guide here. Also install all required PHP modules:

apt-get install php7.0-curl php7.0-gd php7.0-mbstring php7.0-mysql libapache2-mod-php7.0 php7.0-mcrypt php7.0-bz2 php7.0-zip php7.0-json

You’ll need to also adjust some settings in your php.ini. Open up the file and edit these two variables:

nano /etc/php/7.0/apache2/php.ini

Also, add/modify the following settings:

date.timezone = 'America/New_York'
max_execution_time = 300
max_input_time = 600
memory_limit = 256M
post_max_size = 100M
upload_max_filesize = 100M
short_open_tag = Off
safe_mode = Off
magic_quotes_gpc = Off
magic_quotes_runtime = Off
session.cookie_httponly = On
extension = xapian.so

Step 3. Installing Chamilo.

First thing to do is to go to Chamilo’s download page and download the latest stable version of Chamilo, At the moment of writing this article it is version 1.10:

wget https://github.com/chamilo/chamilo-lms/archive/v1.10.0.zip

Unpack the Chamilo archive to the document root directory on your server:

unzip v1.10.0.zip
mv chamilo-lms-1.10.0/ /var/www/html/chamilo

We will need to change some folders permissions:

chown -R www-data: /var/www/html/chamilo

Step 4. Configuring MariaDB for Chamilo.

By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB:

mysql_secure_installation

Configure it like this:

- Set root password? [Y/n] y
- Remove anonymous users? [Y/n] y
- Disallow root login remotely? [Y/n] y
- Remove test database and access to it? [Y/n] y
- Reload privilege tables now? [Y/n] y

Next we will need to log in to the MariaDB console and create a database for the Chamilo. Run the following command:

mysql -u root -p

This will prompt you for a password, so enter your MariaDB root password and hit Enter. Once you are logged in to your database server you need to create a database for Chamilo installation:

CREATE DATABASE chamilodb;
CREATE USER 'chamilouser'@'localhost' IDENTIFIED BY 'Pa$$worD123';
GRANT ALL PRIVILEGES ON chamilodb.* TO 'chamilouser'@'localhost';
FLUSH PRIVILEGES;
quit

Step 5. Configuring Apache web server for Chamilo.

Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘chamilo.conf’ on your virtual server:

touch /etc/apache2/sites-available/chamilo.conf
ln -s /etc/apache2/sites-available/chamilo.conf /etc/apache2/sites-enabled/chamilo.conf
nano /etc/apache2/sites-available/chamilo.conf

Add the following lines:


ServerAdmin [email protected]
DocumentRoot /var/www/html/chamilo
ServerName your-domain.com
ServerAlias www.your-domain.com

Options FollowSymLinks
AllowOverride All

ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common

Save and close the file. Restart the apache service for the changes to take effects:

systemctl restart apache2

Step 6. Accessing Chamilo.

Chamilo will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/ or http://server-ip/ and complete the required the steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.

Congratulation’s! You have successfully installed Chamilo. Thanks for using this tutorial for installing Chamilo e-learning and content management system on your Ubuntu 16.04 LTS (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official Chamilo web site.

You Might Also Like: How To Install LAMP Stack on Ubuntu

How To Install HAProxy on Ubuntu 16.04 LTS

Install HAProxy on Ubuntu 16

HAProxy is a free HTTP/TCP high availability load balancer and proxy server. It spreads requests among multiple servers to mitigate issues resulting from single server failure. HA Proxy is used by a number of high-profile websites including GitHub, Bitbucket, Stack Overflow, Reddit, Tumblr, Twitter and Tuenti and is used in the OpsWorks product from Amazon Web Services.

Install HAProxy on Ubuntu 16.04 LTS

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation HAProxy on a Ubuntu 16.04 (Xenial Xerus) server.

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Network Details.

Below is our network server. There are 3 web servers running with Apache2 and listening on port 80 and one HAProxy server:
Web Server Details:

Server 1: web1.wpcademy.com 192.168.1.101
Server 2: web2.wpcademy.com 192.168.1.102
Server 3: web3.wpcademy.com 192.168.1.103
HAProxy Server:
HAProxy: haproxy 192.168.1.16

Step 3. Installing HAProxy.

Now install HAProxy with the following command:

apt-get -y install haproxy

After the installation you can double check the installed version number with the following:

haproxy -v

Step 4. Configuring HAProxy.

We have to modify the configuraion file of haproxy i.e. /etc/haproxy/haproxy.cfg as per our requirement. (Change this configuration as your network requirements). For more configuration details check this url.

### nano /etc/haproxy/haproxy.cfg

global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon

# Default SSL material locations
ca-base /etc/ssl/certs
crt-base /etc/ssl/private

# Default ciphers to use on SSL-enabled listening sockets.
# For more information, see ciphers(1SSL). This list is from:
# https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/
ssl-default-bind-ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256::RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
ssl-default-bind-options no-sslv3

defaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000
errorfile 400 /etc/haproxy/errors/400.http
errorfile 403 /etc/haproxy/errors/403.http
errorfile 408 /etc/haproxy/errors/408.http
errorfile 500 /etc/haproxy/errors/500.http
errorfile 502 /etc/haproxy/errors/502.http
errorfile 503 /etc/haproxy/errors/503.http
errorfile 504 /etc/haproxy/errors/504.http

frontend Local_Server
bind 192.168.1.16:80
mode http
default_backend My_Web_Servers

backend My_Web_Servers
mode http
balance roundrobin
option forwardfor
http-request set-header X-Forwarded-Port %[dst_port]
http-request add-header X-Forwarded-Proto https if { ssl_fc }
option httpchk HEAD / HTTP/1.1rnHost:localhost
server web1.wpcademy.com 192.168.1.101:80
server web2.wpcademy.com 192.168.1.102:80
server web3.wpcademy.com192.168.1.103:80

listen stats *:1936
stats enable
stats hide-version
stats refresh 30s
stats show-node
stats auth username:password
stats uri /stats

Since you have done with all necessary configurations for proxy server, verify configuration file before restarting service using following command:

haproxy -c -f /etc/haproxy/haproxy.cfg

If above command return output as “configuration file is valid” then restart HAProxy service:

systemctl restart haproxy

Step 5. Accessing HAProxy.

Open your favorite browser and access port 80 on ip 192.168.0.16 (as configured above) in web browser and hit refresh. You will see that HAProxy is sending requests to backend server one by one (as per round robin algorithm).

Congratulation’s! You have successfully installed HAProxy. Thanks for using this tutorial for installing HAProxy load balancing on Ubuntu 16.04 LTS (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official HAProxy web site.

You Might Also Like: How To Install and Configure HAproxy on CentOS 6

How To Install OpenXenManager on Ubuntu 16.04 LTS

Install OpenXenManager on Ubuntu 16

OpenXenManager is open source free software and popularly known as alternate of XenCenter for linux. It is mainly written in python and pyGTK helps user to interact on its GUI.

Install OpenXenManager on Ubuntu 16.04 LTS

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation OpenXenManager on a Ubuntu 16.04 (Xenial Xerus) server.

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing package dependencies OpenXenManager.

Run following command to install the packages:

apt-get install python-gtk2 glade python-gtk-vnc python-glade2 python-configobj

Step 3. Installing OpenXenManager.

Clone the git repo by given below command:

git clone https://github.com/OpenXenManager/openxenmanager.git

Now change to cloned repo directory:

cd openxenmanager

Next install the package by running below given command:

python setup.py install

Step 4. Accessing OpenXenManager.

After completion of the installation you can use the package on your system, simply run the command:

openxenmanager

openxenmanager-ubuntu
Congratulation’s! You have successfully installed OpenXenManager. Thanks for using this tutorial for installing OpenXenManager on Ubuntu 16.04 LTS (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official OpenXenManager web site.