How To Install Bludit CMS on Ubuntu 16.04

Install Bludit CMS on Ubuntu 16

Bludit is a simple web application to make your own blog or site in seconds, it’s completly free and open source. Bludit uses flat-files (text files in JSON format) to store the posts and pages, you don’t need to install or configure a database.

Install Bludit CMS 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 Bludit CMS 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 and 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-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0 <code>php7.0-mcrypt php7.0-gd
</code>

Step 3. Installing Bludit CMS.

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

wget https://s3.amazonaws.com/bludit-s3/bludit-builds/bludit_latest.zip

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

unzip bludit_latest.zip
mv bludit /var/www/html/

Set the file permissions for Bludit CMS:

chown -R www-data:www-data /var/www/html/bludit/bl-content

Step 4. Configuring Apache web server for Bludit CMS.

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

sudo a2enmod rewrite
touch /etc/apache2/sites-available/bludit.conf
ln -s /etc/apache2/sites-available/bludit.conf /etc/apache2/sites-enabled/bludit.conf
nano /etc/apache2/sites-available/bludit.conf

Add the following lines:

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

Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all

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

Now, we can restart Apache web server so that the changes take place:

systemctl restart apache2.service

Step 5. Accessing Bludit Content Management System.

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

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

[youtube https://www.youtube.com/watch?v=NGCshaVotZI]

How To Install Git on Ubuntu 16.04

Install Git on Ubuntu 16

Git is a free and open source distributed version control system . Git 2.9.3 comes with the large number of updates verses previous release 2.8. It is designed to handle a small to very large projects with speed and efficiency.

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

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

Ubuntu 16.04 comes with Git 2.7.x, which is a little old now. As versions 2.9 are not part of the Ubuntu repositories, you need to add the git-core personal package archive. Run the following commands in Terminal to install Git 2.9.3 on Ubuntu, via PPA:

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

To check current version installed of Git use following command:

[root@wpcademy ~]# git --version
git version 2.8.1

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

How To Install Ruby on Rails on Ubuntu 16.04

Install Ruby on Rails on Ubuntu 16

Ruby on Rails (RoR) is a framework written in the Ruby programming language that allows you to use Ruby in combination with HTML, CSS, and similar programming languages. It is used by many developers since it makes the application development very simple.

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

Install Ruby on Rails 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 RVM.

One way of installing Ruby on Rails on an vps is by using the Ruby enVironment Manager, or shortly RVM. We will use RVM to install Ruby on Rails in this tutorial. In order to install RVM on your server, you can use the following commands:

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
cd /tmp &amp;&amp; \curl -sSL https://get.rvm.io -o rvm.sh
cat /tmp/rvm.sh | bash -s stable

To start using RVM you need to run:

source /usr/local/rvm/scripts/rvm

If, for some reason, you need or want a different version of Ruby, you can check which ones are available easily in RVM:

rvm list known

The list result should look like the following one:

# MRI Rubies
[ruby-] 1.8.6 [-p420]
[ruby-] 1.8.7 [-head] # security released on head
[ruby-] 1.9.1 [-p431]
[ruby-] 1.9.2 [-p330]
[ruby-] 1.9.3 [-p551]
[ruby-] 2.0.0 [-p648]
[ruby-] 2.1 [.8]
[ruby-] 2.2 [.4]
[ruby-] 2.3 [.0]
[ruby-] 2.2-head
ruby-head
...

To install a different version of Ruby, just find the version number that you want and tell RVM to install it:

rvm install 2.3.0
rvm use 2.3.0

Step 3. Installing Rails.

Now that RVM is installed and configured and Ruby is on the system, you can install Rails. Rails is available as a Gem, which is a Ruby package. When Ruby is installed, its native Gem packaging system is also installed. Installing Ruby packages is very similar to any Linux package manager. To install Rails you can use the command below:

gem install rails

Or, run the following command to install a particular version of rails:

gem install rails -v 5.0.0

To verify the installation as well as to check what version of Rail you are currently using, you can use the command:

rails -v

Sample output:

# rails -v
Rails 5.0.0.1

Now you are ready to start with your first Ruby on Rails project. Create a new Ruby on Rails application in your home directory:

cd ~
rails new wpcademyApp

This should take no longer than a minute. Once your new Ruby on Rails application is created, you can start developing the application. There are new guides for Rails 5.0 which will help you understand how all of the pieces fit together.

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

How To Install PostgreSQL on Ubuntu 16.04

Install PostgreSQL on Ubuntu 16

PostgreSQL is a free, open-source object-relational database management system (object-RDBMS), similar to MySQL, and is standards-compliant and extensible. It is commonly used as a back-end for web and mobile applications. PostgreSQL, or ‘Postgres’ as it is nicknamed, adopts the ANSI/ISO SQL standards together, with the revisions.

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

Install PostgreSQL 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 PostgreSQL server.

PostgreSQL is available in the default repositories. So enter the following command from the Terminal to install it:

apt-get install postgresql postgresql-contrib phppgadmin

Step 3. Access PostgreSQL command prompt.

After installing PostgreSQL database server, by default it creates a user ‘postgres’ with role ‘postgres’. It also creates a system account with same name ‘postgres’. So to connect to postgres server, login to your system as user postgres and connect database:

su - postgres
psql

Now you are logged in to PostgreSQL database server. To check login info use following command from database command prompt:

postgres-# \conninfo

To disconnect from PostgreSQL database command prompt just type below command and press enter. It will return you back to Ubuntu command prompt:

postgres-# \q

Create new user and database:

### For example, let us create a new user called “wpcademy” with password “wpcademy.com”, and database called “wpcademydb”. ###
sudo -u postgres createuser -D -A -P wpcademy
sudo -u postgres createdb -O wpcademy wpcademydb

Step 4. Configure Apache2 for phpPgAdmin.

phpPgAdmin is a web-based administration tool for PostgreSQL. It is perfect for PostgreSQL DBAs, newbies, and hosting services. You need to configure apache for phpPgAdmin. Edit the file /etc/apache2/conf-available/phppgadmin.conf:

nano /etc/apache2/conf-available/phppgadmin.conf

Comment out the line #Require local by adding a # in front of the line and add below the line allow from all so that you can access from your browser:
phpPgAdmin-apache2-conf
Step 5. Configure phpPgAdmin.

Next, edit the file /etc/phppgadmin/config.inc.php:

nano /etc/phppgadmin/config.inc.php

Now change the following option:

$conf[‘extra_login_security'] = true;
to
$conf[‘extra_login_security'] = false;

Now, we can restart Apache and phpPgAdmin so that the changes take place:

systemctl restart postgresql
systemctl restart apache2
systemctl enable postgresql
systemctl enable apache2

Step 6. Accessing phpPgAdmin.

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

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

How To Install Node.js on Ubuntu 16.04

Install Node.js on Ubuntu 16

Node.js is a Javascript platform for programming that enables users to build network applications very quickly. If you are using Javascript on both the front-end and the back-end, it means your development can be much more consistent and be designed within the same system.

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

Install Node.js 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 Node.js using repository.

The default Ubuntu repos do contain a version of Node.js. It is never the latest version but is usually known to be quite stable:

apt-get install nodejs

This will install Node.js, however we still need to install the package manager (NPM) so that 3rd party modules can be installed:

apt-get install npm

Verify the current version of Node.js installed:

node -v

Step 3. Installing Node.js using PPA repository for Ubuntu 16.04.

First you need to node.js ppa in our system provide by nodejs official website. We also need to install python-software-properties package if not installed already:

sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -

After adding required PPA file, lets install Nodejs package. NPM will also be installed with node.js. This command will also install many other dependent packages on your system:

apt-get install nodejs

Verify the current version of Node.js installed:

node -v

Step 4. Install Node.js using NVM (Node.js Version Manager).

Using nvm, you will be able to install multiple, self-contained versions of Node.js which will means you can control your environment much easier. It will give you on-demand access to the latest versions of Node.js, but it will also allow you to specify previous releases that your app may need. So, first we’ll want to update our local repository index and then install libssl-dev and build-essential . That can be done by running the below commands in a terminal or shell:

apt-get update
apt-get install build-essential libssl-dev

Once those are installed you need to download the setup script for NVM. Typically you can grab this from their github page. Though at the time of this writing the newest version is in the command below:

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh

Verify that the script is indeed the one you want and then run:

bash install.sh

To begin the install of NVM. Once it finishes you will need to reload your profile to have your changes take effect without logging back in to your server again. Run the command:

source ~/.profile

Now as we have nvm installed, we can install isolated Node.js versions. To find out the versions of Node.js that are available for installation, we need to type:

[[email protected] ~]# nvm ls-remote
. . .
v5.8.0
v5.9.0
v5.9.1
v5.10.0
v5.10.1
v5.11.0
v6.0.0

Install the version you want with the command:

nvm install [your version]

Example:

nvm install 6.0.0

Configure nvm to use the version of Node.js that you just downloaded, the command is:

nvm use 6.0.0

To verify the current version of Node.js installed, the command is:

node -v

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

How To Install OpenCart on Ubuntu 16.04

Install OpenCart on Ubuntu 16

OpenCart is a free open source ecommerce platform for online merchants. OpenCart provides a professional and reliable foundation from which to build a successful online store.

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

Install OpenCart 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. 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-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0 <code>php7.0-mcrypt
</code>

Step 3. Installing OpenCart.

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

wget https://github.com/opencart/opencart/archive/2.3.0.2.zip
unzip 2.3.0.2.zip
mv opencart-2.3.0.2/upload/* /var/www/html/

Rename the file ‘config-dist.php’ to ‘config.php’:

mv config-dist.php config.php

We will need to change some folders permissions:

chown -R www-data.www-data /var/www/html
chmod -R 755 /var/www/html

Step 4. Configuring MariaDB for OpenCart.

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 OpenCart. 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 OpenCart installation:

MariaDB [(none)]&gt; CREATE DATABASE opencart;
MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON opencart.* TO 'opencartuser'@'localhost' IDENTIFIED BY 'opencartuser_passwd';
MariaDB [(none)]&gt; FLUSH PRIVILEGES;
MariaDB [(none)]&gt; \q

Step 5. Accessing OpenCart.

OpenCart will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://your-domain.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 OpenCart. Thanks for using this tutorial for installing OpenCart e-commerce on Ubuntu 16.04 systems. For additional help or useful information, we recommend you to check the official OpenCart website.

How To Install Tor Browser on Ubuntu 16.04

Install Tor Browser on Ubuntu 16

Tor is free software and an open network that helps you defend against traffic analysis, a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security. Tor protects you by bouncing your communications around a distributed network of relays run by volunteers all around the world. it prevents somebody watching your Internet connection from learning what sites you visit, and it prevents the sites you visit from learning your physical location.

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

Install Tor Browser 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. Intsalling Tor Browser.

Run the following commands in Terminal to install Tor Browser on Linux Ubuntu systems, via Webupd8 PPA:

sudo add-apt-repository ppa:webupd8team/tor-browser
sudo apt-get update
sudo apt-get install tor-browser

Once installed, open Tor from Ubuntu Dash or Terminal. Execute the start-tor-browser.desktop file in a terminal:

./start-tor-browser.desktop

This will launch Tor browser network setting. From here you can either configure or connect to Tor network. Click on connect button to enable Tor connection. Tor browser will then connect to the most secure connection. Once it’s done you can see “Welcome to Tor Browser” message.

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