How To Install GIMP Image Editor on Ubuntu 16.04 LTS

Install GIMP Image Editor on Ubuntu 16

GIMP is a free and open-source image editor used for retouching and editing images. From retouching to restoring to creative composites, the only limit is your imagination. GIMP is used for producing icons, graphical design elements, and art for user interface components and mockups. GIMP provides top-notch color management features to ensure high-fidelity color reproduction across digital and printed media.

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 GIMP image editor on a Ubuntu 16.04 (Xenial Xerus) server.
Install GIMP Image Editor on Ubuntu 16.04 LTS

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 GIMP.

Open terminal from Unity Dash, App launcher, or via Ctrl+Alt+T shortcut key. When it opens, paste below command and hit Enter:

sudo add-apt-repository ppa:otto-kesselgulasch/gimp-edge
sudo apt-get update
sudo apt-get install gimp

Once installed, open GIMP image editor from Ubuntu Dash or Terminal. Run “gimp” command in Terminal. (without quotes):

gimp

In case you encounter issues and you want to go back to the GIMP version available in the Ubuntu repositories, you can purge the PPA using ppa-purge:

sudo apt install ppa-purge
sudo ppa-purge ppa:otto-kesselgulasch/gimp

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

How To Install and Configure DNS Server on Ubuntu 16.04 LTS

Install and Configure DNS Server on Ubuntu 16

BIND is a widely used DNS Server. Ideally, DNS server consist of 2 machines that work together simultaneously, one act as master and the other one act as slave. If your domain registrar doesn’t provide you a free DNS server, or if you want to create a custom DNS record, then you might need to host your own DNS server.

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 and configure DNS server on ubuntu on a Ubuntu 16.04 (Xenial Xerus) server.

Install and Configure DNS Server on Ubuntu 16.04 LTS

Host Role Private FQDN Private  IP Address

ns1 Primary DNS Server 108.100.100.1

ns2 Secondary DNS Server 108.100.100.2

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 DNS Server Bind9.

After updating the system, run the following command to install BIND9 packages which are used to setup DNS server:

apt-get install bind9 bind9utils bind9-doc

Step 3. Configure Bind9.

It is time to show you a basic configuration how to setup your domain to resolve to your server:

### nano /etc/bind/named.conf.options

options {
directory "/var/cache/bind";
additional-from-auth no;
additional-from-cache no;
version "Bind Server";

// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113

// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.

forwarders {
8.8.8.8;
8.8.4.4;
};

//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation auto;
allow-recursion { 127.0.0.1; };
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};

Step 4. Configure Local File.

Next, we will configure the local file, to specify our DNS zones:

### nano /etc/bind/named.conf.local

//place these lines at the bottom of file

zone "wpcademy.com" {
type master;
file "/etc/bind/zones/wpcademy.com.db";
allow-transfer { 108.200.200.2; };
also-notify { 108.200.200.200.2; };
};

Because in the above config we put zone file in “/etc/bind/zones/wpcademy.com.db”, then we need to create the folder and file:

