How To Install Nginx With Ngx_Pagespeed Module on Ubuntu 16.04 LTS

Install Nginx With Ngx_Pagespeed Module on Ubuntu 16

PageSpeed (ngx_pagespeed) is a Nginx module created by Google to help Make the Web Faster by rewriting web pages to reduce latency and bandwidth. For the installation, we will need to compile nginx from souce with the PageSpeed module, as Nginx doesn’t support Dynamic module loading (DSO), unless you want to build your own rpm or deb files.

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 nginx with pagespeed module on a Ubuntu 16.04 (Xenial Xerus) server.
Install Nginx With Ngx_Pagespeed Module 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
sudo apt-get install dpkg-dev build-essential zlib1g-dev libpcre3 libpcre3-dev unzip

Step 2. Add the Nginx repository.

Run the commands below in terminal to compiling the latest Nginx mainline version:

wget http://nginx.org/keys/nginx_signing.key
apt-key add nginx_signing.key

Create a new repository and edit the sources.list file:

nano /etc/apt/sources.list

Add the following two lines at the end of this file:

deb http://nginx.org/packages/mainline/ubuntu/ xenial nginx
deb-src http://nginx.org/packages/mainline/ubuntu/ xenial nginx

Step 3. Download Nginx from source package.

Create a new directory for the nginx source files and download the nginx sources using apt command:

mkdir ~/nginx && cd ~/nginx
sudo apt source nginx

Check out the downloaded files:

### ls ~/nginx/
nginx-1.11.1                               nginx_1.11.1-1~xenial.dsc
nginx_1.11.1-1~xenial.debian.tar.xz        nginx_1.11.1.orig.tar.gz

Step 4. Download ngx_pagespeed source package.

To compile Nginx with ngx_pagespeed module, we also need ngx_pagespeed source package. Go to Github ngx_pagespeed download page:

wget https://codeload.github.com/pagespeed/ngx_pagespeed/zip/v1.11.33.4-beta

Unzip into the current directory:

unzip v1.11.33.4-beta
cd ngx_pagespeed-1.11.33.4-beta/

Next, we also need to download the psol library. (PageSpeed Optimization Library) and extract it:

wget https://dl.google.com/dl/page-speed/psol/1.11.33.4.tar.gz
tar xvf 1.11.33.4.tar.gz

Step 5. Configure Nginx to build with Pagespeed.

First, edit Nginx compilation rule file:

nano ~/nginx/nginx-1.11.1/debian/rules

Add the new line under ‘COMMON_CONFIGURE_ARGS’:

--add-module=/home/username/ngx_pagespeed-1.11.33.2-beta

Step 6. Start the Compilation Nginx Ubuntu package.

Go to the nginx source directory and build nginx from source with the dpkg-buildpackage command:

cd ~/nginx/nginx-1.11.1/
apt build-dep nginx
dpkg-buildpackage -b

When it’s done, there will be 7 deb files in ~/nginx/ directory. We only need to install the nginx_1.11.1-1~xenial_amd64.deb or nginx_1.11.1-1~xenial_i386.deb package, depending on your OS architecture. The others are Nginx dynamic module package and a debug package:

cd ~/nginx
dpkg -i nginx_1.11.1-1~xenial_amd64.deb

Now let’s start Nginx:

systemctl start nginx

Step 7. Configure ngx_pagespeed Module in Nginx.

Now edit Nginx server block config file:

nano /etc/nginx/nginx.conf

Add the following pagespeed directives in server section:

# enable pagespeed module on this server block
pagespeed on;

# Needs to exist and be writable by nginx. Use tmpfs for best performance.
pagespeed FileCachePath /var/ngx_pagespeed_cache;

# Ensure requests for pagespeed optimized resources go to the pagespeed handler
# and no extraneous headers get set.
location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
  add_header "" "";
}
location ~ "^/pagespeed_static/" { }
location ~ "^/ngx_pagespeed_beacon$" { }

pagespeed RewriteLevel CoreFilters;

Step 8. Check if PageSpeed is Working.

Go to your website. Refresh a few times then check your page source. Hit Ctrl+F key and search pagespeed. You will see that many of your website resource has been processed by pagespeed or you can issue the following command:

curl -I -p http://y0ur-domain.com| grep X-Page-Speed

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

How To Install Epub Reader on Ubuntu 16.04 LTS

Install Epub Reader on Ubuntu 16

Epub (Electronic Publications) is an open book standard for reading documents on computers and mobile devices. Epub book’s format is a popular format as it adjusts its font size to the device display. In other words, Epub format is responsive. Since the default Document Viewer is unable to read ePub, we need to use another application specifically for this purpose. If you ask any experienced Linux user about eBook readers, his/her answer will be Calibre.

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 Epub Reader on a Ubuntu 16.04 (Xenial Xerus) server.
Install Epub Reader 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 Calibre on Linux Ubuntu.

Install Calibre on Ubuntu 16.04, run the following command:

sudo apt-get install calibre

Once installed, Calibre can be started from Unity Dash . For the first time users, it will ask you to configure Calibre. Simply select the default options are you are ready to use the software.

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

How To Install Spotify on Ubuntu 16.04 LTS

Install Spotify on Ubuntu 16

Spotify is a great way to listen to music by streaming it on your phone, in your browser, or on your Linux desktop. You can stream everything, upgrade and sync tracks and playlists offline, or purchase individual tracks to keep forever.

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

First, add the Spotify repository signing key to be able to verify downloaded packages:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886

Then add Spotify stable repository by running this command:

echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list

Next is simple. Update and install Spotify client:

sudo apt-get update
sudo apt-get install spotify-client

Once installed, next you can start Spotify by searching for it Unity Dash (in Ubuntu).

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

