How To Disable IPv6 on Ubuntu 18.04 LTS

Disable IPv6 on Ubuntu 18

IPv6 is enabled by default in Ubuntu. But you may want to disable IPv6 for many reasons. Some programs may cause problems when IPv6 is enabled, So if you are not planning to use IPv6, simply disable it and not worry about any potential problems. In this tutorial we will learn you how to disable IPv6 on Ubuntu 18.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 disable IPv6 on an Ubuntu 18.04 Bionic Beaver server.

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

sudo apt update
sudo apt upgrade

Step 2. Permanently Disable  with sysctl.

To disable IPv6 using sysctl, Open the Ubuntu terminal and Perform the following steps:

nano /etc/sysctl.conf

Add the following lines at the end of the sysctl.conf file:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

In Ubuntu server 18.04 LTS, you will need to add additional lines for each interface you want to disable IPv6:

net.ipv6.conf.<ifname>.disable_ipv6 = 1

For change to be effected, run the sysctl -p command:

sysctl -p

Step 3. Disable IPv6 using GRUB.

Perform the following steps with root privileges

Open the /etc/default/grub, Modify GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT to append ipv6.disable=1:

GRUB_CMDLINE_LINUX="ipv6.disable=1"
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"

Update the grub configuration:

update-grub

update-grub

Reboot the server:

systemctl reboot

Congratulation’s! You have successfully disable IPv6. Thanks for using this tutorial for disable IPv6 on your Ubuntu 18.04 Bionic Beaver system. For additional help or useful information, we recommend you to check the official UFW Firewall website.

How To Install Kubernetes v1.14 on Ubuntu 18.04 LTS

Install Kubernetes on Ubuntu 18

Kubernetes is a free and open-source container management system that provides a platform for deployment automation, scaling, and operations of application containers across clusters of host computers. With Kubernetes, you can freely make use of the hybrid,on-premise, and public cloud infrastructure in order to run deployment tasks of your organization.

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

Install Kubernetes on Ubuntu 18.04 LTS

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

sudo apt update
sudo apt upgrade

Step 2. Installing Docker.

Now we have to install Docker because Docker images will be used for managing the containers in the cluster. Run the following commands:

sudo apt install docker.io

Once the Docker is installed ensure that it is enabled to start after reboot:

sudo systemctl enable docker 
sudo systemctl start docker

Step 3. Installing Kubernetes on Ubuntu.

First, add the Kubernetes signing key on both the nodes:

curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add

Next, add Xenial Kubernetes Repository on both the nodes:

sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main"

Step 4. Installing Kubeadm.

The final step in the installation process is to install Kubeadm on both the nodes through the following command:

sudo apt install kubeadm

Check the version number of Kubeadm and also verify the installation through the following command:

kubeadm version

Step 4. Kubernetes Deployment.

First, disable swap memory (if running) on both the nodes:

sudo swapoff -a

Next, give hostnames to each node:

sudo hostnamectl set-hostname master-node
sudo hostnamectl set-hostname slave-node

Initialize Kubernetes on the master node:


sudo kubeadm init --pod-network-cidr=10.244.0.0/16
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

You can check the status of the master node by running the following command:

kubectl get nodes

Deploy a Pod Network through the master node:

A pod network is a medium of communication between the nodes of a network:

sudo kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml

Use the following command in order to view the status of the network:

kubectl get pods --all-namespaces

Now when you see the status of the nodes, you will see that the master-node is ready:

sudo kubectl get nodes

Next, add the slave node to the network in order to form a cluster:

sudo kubeadm join 192.168.100.6:6443 --token 06tl4c.oqn35jzecidg0r0m --discovery-token-ca-cert-hash sha256:c40f5fa0aba6ba311efcdb0e8cb637ae0eb8ce27b7a03d47be6d966142f2204c

Now when you run the following command on the master node, it will confirm that two nodes, the master node, and the server nodes are running on your system:

sudo kubectl get nodes

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

How To Install OpenCart v3.0.3.2 on Ubuntu 18.04 LTS

Install OpenCart on Ubuntu 18

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. In this tutorial we will learn you how to install OpenCart on Ubuntu 18.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 OpenCart on a Ubuntu 18.04 (Bionic Beaver) server.

Install OpenCart on Ubuntu 18.04 LTS

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

sudo apt update
sudo apt upgrade

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

A 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.1-cli php7.1-mbstring php7.1-gd php7.1-opcache php7.1-mysql php7.1-json php7.1-mcrypt php7.1-xml php7.1-curl

Step 3. Download OpenCart

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

