How To Install Spotify on Ubuntu 18.04 LTS

Install Spotify on Ubuntu 18

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 18.04 (Bionic Beaver) server.
Install Spotify 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-get update
sudo apt-get upgrade

Step 2. Installing Spotify Stable on Ubuntu 18.04 LTS.

Method 1.

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

apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410

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

Method 2.

Install Spotify application using the Snap command:

sudo snap install spotify
sudo snap list spotify

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 18.04 LTS (Bionic Beaver) system. For additional help or useful information, we recommend you to check the official Spotify web site.

How To Setup UFW Firewall on Ubuntu 18.04 LTS

Setup UFW Firewall on Ubuntu 18

The default firewall configuration tool for Ubuntu is ufw. Developed to ease iptables firewall setup, ufw provides a user friendly way to produce an IPv4 or IPv6 host-based antivirus. By default UFW is disabled.

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 UFW Firewall on an Ubuntu 18.04 Bionic Beaver server.

Setup UFW Firewall on Ubuntu 18.04 LTS Bionic Beaver

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing UFW Firewall on Ubuntu 18.04 LTS.

In Ubuntu 18.04, UFW is installed by default. If not, you can easily install it by running the following command:

apt-get install ufw

To check whether ufw is running run:

systemctl status ufw

After installation, UFW is deactivated. If you configure your server via SSH, it is important to release SSH before you enable UFW:

ufw allow ssh

Step 3. UFW control.

Turn on:

ufw enable

Turn off:

ufw disable

Attention! The following are examples, please use only if you know what you are doing!

Allow protocol:

ufw allow ssh

Allow port:

ufw allow 22

Allow Port Ranges:

ufw allow 1000:2000

Prohibit connections:

Deny protocol:

ufw deny ssh

Deny port:

ufw deny 22

To see all services that can be allowed or denied in the system check out the /etc/services file:

$ cat /etc/services | less
1
	
$cat/etc/services|less

Sample output:
ftp-data        20/tcp
ftp             21/tcp
fsp             21/udp          fspd
ssh             22/tcp                          # SSH Remote Login Protocol
ssh             22/udp
telnet          23/tcp
smtp            25/tcp          mail
time            37/tcp          timserver
time            37/udp          timserver
rlp             39/udp          resource        # resource location
nameserver      42/tcp          name            # IEN 116
whois           43/tcp          nicname
tacacs          49/tcp                          # Login Host Protocol (TACACS)
tacacs          49/udp
re-mail-ck      50/tcp                          # Remote Mail Checking Protocol
re-mail-ck      50/udp
domain          53/tcp                          # Domain Name Server
domain          53/udp

For more usage commands you can use the –help flag:

ufw --help

Step 4. Managing UFW via graphical user interface (GUI).

Install gufw package if you wish to manage our UFW firewall via graphical user interface application:

apt install gufw

Once installed, start Gufw by searching your start menu:
gufw-ubuntu
Congratulation’s! You have successfully install and setup UFW. Thanks for using this tutorial for installing UFW Firewall on your Ubuntu 18.04 Bionic Beaver system. For additional help or useful information, we recommend you to check the official UFW Firewall web site.

How To Install Google Chrome on Ubuntu 18.04 LTS

Install Google Chrome on Ubuntu 18

Google Chrome is a freeware web browser developed by Google, uses the WebKit layout engine. It is available for the Linux, Android, iOS, Microsoft Windows, and Mac OS X operating systems. But Google Chrome is more than a web browser, as it combines sophisticated open source technology, borrowed from the Chromium application, into a minimal design, all in order to help users surf the web much faster, a lot easier, and safer than ever before.

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

Install Google Chrome on Ubuntu 18.04 Bionic Beaver

Method 1. Install Google Chrome on Ubuntu 18.04 LTS from the Command Line.

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing Google Chrome on Ubuntu 18.04 LTS.

First, create a source list file for Google Chrome browser:

nano /etc/apt/sources.list.d/google-chrome.list

Next, copy the following APT line and paste it into google-chrome.list file:

deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

After that, run the following command to download Google’s signing key:

wget https://dl.google.com/linux/linux_signing_key.pub
apt-key add linux_signing_key.pub

Now update package list and install the stable version of Google Chrome:

apt update
apt install google-chrome-stable

Step 3. Accessing Google Chrome.
Once installed, open Google Chrome from Ubuntu Dash or Terminal:

google-chrome-stable

If you wish to uninstall and remove Google Chrome from Ubuntu, run the following commands:

apt-get purge google-chrome-stable
apt-get autoremove