How To Install Bitcoin Core Wallet on Ubuntu 16.04 LTS

Install Bitcoin Core Wallet on Ubuntu 16

Bitcoin Core is programmed to decide which block chain contains valid transactions. The users of Bitcoin Core only accept transactions for that block chain, making it the Bitcoin block chain that everyone else wants to use. It is these users who keep Bitcoin decentralized. They individually run their own Bitcoin Core full nodes, and each of those full nodes separately follows the exact same rules to decide which block chain is valid.

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

First, add the PPA repository and install Bitcoin open a terminal window:

add-apt-repository ppa:bitcoin/bitcoin
apt-get update

Finally, install Bitcoin core itself. Enter “Y” when asked asked for permission to continue:

apt-get install bitcoin-qt bitcoind

Once installed, Bitcoin Core wallet can be started from Unity Dash or your preferred app launcher or Bitcoin Core can be started from the command line with:

bitcoin-qt

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

How To Install Subsonic Media Server on Ubuntu 16.04 LTS

Install Subsonic Media Server on Ubuntu 16

Subsonic is a free, web-based media streamer written in Java, available for Linux, MacOS and Windows. With Subsonic, you can stream your music from home computer or any public-facing computer and listen to your music from anywhere with a web browser.

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 Subsonic Media Server on a Ubuntu 16.04 (Xenial Xerus) server.
Install Subsonic Media 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. Installing Java.

First we need to install Java by running the following three commands in sequence:

add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java8-installer

Step 2. Installing Subsonic Media Server.

Run the following commands to install Subsonic Media Server on Ubuntu systems:

wget https://s3-eu-west-1.amazonaws.com/subsonic-public/download/subsonic-6.0.deb

Next, install the downloaded Subsonic package by running the following command:

sudo dpkg -i subsonic-6.0.deb

Once it’s installed, the Subsonic daemon will automatically start:

systemctl start subsonic
systemctl enable subsonic

Step 3. Accessing Subsonic Media Server.

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

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

How To Install Master PDF Editor on Ubuntu 16.04 LTS

Install Master PDF Editor on Ubuntu 16

Master PDF editor is a pdf editing tool through which we can edit or add text, images and password to a pdf file.Using this tool we can also split, merge and remove pages from a pdf file. It’s developed by Code Industry Ltd and available for Linux, Mac OS X and Windows.

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 Master PDF Editor pdf editing tool on a Ubuntu 16.04 (Xenial Xerus) server.
Master PDF Editor Features

Edit PDF text, images and pages with full editing features
Create new PDF or edit existing ones.
Add and/or edit bookmarks in PDF files.
Encrypt and/or protect PDF files using 128 bit encryption.
Convert XPS files into PDF.
Add PDF controls (like buttons, checkboxes, lists, etc.) into your PDFs.
Import/export PDF pages into common graphical formats including BMP, JPG, PNG, and TIFF.
Split and merge PDF files.
JavaScript support.
Dynamic XFA form support.
Validation Forms and Calculate Values.
Adding a digital signature and Signing PDF Documents.
Fast and simple PDF forms fill out.
Changing font attributes (size, family, color etc).

Install Master PDF 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 Master PDF Editor.

Run the following commands to install Master PDF Editor 4 on Ubuntu systems:

wget http://get.code-industry.net/public/master-pdf-editor-4.1.30_qt5.amd64.deb
sudo dpkg -i master-pdf-editor-4.1.30_qt5.amd64.deb
sudo apt install -f

Once installed, master PDF editor can be started from Unity Dash or your preferred app launcher.

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

How To Install Firefox Developer Edition on Ubuntu 16.04 LTS

Install Firefox Developer Edition on Ubuntu 16

Firefox developer edition, which is a browser built specifically for web developers, was first introduced by Mozilla back in November 2014. It streamlines the development workflow so developers don’t need to bounce between different platforms and browsers. This browser comes preloaded with many web developer tools such as WebIDE and Valence which allows developers to debug other browsers and apps directly from within Firefox developer. This edition of Firefox is available for most of operating systems like Windows, Linux, and MAC OS.

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 Firefox Developer Edition web browser on a Ubuntu 16.04 (Xenial Xerus) server.
Firefox Developer Edition Features

Visual Editing Tools – Visually edit CSS and HTML animations playing on the page from the Inspector panel. Verify alignment, dimensions and padding of any element using the Ruler and Measurement tools.
DevTools Challenger – Use Developer Edition’s visual animation and CSS editing tools to explore the depths of the ocean and interact with the strangest of creatures.
Performance Tools – Examine your web content’s frame rate, memory consumption and JS profile in a consolidated timeline view to help easily identify and troubleshoot performance bottlenecks.
Page Inspector – Examine the HTML and CSS of any Web page and easily modify the structure and layout of a page.
Web Audio Editor – Inspect and interact with Web Audio API in real time to ensure that all audio nodes are connected in the way you expect.
Web Console – See logged information associated with a Web page and use Web Console to interact with Web pages using JavaScript.
JavaScript Debugger – Step through JavaScript code and examine or modify its state to help track down bugs.
Network Monitor – See all the network requests your browser makes, how long each request takes and details of each request.
Style Editor – View and edit CSS styles associated with a Web page, create new ones and apply existing CSS stylesheets to any page.
Responsive Design View – See how your Website or Web app will look on different screen sizes without changing the size of your browser window.

Install Firefox Developer Edition 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 Firefox Developer Edition.

First, add a repository for download Mozilla Firefox developer edition. Just follow this command:

sudo add-apt-repository ppa:ubuntu-mozilla-daily/firefox-aurora
sudo apt-get update
sudo apt-get install firefox

Once installed, open the Firefox Developer Edition from Ubuntu Dash.

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