How To Install IntelliJ IDEA on Ubuntu 18.04 LTS

Install IntelliJ IDEA on Ubuntu 18

IntelliJ IDEA is an integrated development environment for Java development. Notably, Google uses IntelliJ IDEA as the base for its Android Studio, an open source Android development IDE for developing Android applications. It is developed by JetBrains and is available in two editions, Community and Ultimate.

IntelliJ IDEA also supports major build automation tools such as Maven, Ant and Gradle, version controls systems such as Git and SVN. It has a built-in terminal, database tools, code completion, inline debugger. Also, it supports detecting duplicates, connecting Docker containers and application servers such as Tomcat, JBoss, 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 IntelliJ IDEA on a Ubuntu 18.04 (Bionic Beaver) server.

Install IntelliJ IDEA 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 IntelliJ IDEA on Ubuntu.

The recommended approach to install IntelliJ on Ubuntu 18.04 Linux system is to use the Snaps package. Run the following command to install the IntelliJ IDEA snap package:

### INTELLIJ IDEA COMMUNITY ###
sudo snap install intellij-idea-community --classic --edge

### INTELLIJ IDEA ULTIMATE ###
sudo snap install intellij-idea-ultimate --classic --edge

That’s it. IntelliJ IDEA has been installed on your Ubuntu desktop.

Step 3. Starting IntelliJ IDEA.

After successful instalation to start IntelliJ IDEA IDE via terminal run following command:

### INTELLIJ IDEA COMMUNITY ###
intellij-idea-community

### INTELLIJ IDEA ULTIMATE ###
intellij-idea-ultimate

Alternatively, you can start it by clicking on the IntelliJ IDEA icon (Activities -> IntelliJ IDE).

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

How To Install HAProxy on Ubuntu 18.04 LTS

Install HAProxy on Ubuntu 18

HAProxy is a free HTTP/TCP high availability load balancer and proxy server. It spreads requests among multiple servers to mitigate issues resulting from single server failure. HA Proxy is used by a number of high-profile websites including GitHub, Bitbucket, Stack Overflow, Reddit, Tumblr, Twitter and Tuenti and is used in the OpsWorks product from Amazon Web Services.

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

Install HAProxy 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. Network Details.

To install and configure HAProxy load balancer on Ubuntu 18.04 we will consider three system as follows:
Web Server Details:

Server 1: web1.wpcademy.com 192.168.1.104
Server 2: web1.wpcademy.com  192.168.1.105
HAProxy Server:
HAProxy: haproxy 192.168.1.46

Step 3. Installing HAProxy on Ubuntu.

At first we will install HAProxy by executing below commands:

sudo add-apt-repository ppa:vbernat/haproxy-1.7
sudo apt update
sudo apt install haproxy

Step 4. Configuring HAProxy.

Now edit haproxy default configuration file /etc/haproxy/haproxy.cfg and start configuration:

nano /etc/haproxy/haproxy.cfg

At the end of the file we will add folowing information:

<em>frontend Local_Server
bind 192.168.1.46:80
mode http
default_backend webserver</em>

backend webserver
mode http
balance roundrobin
option forwardfor
http-request set-header X-Forwarded-Port %[dst_port]
http-request add-header X-Forwarded-Proto https if { ssl_fc }
option httpchk HEAD / HTTP/1.1rnHost:localhost
server system1.osradar.com 192.168.1.104:80
server system2.osradar.com 192.168.1.105:80

To verify the configuration:

sudo haproxy -c -f /etc/haproxy/haproxy.cfg

If above command return output as “configuration file is valid” then restart HAProxy service:

systemctl restart haproxy

Step 5. Accessing HAProxy.

With the HAProxy configured and running, open your load balancer server’s public IP in a web browser and check that you get connected to your backend correctly. The parameter stats uri in the configuration enables the statistics page at the defined address:

http://192.168.0.46

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

How To Install TensorFlow on Ubuntu 18.04 LTS

Install TensorFlow on Ubuntu 18

TensorFlow is a free and open source platform for machine learning built by Google. It is used by a number of organizations including Twitter, PayPal, Intel, Lenovo, and Airbus. TensorFlow can be installed system-wide, in a Python virtual environment or as a Docker container using pip.

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

Install TensorFlow 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 venv.

Run the commands below to install Python and Python venv:

sudo apt install python3 python3-pip python3-venv

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

python3 -V

Step 3. Creating a Virtual Environment.

Now, we create a new directory for the TensorFlow project and navigate into it:

mkdir my_tensorflow
cd my_tensorflow

Once inside the directory, run the following command to create the virtual environment:

python3 -m venv venv

To start using this virtual environment, you need to activate it by running the activate script:

source venv/bin/activate

Step 4. Installing TensorFlow on Ubuntu.

Now that the virtual environment is activated, it’s time to install the TensorFlow package:

pip install --upgrade tensorflow

To verify the installation use the following command which will print the TensorFlow version:

python -c 'import tensorflow as tf; print(tf.__version__)'

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

How To Install Angular on Ubuntu 18.04 LTS

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

Install Angular 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 NodeJs and NPM.

To install Angular on Ubuntu 18.04 we first need to install NodeJs and the Node Package Manager (NPM):

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

Then install NPM:

sudo npm install npm@latest -g

Step 3. Installing Install Angular on CentOS.

We will now install the Angular CLI using NPM:

npm install -g @angular/cli

The Angular CLI makes use of git to pull down required modules so we need to make sure we have git configured. If you have not configured the git user name and email then run the following commands to do so:

git config --global user.email "[email protected]"
git config --global user.name "ramona"

Step 4. Creating a new Angular Application.

Now that we have Angular installed we can create a basic scaffolding for a new application. We will use our newly installed Angular CLI to accomplish this:

ng new wpcademy

First change into the newly created directory for our application:

cd wpcademy

We can run our application easily using the NPM command:

npm start

You will see a link in the output that tells you how to view your application:
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

**AngularLiveDevelopmentServerislisteningonlocalhost:4200,openyourbrowseronhttp://localhost:4200/ **

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

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.