How To Install Android Studio on Ubuntu 16.04 LTS

Install Android Studio on Ubuntu 16

Android Studio is the official Integrated Development Environment (IDE) for Android app development, based on IntelliJ IDEA. On top of IntelliJ’s powerful code editor and developer tools, Android Studio offers even more features that enhance your productivity when building Android apps

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 Android Studio on an Ubuntu 16.04 Xenial Xerus server.

Install Android Studio on Ubuntu 16.04 LTS

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 Java 8 on Ubuntu.

First you need to make sure that your ubuntu is equipped with JAVA. Here, we are using PPA or ORACLE Java. Run the following commands

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

Once installed we need to set Java environment variables such as JAVA_HOME on Ubuntu 16.04:

sudo apt-get install oracle-java8-set-default
source /etc/profile

Step 3. Install Android Studio on Ubuntu.

Run the following commands to add Android Studio PPA and install:

sudo add-apt-repository ppa:maarten-fonville/android-studio
sudo apt update
sudo apt install android-studio

Once the installation is finished, you can open Android Studio from Unity Dash or your preferred app launcher or You can access android studio from the dash or app launcher or use the following command to start:

/opt/android-studio/bin/studio.sh

Congratulation’s! You have successfully installed Android Studio. Thanks for using this tutorial for installing Android Studio on your Ubuntu 16.04 LTS. For additional help or useful information, we recommend you to check the official Android Studio web site.

How To Install osTicket on Ubuntu 16.04 LTS

Install osTicket on Ubuntu 16

os-Ticket is a widely-used and trusted open source support ticket system. It seamlessly routes inquiries created via email, web-forms and phone calls into a simple, easy-to-use, multi-user, web-based customer support platform. Generally Used for Help Desk 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 osTicket open source support ticket system on an Ubuntu 16.04 Xenial Xerus server.

Install osTicket on Ubuntu 16.04 LTS

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

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 php7.0-mcrypt php7.0-xmlrpc php7.0-gd

Step 3. Installing osTicket.

Download the latest stable version of osTicket, At the moment of writing this article it is version 1.10.1:

sudo mkdir /var/www/html/osticket
cd /var/www/html/osticket
wget http://osticket.com/sites/default/files/download/osTicket-v1.10.1.zip
sudo unzip osTicket-v1.10.1.zip

Next, copy the sample config file:

cp upload/include/ost-sampleconfig.php upload/include/ost-config.php

We will need to change some folders permissions:

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

Step 4. Configuring MariaDB for osTicket.

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

CREATE DATABASE osticket;
GRANT ALL PRIVILEGES ON osticket.* TO 'osticketuser'@'localhost' IDENTIFIED BY 'PASSWORD';
FLUSH PRIVILEGES;
exit;

Step 5. Configuring Apache web server for osTicket.

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

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

Add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/osticket/upload/
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/html/osticket/upload>
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>

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

systemctl restart apache2.service

Step 6. Accessing osTicket.

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

Once the installation has completed, remove the setup directory and change the permission of the osTicket config file:

sudo rm -rf /var/www/html/osticket/upload/setup
sudo chmod 0644 /var/www/html/osticket/include/ost-config.php

Congratulation’s! You have successfully installed osTicket. Thanks for using this tutorial for installing osTicket open source support ticket system on your Ubuntu 16.04 LTS. For additional help or useful information, we recommend you to check the official osTicket web site.

How To Install Kotlin Compiler on Ubuntu 16.04

Install Kotlin Compiler on Ubuntu 16

Kotlin is a new statically typed language from JetBrains. JetBrains is famous for its popular Java IDE IntelliJ. Kotlin was recently open sourced and the compiler made accessible through Github. This article will reveal the steps necessary to build and install the compiler and run a program. In this tutorial we will show you how to install Kotlin Compiler on Ubuntu 16.04 LTS.

Kotlin is a completely supported programming language by Google on the Android, and can be directly included in the Android Studio 3.0 IDE package as an alternative to the standard Java compiler.

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 Kotlin programming language on an Ubuntu 16.04 Xenial Xerus server.

Install Kotlin Compiler on Ubuntu 16.04

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 Kotlin Programming Language.

An easier way to install Kotlin on UNIX based systems is by using SDKMAN!. Simply run the following in a terminal and follow any instructions:

curl -s https://get.sdkman.io | bash

Next, open a new terminal and install Kotlin with:

sdk install kotlin

Then, carry out this command additionally to add sdkman to your path:

source "$HOME/.sdkman/bin/sdkman-init.sh"

