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

How To Install Varnish on Ubuntu 16.04 LTS

Install Varnish on Ubuntu 16

Varnish Cache is a powerful open source HTTP accelerator that can be installed in front of any Webserver such as Apache or Nginx. Varnish Cache can improve overall performance of your web server by caching contents. The Varnish cache stores the copy of user request’s and serves the same page when the user revisits the webpage. It makes your website really fast and accelerate your web site performance up-to 300 – 1000x (means 80% or 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 Varnish Cache on a Ubuntu 16.04 (Xenial Xerus) server.
Install Varnish 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. Install Apache web server.

For this part we will be assuming that you have already installed Apache on your server and have it running properly. If not write this command in your terminal:

sudo apt-get install apache2

Step 3. Installing Varnish.

Install Varnish using apt-get command:

apt-get install varnish

After the installation is finished, start and enable varnish.service using the systemctl command:

systemctl start varnish.service
systemctl enable varnish.service

Step 4. Configuring Varnish.

Varnish is automatically configured to server content over port 80 and fetch contents from Apache on port 8080, we need to update Apache to serve content over port 8080:

### nano /etc/apache2/ports.conf
Listen 127.0.0.1:8080

If you have any virtual hosts configured, you will need to update these as well – ensure your configuration looks like this:

<VirtualHost 127.0.0.1:8080>

We need to configure varnish to run on port 80. First, create a file called varnish.service inside the /etc/systemd/system directory:

### nano /etc/systemd/system/varnish.service

Then, add the following configuration:

[Service]
ExecStart=/usr/sbin/varnishd -j unix,user=vcache -F -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m

Once you save and exit out of that file, open up the default.vcl file:

### nano /etc/varnish/default.vcl
backend default {
    .host = "127.0.0.1";
    .port = "8080";
}

Restart the Apache and Varnish service for the changes to take effect:

systemctl restart apache2.service
systemctl restart varnish.service

You can check to see if varnish is working by typing the following command:

varnishstat

Step 5. Testing Varnish.

The test consists in making a HTTP request via curl and verifying that it is handled by Varnish:

[root@wpcademy ~ ]# curl -I 192.168.146.161
 HTTP/1.1 403 Forbidden
 Date: Mon, 01 May 2017 24:06:10 GMT
 Server: Apache/2.4.6 (Ubuntu) PHP/7.0.16
 Last-Modified: Thu, 16 Dec 2016 19:30:58 GMT
 ETag: "1321-5058ranty728280"
 Accept-Ranges: bytes
 Content-Length: 4897
 Content-Type: text/html; charset=UTF-8
 X-Varnish: 32779
 Age: 4
 Via: 1.1 varnish-v4
 Connection: keep-alive

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

How To Install Google Play Music Desktop Player on Ubuntu 16.04

Install Google Play Music on Ubuntu 16

Google Play Music Desktop Player aka GPMDP, is an open source, unofficial Google play music app for Linux desktop released under MIT license, also available for Mac OS X and Windows. It’s made by a university student in Melbourne, Australia.

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 Google Play Music Desktop Player on a Ubuntu 16.04 (Xenial Xerus).
Features in Google Play Music Desktop Player

Customizable built-in equalizer for audio
Audio output device options
Simple and nicely-designed mini player
Native desktop notifications
Last.fm support with now playing and scrobbling features
HTML5-based. No need for Adobe Flash Player
Customizable media key support. Use media keys or create custom shortcuts if you don’t have any
UI customization: Set the dark theme to your taste
Customize almost everything
Interface with external apps like Rainmeter

Install Google Play Music Desktop Player 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 Google Play Music Desktop Player.

First, Download the deb package from Github project page and run the following commands to install Google Play Music Desktop Player on Ubuntu systems:

sudo apt install gdebi
sudo gdebi google-play-music-desktop-player*.deb

Once installed, Google Play Music Desktop can be started from Unity Dash or your preferred app launcher.

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

How To Install KVM and Create Virtual Machines on Ubuntu 16.04 LTS

Install KVM and Create Virtual Machines on Ubuntu 16

Kernel-based Virtual Machine (KVM) is free and open source virtualisation software. You can create multiple VM (virtual machines) , each VM has its own private virtualised hardware like disk, CPU, RAM etc.

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 KVM and Create Virtual Machines on a Ubuntu 16.04 (Xenial Xerus) server.
Install KVM and Create Virtual Machines 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 KVM.

First, let us check if your system supports hardware virtualization. To do so, run the following command:

egrep -c ‘(svm|vmx)’ /proc/cpuinfo

A 0 indicates that your CPU doesn’t support hardware virtualization, while a 1 or more indicates that it does. You may still have to enable hardware virtualization support in your computer’s BIOS, even if this command returns a 1 or more.

Install KVM and other required packages to setup a virtualization environment in Linux:

apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager virtinst virt-viewer

The bridge-utils is used to create bridge networking so other devices on your network can see your virtual machine.

Verify the KVM installation:
virsh -c qemu:///system list

After running this command, log out and log back in. Run this command after logging back in and you should see an empty list of virtual machines. This indicates that everything is working correctly.

Step 3. Create Virtual Machines.

You can open the Virtual Machine Manager by typing the same in Dash Home.Click the icon , it will open the application.

Create-Virtual-Machines-KVM
In the virtual machine manager window, click the first icon in the toolbar
Create-Virtual-Machines-KVM-1
Next, Choose the location of your installation media.
Create-Virtual-Machines-KVM-2
You can install from a disc, ISO image, or even a network location.
Create-Virtual-Machines-KVM-3
Next, allocate memory and CPU to your virtual machine
Create-Virtual-Machines-KVM-4
After that, specify the size of your virtual disk. If you check the box before allocate entire disk now, then the disk size is fixed.
Create-Virtual-Machines-KVM-5
In the next window, you can give your virtual machine a name. Then click finish to begin installing OS to your virtual machine.
Create-Virtual-Machines-KVM-6
Here’s a screenshot of ubuntu virtual machine running in virt-manager window.
Create-Virtual-Machines-KVM-7
Congratulation’s! You have successfully installed KVM. Thanks for using this tutorial for installing KVM and Create Virtual Machines on Ubuntu 16.04 LTS (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official KVM web site.

How To Install WebTorrent Desktop on Ubuntu 16.04 LTS

Install WebTorrent Desktop on Ubuntu 16

WebTorrent Desktop is a free, open source streaming torrent application for Mac, Windows, and Linux. With WebTorrent Desktop, you can watch video from the Internet Archive, listen to music from Creative Commons, or audiobooks from Librivox.

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

Lightweight, fast torrent app
Beautiful user experience
Free, non-commercial, ad-free, and open source
Instantly stream video and audio
WebTorrent fetches file pieces from the network on demand for instant playback.
Even when the file isn’t fully downloaded, seeking still works.
(Seeking just reprioritizes which pieces are fetched from the network.)
Stream videos to AirPlay, Chromecast, and DLNA
Based on the most popular and comprehensive torrent package in Node.js, web torrent
Full-featured, but bloat free
Opens magnet links and .torrent files
Drag-and-drop makes adding or creating torrents easy
Discovers peers via tracker servers, DHT (Distributed Hash Table), and peer exchange
Supports the WebTorrent protocol for connecting to WebRTC peers (i.e. web browsers)

Install WebTorrent Desktop 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 WebTorrent Desktop.

First, Download the deb package from Github project page and run the following commands to install WebTorrent Desktop on Ubuntu systems:

sudo apt-get install gdebi
wget https://github.com/feross/webtorrent-desktop/releases/download/v0.18.0/webtorrent-desktop_0.18.0-1_amd64.deb
sudo gdebi webtorrent-desktop_0.18.0-1_amd64.deb

Once installed, WebTorrent Desktop can be started from Unity Dash or your preferred app launcher or from the terminal:

webtorrent-desktop

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

How To Install Facebook Messenger Desktop on Ubuntu 16.04 LTS

Install Facebook Messenger Desktop on Ubuntu 16

Messenger for Desktop is a wrapper for the official client messenger.com. Therefore it works like a regular browser which can only navigate to the messenger.com web app. MFD doesn’t touch your messages, account or personal data. All that is handled securely by Facebook.

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

First, Download the deb package from this page and run the following commands to install Facebook Messenger Desktop on Ubuntu systems:

sudo apt-get install gdebi
wget https://github.com/aluxian/Messenger-for-Desktop/releases/download/v2.0.9/messengerfordesktop-2.0.9-linux-amd64.deb
sudo dpkg -i messengerfordesktop*.deb

Once installed, Facebook Messenger Desktop can be started from Unity Dash or your preferred app launcher or from the terminal:

messengerfordesktop

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