How To Install Mezzanine CMS on Ubuntu 18.04 LTS

Install Mezzanine CMS on Ubuntu 18

Mezzanine CMS is a free and open-source content management system, built using the popular Django framework. It provides an intuitive interface for managing pages, blog posts, form data, store products, along with many other types of content. Unlike other popular CMS applications, all of these functionalities are available by default, without the need to use any additional modules or add-ons.

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 Mezzanine CMS on a Ubuntu 18.04 (Bionic Beaver) server.

Install Mezzanine CMS on Ubuntu 18.04 LTS Bionic Beaver

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 update
sudo apt upgrade

Step 2. Installing Python 3 and pip.

Run the commands below to install Python and Python pip:

sudo apt install python3 python3-pip python3-dev

To verify what version of Python is installed, run the commands below:

python3 -V

And to verify if pip3 is installed, you can execute this:

pip3 -V

Step 3. Installing MySQL.

First, install the MySQL database server with the following command:

sudo apt install mysql-server

After installing MySQL, the commands below can be used to stop, start and enable MySQL service to always start up when the server boots:

sudo systemctl status mysql
sudo systemctl enable mysql

By default, MySQL is not hardened. You can secure MySQL 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

You can now log in to your MySQL database server as the root user with this command:

sudo mysql -u root -p

To create a new database and user, run the following commands on the MySQL shell:

CREATE DATABASE mezzanine CHARACTER SET UTF8;
CREATE USER mezzanine@localhost IDENTIFIED BY 'strong-password';
GRANT ALL PRIVILEGES ON mezzanine.* TO mezzanine@localhost;
FLUSH PRIVILEGES;

Step 4. Installing Python Virtual Environment for Mezzanine.

To install the Python Virtual Environment, run the following command:

sudo pip3 install virtualenv

Step 5. Create a Mezzanine User.

Before we proceed, let’s create a new user for our Mezzanine installation:

adduser mezzanine
usermod -aG sudo mezzanine

Step 6. Create a New Virtual Environment.

To create the virtual environment for Mezzanine, run the following command:

virtualenv mezzanine

To activate the virtual environment run the following:

source mezzanine/bin/activate

Step 7. Install the Mezzanine CMS on CentOS.

To install the Mezzanine CMS onto our new virtual environment, run the following command:

pip install mezzanine

Step 8. Create Mezzanine App.

To create a new Mezzanine App, run the following command:

mezzanine-project mezzanine_project

Step 9. Configure the Mezzanine application.

We need to edit the settings.py file within our main project directory:

nano mezzanine_project/settings.py
DATABASES = {
"default": {
"ENGINE": "django.db.backends.mysql",
"NAME": "mezzanine",
"USER": "mezzanine",
"PASSWORD": "strong-password",
"HOST": "localhost",
"PORT": "",
}
}

Let’s migrate the database by running the following commands:

python manage.py makemigrations
python manage.py migrate

Once the database is migrated, we can create a new administrative user with this line:

python manage.py createsuperuser

Next, open the following file to edit it:

nano mezzanine_project/local_settings.py

Find the ALLOWED_HOSTS line and then add the IP address of your server and/or your domain name:

ALLOWED_HOSTS = ["localhost", "127.0.0.1", "::1", "your-server-IP", "your-domain-names"]

Step 10. Start the Mezzanine server.

To start up and run the Mezzanine server, run the following command:

python manage.py runserver 0.0.0.0:8000

Visit the admin section by going to:

http://your_server_ip:8000/

Congratulation’s! You have successfully installed Mezzanine. Thanks for using this tutorial for installing Mezzanine content management system on Ubuntu 18.04 systems. For additional help or useful information, we recommend you to check the official Mezzanine website.

How To Install Slack on Ubuntu 18.04 LTS

Install Slack on Ubuntu 18

Slack is a Cloud-based software that provides a team collaboration tool and services, founded by Stewart Butterfield. Slack offers a lot of IRC-like (Internet Relay Chat) features such as persistent chat room channel organized by topic. Slack can be searchable including files, conversation, and people.

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 Slack on an Ubuntu 18.04 bionic beaver.

Install Slack on Ubuntu 18.04 LTS Bionic Beaver

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 update
sudo apt upgrade

Step 2. Installing Slack on Ubuntu.

Go to the Slack for Linux download page and download the latest Slack .deb package:

wget https://downloads.slack-edge.com/linux_releases/slack-desktop-3.3.8-amd64.deb

Install Slack by running the following command as a user with sudo privileges:

sudo apt install ./slack-desktop-*.deb

Step 3. Start Slack.

Now that you have Slack installed on your Ubuntu desktop, you can start it either from the command line by typing slack or by clicking on the Slack icon (Activities -> Slack).

Congratulation’s! You have successfully installed Slack. Thanks for using this tutorial for installing Slack in Ubuntu 18.04 bionic beaver system. For additional help or useful information, we recommend you to check the official Slack website.

How To Install RainLoop Webmail on Ubuntu 18.04 LTS

Install RainLoop Webmail on Ubuntu 18

RainLoop is a fast and lightweight e-mail client software which supports protocols such as IMAP, SSL, SMTP, etc. RainLoop allows the user to login with multiple e-mail accounts even with different browser tabs. It can also be integrated with Google, Facebook, Twitter, Dropbox, 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 RainLoop Webmail on an Ubuntu 18.04 bionic beaver.

Install RainLoop Webmail on Ubuntu 18.04 Bionic Beaver

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 update
sudo apt upgrade

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

An Ubuntu 18.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.2 libapache2-mod-php7.2 php7.2-common php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-gd php7.2-xml php7.2-intl php7.2-mysql php7.2-cli php7.2-zip php7.2-curl

Step 3. Installing RainLoop Webmail on Ubuntu.

For the purposes of this tutorial, we will install the free and open source community edition. Now Download a Rainloop Webmail package from the terminal using wget command:

wget http://www.rainloop.net/repository/webmail/rainloop-community-latest.zip

Next, let’s create a new directory for our RainLoop webmail installation:

sudo mkdir /var/www/rainloop

To extract the files into this new directory, run the following command:

unzip rainloop-community-latest.zip -d /var/www/rainloop

We will need to change some folders permissions:

cd /var/www/rainloop
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chown -R www-data:www-data .

Step 4. Configuring Apache web server for RainLoop Webmail.

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

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

Add the following lines:

ServerName webmail.mydomain.com
DocumentRoot "/var/www/rainloop/"

ErrorLog "/var/log/apache2/rainloop_error_log"
TransferLog "/var/log/apache2/rainloop_access_log"

Options +Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order deny,allow
Allow from all
Require all granted

Options -Indexes
Deny from all

Save and close the file. Restart the Apache service for the changes to take effect:

sudo a2ensite vtiger.conf
sudo a2enmod rewrite
sudo systemctl restart apache2

Step 5. Accessing RainLoop Webmail.

RainLoop Webmail will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://webmail.mydomain.com/?admin 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.

The default admin login credentials are:

Username: admin
Password: 12345

Congratulation’s! You have successfully installed RainLoop. Thanks for using this tutorial for installing RainLoop Webmail on your Ubuntu 18.04 system. For additional help or useful information, we recommend you to check the official RainLoop website.

How To Install Redis on Ubuntu 18.04 LTS

Install Redis on Ubuntu 18

Redis is a in memory key-value data structure store mainly used as a database, message broker or as a cache. Redis supports wide languages with flexibility and high performance. It supports different data structures like strings, lists, sets, maps, spatial indexes, and bitmaps.

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 Redis on an Ubuntu 18.04 bionic beaver.

Install Redis on Ubuntu 18.04 LTS Bionic Beaver

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 update
sudo apt upgrade

Step 2. Installing Redis on Ubuntu.

The Redis packages are available under the default apt repository. For the installation of Redis on an Ubuntu. Run below command from the terminal to install Redis on your machine:

sudo apt install redis-server

Redis provide php extension to work with php. Here we will cover installation of Redis Extension of php from source compilation and using apt repository. Following command will install and setup redis extension with php:

sudo apt install php-redis

Once the installation is completed, Redis service will start automatically. To check the status of the service enter the following command:

sudo systemctl status redis-server

Step 3. Configure Redis Cache.

To configure Redis as a cache you need to edit the /etc/redis/redis.conf file:

sudo nano /etc/redis/redis.conf
# IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES
# JUST COMMENT THE FOLLOWING LINE.
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bind 0.0.0.0 ::1
1
2
3
4

# IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES
# JUST COMMENT THE FOLLOWING LINE.
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bind0.0.0.0::1