sudo mkdir -p /var/www/html/example.com
cd /tmp
wget https://github.com/opencart/opencart/releases/download/3.0.3.1/opencart-3.0.3.1.zip
unzip opencart-*.zip
sudo mv /tmp/upload/* /var/www/html/example.com/

Next, copy the configurations files:

sudo cp /var/www/html/example.com/{config-dist.php,config.php}
sudo cp /var/www/html/example.com/admin/{config-dist.php,config.php}

We will need to change some folders permissions:

sudo chown -R www-data: /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)]> CREATE DATABASE opencart;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON opencart.* TO 'opencartuser'@'localhost' IDENTIFIED BY 'opencartuser_passwd';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> \q

Step 5. Configuring Apache web server for OpenCart.

Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘opencart.conf’ on your virtual server:
[/php]
touch /etc/apache2/sites-available/opencart.conf
ln -s /etc/apache2/sites-available/opencart.conf /etc/apache2/sites-enabled/opencart.conf
nano /etc/apache2/sites-available/opencart.conf
[/php]

Add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/example.com
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/html/example.com/>
Options FollowSymLinks
AllowOverride All
</Directory>
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 effects:

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

Step 6. 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 18.04 systems. For additional help or useful information, we recommend you to check the official OpenCart website.

How To Install CyberPanel on Ubuntu 18.04 LTS

Install CyberPanel on Ubuntu 18

CyberPanel comes with two versions one is simply called CyberPanel and other is Called CyberPanel Ent. CyberPanel comes with OpenLiteSpeed and is completely free for an unlimited number of domains and worker processes.

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

Install CyberPanel on Ubuntu 18.04 LTS

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

sudo apt update
sudo apt upgrade

Step 2. Download Installer

To install cyber panel run the below command:

cd /tmp
wget -O installer.sh https://cyberpanel.net/install.sh
chmod 755 installer.sh

After downloading the script and changing the permissions above, run the commands below to begin the installation:

sudo sh installer.sh
Checking OS...
Detecting Ubuntu 18.x...
Pre-flight check completed...
Process check completed...

    CyberPanel Installer v2.0

  1. Install CyberPanel.
  
  2. Install Addons.
  
  3. Exit.
  
Please enter the number[1-3]: 1

You be prompted with the next screen, select the option below:

CyberPanel Installer v2.0

  RAM check : 1446/1993MB (63.72%) 
  
  Disk check : 8/20GB (34%) (Minimal 10GB free space)

  1. Install CyberPanel with OpenLiteSpeed.
  
  2. Install Cyberpanel with LiteSpeed Enterprise.
  
  3. Exit.
  
Please enter the number[1-3]: 1

Installing the packages you choose:


 
Installing from official server or mirror server?

Mirror server network is optimized for Asia Pacific region...
If you experience very slow download speed during installation, please try use mirror server on clean system...
Use mirror server [y/N]: y

Replace JS/CSS files to JS Delivr?
This may improve panel loading speed in Asia Pacific region... 
Please select [y/N]: y

Install Memcached extension for PHP?
Please select [y/N]: y

Install LiteSpeed Memcached?
Please select [y/N]: y

Install Redis extension for PHP?
Please select [y/N]: y

Install Redis?
Please select [y/N]: y

The Complete Installation Process takes 5-10 mins, you should see similar screen like the one below with the administrator login detail:

The installer will output your administrator details:

###################################################################
                CyberPanel Successfully Installed                  
                Current Disk usage : 4/20GB (16%)                        
                Current RAM  usage : 246/487MB (47.84%)                         
                Installation time  : 0 hrs 6 min 26 sec                      

                Visit: https://(YOUR_SERVER_IP):8090                     
                Panel username: intan                              
                Panel password: ramona                            
                Mysql username: root                               
                Mysql password: ramona                     

            Please change your default admin password              

          If you change mysql password, please  modify file in     
         /etc/cyberpanel/mysqlPassword with new password as well   

              Website : https://www.cyberpanel.net                 
              Forums  : https://forums.cyberpanel.net              
              Wikipage: https://docs.cyberpanel.net                
             Enjoy your accelerated Internet by                  
                CyberPanel & OpenLiteSpeed                                       
###################################################################

After the successful installation, you can access CyberPanel using the below details:

https:(ip address):8090 
Username: intan 
Password: ramona

Congratulation’s! You have successfully installed CyberPanel. Thanks for using this tutorial for installing CyberPanel open source host control panel on Ubuntu 18.04 LTS (Bionic Beaver) system. For additional help or useful information, we recommend you to check the official CyberPanel web site.

How To Install TYPO3 9 LTS(Version: 9.5.5)on Ubuntu 18.04 LTS

Install TYPO3 on Ubuntu 18

TYPO3 is an enterprise open source content management system based on PHP. It’s intended for ease of use to allow owners and enterprises to create powerful and dynamic content websites. If you’re looking for a functional, higher performance content management system to manage your websites or blogs and 100% free, then you’ll find TYPO3 to be helpful.

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

Install TYPO3 on Ubuntu 18.04 LTS

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

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 a LAMP installed, you can follow our guide here. Also install all required PHP modules:

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

Next, run the commands below to install PHP 7.2 and related modules:

sudo apt install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-gmp php7.2-curl php7.2-intl php7.2-mbstring php7.2-xmlrpc php7.2-mysql php7.2-gd php7.2-xml php7.2-cli php7.2-zip

Step 3. Download TYPO3 latest version

Download TYPO3 latest release you may want to use Github repository:

Install Composer, Curl and other dependencies:

sudo apt install curl git
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

Next, Download TYPO3 latest release you may want to use Github repository:

cd /var/www/html
sudo composer create-project typo3/cms-base-distribution typo3 ^9
sudo touch /var/www/html/typo3/public/FIRST_INSTALL

We will need to change some folders permissions:

sudo chown -R www-data:www-data /var/www/html/typo3/
sudo chmod -R 755 /var/www/html/typo3/

Step 4. Configuring MariaDB for TYPO3.

By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. you should read and below each step carefully which will set the 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 TYPO3. 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 TYPO3 installation:

CREATE DATABASE typo3;
CREATE USER 'typo3user'@'localhost' IDENTIFIED BY 'new_password_here';
GRANT ALL ON typo3.* TO 'typo3user'@'localhost' IDENTIFIED BY 'user_password_here' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;

Step 5. Configuring Apache for TYPO3.

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

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

Add the following lines:

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

sudo a2ensite typo3.conf
sudo a2enmod rewrite
systemctl restart apache2.service

Next, we have to make some PHP settings. For this we go into the php.ini and adjust a few settings:

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

Then make the change the following lines below in the file and save:

file_uploads = On
allow_url_fopen = On
short_open_tag = On
memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 360
max_input_vars = 1500
date.timezone = America/Chicago

Step 6. Accessing TYPO3 CMS.

TYPO3 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 TYPO3. Thanks for using this tutorial for installing TYPO3 on Ubuntu 18.04 LTS (Bionic Beaver) system. For additional help or useful information, we recommend you to check the official TYPO3 web site.

How To Install Skype on Ubuntu 18.04 LTS

Install Skype on Ubuntu 18

Skype is one of the most popular communication applications in the world that allows you to make free online audio and video calls, and affordable international calling to mobiles and landlines worldwide. Skype also offers some rich features like voice mail, video chat, instant messaging, call forwarding, conference calling and many more.

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

Install Skype on Ubuntu 18.04 LTS

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

sudo apt update
sudo apt upgrade

Step 2. Download the latest Skype version

First, Download the latest Skype .deb package using the following wget command:

wget https://go.skype.com/skypeforlinux-64.deb

Then, install Skype by running the following command as a user with sudo privileges:

sudo apt install ./skypeforlinux-64.deb

Step 3. Accessing Skype.

Skype should now be installed on you Ubuntu 18.04 Bionic Beaver system. Use Ubuntu’s application menu to start Skype or start Skype directly from your terminal:

skype

ubuntu-skype
Congratulation’s! You have successfully installed Skype. Thanks for using this tutorial for installing Skype on your Ubuntu 18.04 system. For additional help or useful information, we recommend you to check the official Skype web site.

How To Install Elgg3.0.2 on Ubuntu 18.04 LTS

Install Elgg on Ubuntu 18

In this tutorial we will show you how to install Elgg on Ubuntu 18.04 LTS. For those of you who didn’t know, Elgg is an open source social networking engine that allows the creation of social environments such as campus social networks and internal collaborative platforms for organizations. Elgg offers a number of social networking features including microblogging, messaging, file-sharing and groups.

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 Elgg Social Networking Platform on an Ubuntu 18.04 Bionic Beaver server.

Install Elgg on Ubuntu 18.04 LTS

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

sudo apt update
sudo apt upgrade

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

A 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.1-cli php7.1-mbstring php7.1-gd php7.1-opcache php7.1-mysql php7.1-json php7.1-mcrypt php7.1-xml php7.1-curl

Step 3. Download latest stable Elgg version

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

wget https://elgg.org/about/getelgg?forward=elgg-2.3.10.zip

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

unzip elgg-2.3.10.zip
mv /elgg-2.3.10/ /var/www/html/elgg/

We will need to change some folders permissions:

chown -R www-data:www-data /var/www/html/elgg/
chmod -R 755 /var/www/html/elgg/

Step 4. Configuring MariaDB for Elgg.

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

create database elggdb;
GRANT ALL PRIVILEGES ON elggdb.* TO 'elgguser'@'localhost' IDENTIFIED BY 'Y0UR-PASSW0RD';
flush privileges;
quit

Step 5. Configuring Apache web server for Elgg.

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

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

Add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/elgg/
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/html/elgg/>
Options FollowSymLinks
AllowOverride All
</Directory>
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 effects:

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

Step 6. Accessing Elgg.

Elgg Social Networking Platform will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/install.php or http://server-ip/install.php 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.
how-to-isntall-elgg

Congratulation’s! You have successfully installed Elgg. Thanks for using this tutorial for installing Elgg Social Networking Platform in Ubuntu 18.04 LTS system. For additional help or useful information, we recommend you to check the official Elgg web site.