Method 2. Install Google Chrome on Ubuntu 18.04 the Graphical Way

Step 1. Go to https://www.google.com/chrome. Click the Download Chrome button.

Step 2. Then select the first option (64 bit .deb package), click Accept and Install.

Step 3. When Firefox asks you how to open this deb file, choose the default option to open it in Ubuntu Software (formerly Ubuntu Software Center).

google-chrome-stable_current_amd64.deb_

If you choose the first option, Google Chrome deb package will be downloaded to /tmp/mozilla_$username directory. Once the download is complete, Ubuntu Software will automatically open. Click the Install button to install google-chrome-stable to Ubuntu 18.04. The version and installation size information can be seen in the Details section. 189.4MB of disk space! That’s huge for a Web browser.

Because software installation on Linux requires root privilege, so you have to enter your password to authenticate.

google-chrome-browser 2

Step 4. Once the installation is complete, you can start Chrome browser in the Unity Dash or by typing the following command in the terminal.

google-chrome-stable

Congratulation’s! You have successfully installed Google Chrome. Thanks for using this tutorial for installing Google Chrome web browser in Ubuntu 18.04 Bionic Beaver system. For additional help or useful information, we recommend you to check the official Google Chrome web site.

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 X2CRM on Ubuntu 16.04

Install X2CRM on Ubuntu 16

X2CRM is an open source marketing, sales, and customer service CRM application powered by an easy to use workflow engine and process management framework. Manage your clients with an endlessly customizable, powerful app, and boost your productivity like never before.

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

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

First thing to do is to go to X2CRM’s download page and download the latest stable version of X2CRM:

wget https://github.com/X2Engine/X2Engine/archive/master.zip

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

unzip master.zip
mv X2CRM-master/x2engine/ /var/www/html/x2cr

Set the file permissions for Bludit CMS:

chown -R www-data:www-data /var/www/html/x2crm/

Step 4. Configuring MariaDB for X2CRM.

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

MariaDB [(none)]&gt; CREATE DATABASE x2crm;
MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON x2crm.* TO 'x2crmuser'@'localhost' IDENTIFIED BY 'your-password';
MariaDB [(none)]&gt; FLUSH PRIVILEGES;
MariaDB [(none)]&gt; \q

Step 5. Configuring Apache web server for X2CRM.

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

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

Add the following lines:

ServerAdmin [email protected]
DocumentRoot /var/www/html/x2crm/
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 6. Accessing X2CRM.

X2CRM will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.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 X2CRM. Thanks for using this tutorial for installing X2CRM on your Ubuntu 16.04 (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official X2CRM web site.

How To Install Open Eshop on Ubuntu 16.04 LTS

Install Open Eshop on Ubuntu 16

Open eShop is an open source ecommerce software written in PHP which allows you to sell software, music, ebooks or anything else you may want.

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 Open eShop in Ubuntu 16.04 LTS Xenial Xerus.

Install Open Eshop 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 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-readline php7.0-curl php7.0-gd php7.0-mbstring libapache2-mod-php7.0 php7.0-mcrypt php7.0-bz2 php7.0-zip

Step 3. Installing Open eShop Lite.

First, download the latest stable version of the Open Eshop installation file from their official website with the following command:

mkdir /var/www/html/openeshop
cd /var/www/html/openeshop
wget https://raw.githubusercontent.com/open-classifieds/open-eshop/master/install-eshop.php

Change the owner of the script with the following command:

chown -R www-data:www-data install-eshop.php

Step 4. Configure MariaDB Database for Open eShop.

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

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 Open eShop. 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 the Open eShop software:

CREATE DATABASE openeshop_db;
CREATE USER 'openeshop'@'localhost' IDENTIFIED BY 'usr_strong_pwd';
GRANT ALL PRIVILEGES ON openeshop_db.* TO 'openeshop'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Step 5. Configuring Apache web server for Open eShop.

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

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

Add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/openeshop/
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/html/openeshop/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
</VirtualHost>

Next step we will need to adjust the some some values in the PHP configuration files as follow:

nano /etc/php/7.0/apache2/php.ini

Update the values for post_max_size, upload_max_filesize, and short_open_tag as follows:

post_max_size = 64M
upload_max_filesize = 64M
short_open_tag = On

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

systemctl restart apache2.service

Step 6. Accessing Open eShop.

Open eShop will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.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 Open eShop. Thanks for using this tutorial for installing Open eShop open source software for eCommerce platforms on your Ubuntu 16.04 LTS system. For additional help or useful information, we recommend you to check the official Open eShop web site.