To test whether the kotlin has successfully installed in your machine, launch another terminal and start executing the below command:

kotlinc -version

Congratulation’s! You have successfully installed Kotlin. Thanks for using this tutorial for installing Kotlin programming language on your Ubuntu 16.04 LTS. For additional help or useful information, we recommend you to check the official Kotlin web site.

How To Install ArangoDB on Ubuntu 16.04 LTS

Install ArangoDB on Ubuntu 16

Arango database (ArangoDB) is a multi-model database program, meaning one which uses a combination of Key-Value pairs, files and graphs to store info. It has a flexible information model for files and graphs. It is a general purpose database and gives all attributes which are necessary for a contemporary web application.

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 ArangoDB on an Ubuntu 16.04 Xenial Xerus server.

Install ArangoDB on Ubuntu 16.04 LTS

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

By default, ArangoDB is not available in Ubuntu repository, so you will need to add the ArangoDB repository to your system:

wget https://www.arangodb.com/repositories/arangodb3/xUbuntu_16.04/Release.key

Now add the key with the following command:

apt-key add Release.key

Next add the ArangoDB repository to sources.list and update the system again:

apt-add-repository 'deb https://www.arangodb.com/repositories/arangodb3/xUbuntu_16.04/ /'
apt-get update -y

Next, install ArangoDB by running the following command:

apt-get install arangodb3 -y

Once the installation is complete, start the arangodb3 service with the following command:

systemctl start arangodb3
systemctl enable arangodb3

Step 3. Access ArangoDB CLI.

ArangoDB comes with arangosh that provides a command line shell to access the database. You can create new databases, users, collections, documents, and perform all administrative tasks using this client:

arangosh

When asked for a password, enter the root password. You should see the following output:

__ _ _ __ __ _ _ __ __ _ ___ ___| |__ 
 / _` | '__/ _` | '_ \ / _` |/ _ \/ __| '_ \ 