Restart the Redis service for changes to take effect:
sudo systemctl restart redis-server
1

sudosystemctlrestartredis-server

We will now test the Redis instance with some commands:
$ redis-cli
127.0.0.1:6379> ping
PONG
127.0.0.1:6379> set test "Redis Working!"
OK
127.0.0.1:6379> get test
"Redis Working!"
127.0.0.1:6379> exit

Congratulation’s! You have successfully installed Redis. Thanks for using this tutorial for installing Redis in Ubuntu 18.04 bionic beaver system. For additional help or useful information, we recommend you to check the official Redis website.

How To Install Vtiger CRM on Ubuntu 18.04 LTS

Install Vtiger CRM on Ubuntu 18

Vtiger CRM is a cloud-based Customer Relationship Management (CRM) platform that aids interactions between the company and its customers. It provides an intuitive customer experience and delivers outstanding performance for marketing, sales, and support teams which in return provides better customer retention for the company.

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 Vtiger on an Ubuntu 18.04 bionic beaver.

Install Vtiger CRM on Ubuntu 18.04 LTS Bionic Beaver

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 update
sudo apt upgrade

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

An Ubuntu 18.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.2 libapache2-mod-php7.2 php7.2-common php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-gd php7.2-xml php7.2-intl php7.2-mysql php7.2-cli php7.2-zip php7.2-curl

Step 3. Installing vTiger CRM on Ubuntu.

Now download the latest stable version of Vtiger CRM, At the moment of writing this article it is version 7.1.0:

cd /var/www/
wget https://cfhcable.dl.sourceforge.net/project/vtigercrm/vtiger%20CRM%207.1.0/Core%20Product/vtigercrm7.1.0.tar.gz

After the download has been successfully completed, we can then extract the GZ file using the following command:

tar -xvzf vtigercrm7.1.0.tar.gz

We will need to change some folders permissions:

chown -R www-data:www-data /var/www/vtigercrm/
chmod 755 /var/www/vtigercrm/

Step 4. Configuring MariaDB.

By default, MariaDB is not hardened. You can secure MySQL 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

Next we will need to log in to the MariaDB console and create a database for the vTiger. 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 vTiger installation:

MariaDB > CREATE DATABASE vtiger;
MariaDB > CREATE USER 'vtiger_user'@'localhost' IDENTIFIED BY 'PaSsWoRd';
MariaDB > GRANT ALL PRIVILEGES ON `vtiger`.* TO 'vtiger_user'@'localhost';
MariaDB > FLUSH PRIVILEGES;
MariaDB > \q

Now, let’s tweak some of your PHP settings so you can later complete the VTiger installation:

nano /etc/php/7.2/apache2/php.ini

Modify the following lines:

max_execution_time = 120
max_input_vars = 2000
memory_limit = 256M
post_max_size = 32M
upload_max_filesize = 64M
file_uploads = On
allow_url_fopen = On
display_errors = On
short_open_tags = Off
log_errors = Off
error_reporting = E_WARNING & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT

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

systemctl restart apache2.service

Step 5. Configuring Apache web server for vTiger.

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

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

Add the following lines:

ServerAdmin [email protected]
DocumentRoot /var/www/vtigercrm
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 effect:

sudo a2ensite vtiger.conf
sudo a2enmod rewrite
sudo phpenmod mbstring
sudo a2enmod headers
sudo systemctl restart apache2

Step 5. Accessing Vtiger CRM.

Vtiger CRM will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/vtigercrm or http://server-ip/vtigercrm 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 vTiger. Thanks for using this tutorial for installing vTiger Customer Relationship Management on your Ubuntu 18.04 system. For additional help or useful information, we recommend you to check the official vTiger website.

How to Install Linux Kernel 5.0 on Ubuntu 18.04 LTS

Install Linux Kernel 5.0 on Ubuntu 18

Linus Torvalds the creator and the principal developer of the Linux kernel announced the release of Linux kernel version 5.0. This release increases the major kernel version number to 5. from 4.x. The new change does not mean anything and does not affect programs in any way.

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 Linux Kernel 5.0 on an Ubuntu 18.04 bionic beaver.

Install Linux Kernel 5.0 on Ubuntu 18.04 LTS Bionic Beaver

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 update
sudo apt upgrade

Step 2. Installing Linux Kernel 5.0 on Ubuntu.

First, download and install the kernel binaries via terminal commands:

### 64-bit OS ###
cd /tmp/
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-headers-5.0.0-050000_5.0.0-050000.201903032031_all.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-headers-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-image-unsigned-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-modules-5.0.0-050000-generic_5.0.0-050000.201903032031_amd64.deb
sudo dpkg -i *.deb
### 32-bit OS ###
cd /tmp/
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-headers-5.0.0-050000_5.0.0-050000.201903032031_all.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-headers-5.0.0-050000-generic_5.0.0-050000.201903032031_i386.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-image-5.0.0-050000-generic_5.0.0-050000.201903032031_i386.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/linux-modules-5.0.0-050000-generic_5.0.0-050000.201903032031_i386.deb
sudo dpkg -i *.deb

After installation is finished, reboot your ubuntu system:

sudo reboot

And check linux kernel version:

uname -a

Congratulation’s! You have successfully installed Linux Kernel. Thanks for using this tutorial for installing Linux Kernel on Ubuntu system. For additional help or useful information, we recommend you to check the official Linux Kernel website.

How To Install Apache CouchDB on Ubuntu 18.04 LTS

Install Apache CouchDB on Ubuntu 18

CouchDB is an open source project and NoSQL, document oriented database server. It has a document-oriented NoSQL database architecture and is implemented in the concurrency-oriented language Erlang; it uses JSON to store data, JavaScript as its query language using MapReduce, and HTTP for an API.

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 Apache CouchDB on a Ubuntu 18.04 (Bionic Beaver) server.

Install Apache CouchDB on Ubuntu 18.04 LTS Bionic Beaver

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

sudo apt update
sudo apt upgrade

Step 2. Installing Apache CouchDB on Ubuntu.

First, Add the official CouchDB PPA repository using add-apt-repository command:

curl -L https://couchdb.apache.org/repo/bintray-pubkey.asc | sudo apt-key add -
echo "deb https://apache.bintray.com/couchdb-deb bionic main" | sudo tee -a /etc/apt/sources.list

Now that the repository is enabled update the packages list and install CouchDB:

sudo apt update
sudo apt install couchdb

During hte installation, you should see messages to select some option:

┌──────────────────────────┤ Configuring couchdb ├──────────────────────────┐
│ │
│ Please select the CouchDB server configuration type that best meets your
│ needs.
│
│ For single-server configurations, select standalone mode. This will set
│ up CouchDB to run as a single server.
│
│ For clustered configuration, select clustered mode. This will prompt for
│ additional parameters required to configure CouchDB in a clustered
│ configuration.
│
│ If you prefer to configure CouchDB yourself, select none. You will then
│ need to edit /opt/couchdb/etc/vm.args and /opt/couchdb/etc/local.d/*.ini
│ yourself. Be aware that this will bypass *all* configuration steps,
│ including setup of a CouchDB admin user - leaving CouchDB in "admin
│
│
│ │
└───────────────────────────────────────────────────────────────────────────┘

Next, select standalone option and continue:

┌─────────┤ Configuring couchdb ├─────────┐
│ General type of CouchDB configuration: │
│ │
│ standalone │
│ clustered │
│ none │
│ │
│ │
│ │
│ │
└─────────────────────────────────────────┘

Next, type in the interface IP address and continue:

┌─────────────────────────┤ Configuring couchdb ├──────────────────────────┐
│ A CouchDB node must bind to a specific network interface. This is done │
│ via IP address. Only a single address is supported at this time. │
│ │
│ The special value '0.0.0.0' binds CouchDB to all network interfaces. │
│ │
│ The default is 127.0.0.1 (loopback) for standalone nodes, and 0.0.0.0 │
│ (all interfaces) for clustered nodes. In clustered mode, it is not │
│ allowed to bind to 127.0.0.1. │
│ │
│ CouchDB interface bind address: │
│ │
│ 127.0.0.1_______________________________________________________________ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────┘

Once the installation is finished. Start CouchDB and enable it to start on boot time using the following command:

sudo systemctl start couchdb
sudo systemctl enable couchdb

Step 3. Accessing Apache CouchDB.

Apache CouchDB will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://your_IP:5984/_utils/ and complete the required the steps to finish the installation.

Congratulation’s! You have successfully installed CouchDB. Thanks for using this tutorial for installing Apache CouchDB on Ubuntu 18.04 systems. For additional help or useful information, we recommend you to check the official CouchDB website.