mkdir /etc/bind/zones
nano /etc/bind/zones/wpcademy.com.db
$TTL 86400
$ORIGIN wpcademy.net.
@ IN SOA ns1.wpcademy.com. root.wpcademy.com. (
1 ; Serial
86400 ; Refresh
7200 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns1.wpcademy.com.
@ IN NS ns2.wpcademy.com.
ns1 IN A 108.100.100.1
ns2 IN A 108.100.100.2

;also list other computers
@ IN A 192.30.35.67
www IN A 192.30.35.67

Install and Configure DNS Server on Ubuntu 16.04 LTS

How To Install Virtualmin on Ubuntu 16.04

Install Virtualmin on Ubuntu 16

Virtualmin is an advanced web server management panel, and a very good alternative to cPanel, with the same administration structure based on root users, resellers, and clients. Once installed, you will be able to manage Apache, Nginx, PHP, DNS, MySQL, PostgreSQL, mailboxes, FTP, SSH, SSL, Subversion/Git repositories and many more.

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 Virtualmin on a Ubuntu 16.04 (Xenial Xerus) server.
Install Virtualmin on Ubuntu 16.04

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 Virtualmin.

Virtualmin provides an install script which allows for an easy installation. Use the following command to download the script to your desire directory:

wget http://software.virtualmin.com/gpl/scripts/install.sh

Once downloaded, do a chmod +x to make the script executable:

chmod +x install.sh

Now it is time to running virtualmin install script. Installation will take approximately 5-15 minutes depends on your server speed and power. To do so, use the command below:

./install.sh
### During the installation it will ask you for the host name make sure you enter this correctly ###

Step 3. Accessing Virtualmin.

Virtualmin web based monitoring will be available on HTTPS port 10000 by default. Open your favorite browser and navigate to http://yourdomain.com:10000 or http://server-ip:10000. If you are using a firewall, please open port 10000 to enable access to the control panel.
virtualmin-installation
Congratulation’s! You have successfully installed Virtualmin. Thanks for using this tutorial for installing virtualmin web server management panel on Ubuntu 16.04 LTS (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official Virtualmin web site.

How To Install XAMPP on Ubuntu 16.04 LTS

Install XAMPP on Ubuntu 16

XAMPP is an open source software that provides users with an out-of-the-box server experience. It is a complex, yet very easy-to-use AMPP (Apache, MySQL, PHP and Perl) distribution that’s compatible with the Linux, Microsoft Windows and Mac OS X operating systems. The best tool for those who want to install a fully functional web development environment.

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 XAMPP stack on a Ubuntu 16.04 (Xenial Xerus) server.
Features XAMPP

Regularly updated to the latest versions of Apache, MariaDB, PHP and Perl.
Supports other modules like OpenSSL, phpMyAdmin, MediaWiki, Joomla, WordPress etc.,
Tests the website designers and programmers work without Internet.
Secured package.
Allows creation and manipulation of databases in MariaDB and SQLite.

Install XAMPP on Ubuntu 16.04 LTS

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 XAMPP.

The first step is to download script from official xampp and to add the code in a new .run file on your Ubuntu machine, wherever you’d like this:

https://www.apachefriends.org/xampp-files/7.1.1/xampp-linux-x64-7.1.1-0-installer.run

Next, run the following command to make XAMPP executable:

chmod +x xampp-linux-x64-7.1.1-0-installer.run

Run the xampp-linux-x64-7.1.1-0-installer.run script and wait until xampp is fully installed:

./xampp-linux-x64-7.1.1-0-installer.run

That should start the XAMPP installation setup. Continue with the installation as you usually do:
XAMPP1
xampp2
xampp3
xampp4
xampp5
xampp6
Once the setup is finished, XAMPP should be available for its usage in your Desktop or open your browser and follow this link : http://localhost/dashboard/

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

How To Install Cherokee Web Server on Ubuntu 16.04 LTS

Install Cherokee Web Server on Ubuntu 16

Cherokee is an free and open source high-performance web server. It is very fast, flexible and easy to configure. It offers support for the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, SSI, TLS and SSL encrypted connections, Virtual hosts, Authentication, on the fly encoding, Load Balancing, Apache compatible log files, Data Base Balancer, downtime-free updates and upgrades, Reverse HTTP Proxy, and much more.

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 Cherokee Web Server on a Ubuntu 16.04 (Xenial Xerus) server.

Install Cherokee Web Server on Ubuntu 16.04 LTS

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. Enable Cherokee PPA (Personal Package Archive) repository.

add-apt-repository ppa:cherokee-webserver
apt-get update

Step 3.Installing Cherokee Web Server.

Install Cherokee Web Server using apt-get, Enter the following command to install the Cherokee web server including Module SSL:

sudo apt-get install cherokee cherokee-doc libcherokee-mod-libssl libcherokee-mod-streaming libcherokee-mod-rrd

Start Cherokee service daemon.

systemctl start cherokee
systemctl enable cherokee

Step 4. Configuring Cherokee.

The best part about using Cherokee Web Server is being able to manage all of its configurations through a simple to use web interface. It can be started through the cherokee-admin command.

sudo cherokee-admin

By default, cherokee-admin can only accessed from localhost. If you need to access the admin for other network address using the parameter ‘-b’. If you doesn’t mention any ip address, it will automatically listen to all network interfaces. Then you can connect to cherokee-admin from other network address.

sudo cherokee-admin -b

Access cherokee admin from specific network address:

sudo cherokee-admin -b 192.169.1.2
#sudo cherokee-admin -b

Cherokee Web Server 1.2.103 (Dec 059 2014): Listening on port 127.0.0.1:9090,
TLS disabled, IPv6 enabled, using epoll, 4096 fds system limit, max. 2041
connections, caching I/O, 2 threads, 1020 connections per thread, standard
scheduling policy

Login:
 User: admin
 One-time Password: wpcademyEMfQRznWWa6h

Web Interface:
 URL: http://127.0.0.1:9090/

Important: The password is for one time use only. If you need to login again, you should use the same command for generating it.

Step 5. Now access Cherokee-Admin by navigating your browser to http://127.0.0.1:9090. Type user name and password for accessing it.
cherokee-admin-panel

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

How To Enable HTTP/2.0 Support on Apache

Enable HTTP/2.0 Support on Apache

HTTP/2 is the new updated HTTP protocol, and its supposed to be much more efficient than the now outdated http/1.1 version. Its goal is to reduce the latency as well as to make the web applications faster by allowing multiple concurrent requests between the web browser and the server across a single TCP connection. If you are looking to speed up the loading time of your website or blog then you should enable http/2.0 in your web server.

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 enable HTTP/2.0 support in Apache running Ubuntu 16.04 (Xenial Xerus) server.
Enable HTTP/2.0 Support on Apache running Ubuntu 16.04 LTS

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. Enable HTTP/2.0 Apache web server.

So make sure that your Apache version supporting HTTP/2 protocol. If you have not installed Apache or using older version upgrade it first. Use the following commands to add PPA for installing latest Apache2 version on your Ubuntu system:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/apache2
sudo apt-get update
sudo apt-get install apache2

Once installed, verify Apache version:

### apache2 -v
Server version: Apache/2.4.17 (Ubuntu)
Server built:   2017-03-05T00:00:00

Enable the HTTP/2.0 module by typing this commands:

sudo a2enmod http2

Restart Apache for the changes to take effect:

systemctl restart apache2

Now open your VirtualHost file ( e.g. most likely at this path /etc/apache2/sites-available/ ) and put this code in:

Protocols h2 http/1.1

Step 3. Verify HTTP/2.

Go to https://tools.keycdn.com/http2-test and test if http/2.0 is detected in your domain.

https://tools.keycdn.com/http2-test

Congratulation’s! You have successfully enable HTTP/2.0 apache web server. Thanks for using this tutorial for enable HTTP/2.0 support on Apache running Ubuntu 16.04 LTS (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official Apache web site.

How To Install VnStat Network Monitoring on Ubuntu 16.04 LTS

Install VnStat Network Monitoring on Ubuntu 16

VnStat is a console based network traffic monitoring tool design for Linux and BSD. It allows the users to maintain a log of network traffic for the selected interfaces. In this Vnstat tool, the interface bandwidth will reduce automatically.

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 VnStat Network Monitoring on a Ubuntu 16.04 (Xenial Xerus) server.
VnStat Features

Multiple output options.
Generate png graphic output.
Consumes lite portion of system resources.
Monitor multiple network interfaces at same time.
Sort the data by month, week, hour and day.
Low CPU usage.

Install VnStat Network Monitoring on Ubuntu 16.04 LTS

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 VnStat.

Use apt-get command line utility to install vnstat package on your system:

apt-get install vnstat

Once installed, start and enable the Vnstat services:

systemctl start vnstat
systemctl enable vnstat

Step 3. Show Statics using vnStat Command Line.

Using vnstat command line utility you can view statistics on bandwidth on per day, per month and per hour basis. It also provides option to show statistics in real-time:

### Show Statistics for a day ###
vnstat -d 

### Show Statistics for a Month ###
vnstat -m

### Show Statistics for a Hour ###
vnstat -h

### Show Statistics for a Real Time ###
vnstat -l

### For more available options you can use the --help ###
vnstat --help

Step 4. Configure vnStat PHP Web Based Interface.

vnStat also provides php based web interface to show graphical statistics. In order to set up vnStat web interface, it required install LAMP stack on Ubuntu 16.04 LTS.

Download vnStat php code using below given url.

get http://www.sqweek.com/sqweek/files/vnstat_php_frontend-1.5.1.tar.gz

Extract downloaded archive in web accessible directory, eg: /var/www/html/:

tar xzf vnstat_php_frontend-1.5.1.tar.gz
mv vnstat_php_frontend-1.5.1 /var/www/html/

Edit the config.php file and set the following parameters:

$language = 'en';
$iface_list = array('eth0', 'sixxs');
$iface_title['eth0'] = 'Public Interface';
$vnstat_bin = '/usr/bin/vnstat';

Accessing VnStat via web browser, Open your favorite browser and navigate to http://yourdomain.com/ or http://server-ip.

vnstat-web-based

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