| (_| | | | (_| | | | | (_| | (_) \__ \ | | |
 \__,_|_| \__,_|_| |_|\__, |\___/|___/_| |_|
 |___/

arangosh (ArangoDB 3.0.12 [linux] 64bit, using VPack 0.1.30, ICU 54.1, V8 5.0.71.39, OpenSSL 1.0.2g-fips 1 Mar 2016)
Copyright (c) ArangoDB GmbH

Pretty printing values.
Connected to ArangoDB 'http+tcp://127.0.0.1:8529' version: 3.0.12 [server], database: '_system', username: 'root'

Please note that a new minor version '3.1.19' is available
Type 'tutorial' for a tutorial or 'help' to see common examples
127.0.0.1:8529@_system>

Step 4. Accessing ArangoDB Web Interface.

ArangoDB comes with built-in, user friendly web interface for performing administrative tasks. First, open the arangod.conf file located in the /etc/arangodb3/ directory:

nano /etc/arangodb3/arangod.conf

Add your server’s IP address as follows:

endpoint = tcp://192.168.1.227:8529

Next, open the arangosh.conf file located at /etc/arangodb3/ directory:

nano /etc/arangodb3/arangosh.conf

Again, add your server’s IP address:

endpoint = tcp://192.168.1.227:8529
authentication = true

Save the file and restart the ArangoDB service:

systemctl restart arangodb3

Finally steps, Open your favorite web browser and type the URL http://192.168.0.227:8529. This will open up the login screen for the _system db. After entering your login credentials, you will see the ArangoDB splash screen. This concludes my tutorial.

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

How To Install LAMP Stack on Ubuntu 18.04 LTS

Install LAMP Stack on Ubuntu 18

LAMP represents a full featured stack containing the most popular web server known as Apache, the most popular database server MySQL and the most popular open-source web programming language known as PHP. All components are free and open-source software, and the combination is suitable for building dynamic web pages.

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. I will show you through the step by step installation LAMP (Linux Apache, MySQL and PHP) on Ubuntu 18.04 LTS Bionic Beaver server.

Install LAMP Stack on Ubuntu 18.04 LTS Bionic Beaver

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

apt-get update
apt-get upgrade

Step 2. Installing Apache web server on Ubuntu 18.04 LTS Bionic Beaver.

We will be installing Apache with apt-get, which is the default package manager for ubuntu:

apt-get install -y apache2 apache2-utils

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

systemctl enable apache2
systemctl start apache2
systemctl status apache2

Check Apache version:

apache2 -v

You can verify that Apache is really running by opening your favorite web browser and entering the URL http://your-server’s-address, if it is installed, then you will see this:

apache2-ubuntu-default-page

Step 3. Installing MariaDB on Ubuntu 18.04 LTS Bionic Beaver.

Now that we have our web server up and running, it is time to install MariaDB. MariaDB is a database management system. Basically, it will organize and provide access to databases where our site can store information:

apt-get install mariadb-server mariadb-client

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

systemctl status mariadb
systemctl enable mariadb
systemctl start mariadb

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

To log into MariaDB, use the following command (note that it’s the same command you would use to log into a MySQL database):

mysql -u root -p

Step 4. Installing PHP 7.2 on Ubuntu 18.04 Bionic Beaver.

At the the time of this writing, PHP7.2 is the latest stable version of PHP and has a minor performance edge over PHP7.0. Enter the following command to install PHP7.2:

apt-get install software-properties-common
add-apt-repository ppa:ondrej/php

Run the commands below to install PHP 7.2 FPM and related modules:

apt-get update
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

After install PHP and related modules, all you have to do is restart Apache2 to reload PHP configurations:

systemctl restart apache2

To test PHP, create a test file named info.php with he content below. Save the file, then browse to it to see if PHP is working:

nano /var/www/html/info.php

In this file, paste the following code:

<?php
phpinfo();
?>
1
2
3
	
<?php
phpinfo();
?>

Try to access it at http://your_server_ip/info.php . If the PHP info page is rendered in your browser then everything looks good and you are ready to proceed further.

php_ubuntu_test_18.04_LTS

Congratulation’s! You have successfully installed LAMP stack. Thanks for using this tutorial for installing LAMP (Linux Apache, MySQL and PHP) in Ubuntu 18.04 LTS (Bionic Beaver) system. For additional help or useful information, we recommend you to check the official Apache, MySQL and PHP web site.

How To Install Notepad++ on Ubuntu 16.04 LTS

Install Notepad++ on Ubuntu 16

Notepad++ is a free source code editor and Notepad replacement that supports several languages. Running in the MS Windows environment, its use is governed by GPL License. For a while now there has been an alternative to Notepad++ called Notepadqq for Linux systems, including Ubuntu.. Notepadqq is not a bad editor, but probably not as feature-rich as Notepad++. In this tutorial we will show you how to install Notepad++ 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 Notepad++ on an Ubuntu 16.04 Xenial Xerus server.

Install Notepad++ on Ubuntu 16.04 LTS

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

Snap is a powerful package management system for Linux users, it probably the best and easiest way to install packages on Linux machine. To install Snap, run the commands below:

apt-get install snapd snapd-xdg-open

Step 3. Installing Notepad++ on Ubuntu.

To install Notepad++ run the commands below:

snap install notepad-plus-plus

Once installing the package, run the commands below to install a mandetory plugin:

snap connect notepad-plus-plus:process-control

And optional plugins below should probably be installed as well:

snap connect notepad-plus-plus:removable-media
snap connect notepad-plus-plus:hardware-observe
snap connect notepad-plus-plus:cups-control

Finally steps, next go to your Activities Overview and search for, the launch Notepad++.

Congratulation’s! You have successfully installed Notepad++. Thanks for using this tutorial for installing Notepad++ on your Ubuntu 16.04 LTS. For additional help or useful information, we recommend you to check the official Notepad++ web site.

How To Install Buddy on Ubuntu 16.04 LTS

Install Buddy on Ubuntu 16

Buddy is a continuous integration and delivery platform for GitHub, GitLab and Bitbucket with Docker-based builds and automatic deployments. In this tutorial we will show you how to install Buddy 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 Buddy on an Ubuntu 16.04 Xenial Xerus server.

Install Buddy on Ubuntu 16.04 LTS

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 Docker Engine.

Buddy requires the Docker Engine to run. Follow Docker installation instructions:

apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get -y update
apt-get -y install docker-ce

Step 3. Installing Docker Composer.

With the Engine installed, you can install Docker Compose which is also required by Buddy:

curl -L https://github.com/docker/compose/releases/download/1.14.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

Step 4. Installing Buddy on Ubuntu 16.04.

To install Buddy Enterprise, run the following in the terminal:

curl -sSL https://get.buddy.works | sh && buddy install

Buddy Enterprise uses ports 80, 443 and 22 on the installation server. You will be asked for an alternative port if one of the ports is unavailable. When asking for the terms, simply confirm with “Enter”. When the installation is complete, change to the next tab.

Step 5. Accessing Buddy.

Buddy 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.
buddy-web-interface

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