How To Install Netbeans 11.0 on Ubuntu 18.04 LTS

Install Netbeans on Ubuntu 18

The NetBeans is an open-source integrated development environment which provides a powerful application frame platform which allows programmers to create Java-based net applications, mobile software, and desktop software.

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

Install Netbeans 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 Java OpenJDK.

NetBeans requires having the Java VM installed on the machine, so you would need to install either Oracle Java 8 or OpenJDK 8:

sudo apt install openjdk-8-jdk
sudoaptinstallopenjdk-8-jdk

Step 3. Installing Netbeans IDE.

Install the Netbeans using snap:

sudo snap install netbeans --classic
sudosnapinstallnetbeans--classic

The process may take some time depending on your connection speed. On successful installation, you will see the following output:
netbeans 10.0 from ‘apache-netbeans’ installed

netbeans10.0from’apache-netbeans’installed

Step 4. Assessing Netbeans IDE.

Now that Netbeans is installed on your Ubuntu system you can start it typing netbeans in your terminal or by clicking on the Netbeans icon (Activities -> Netbeans).

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

How To Install RubyMine 2019.1 on Ubuntu 18.04 LTS

Install RubyMine on Ubuntu 18

RubyMine is an all-new IDE for Ruby and Rails developers, developed by JetBrains (best known for Java IDE IntelliJ IDEA). RubyMine build upon the IntelliJ IDEA platform and brings together all of the essential features you expect of an IDE (editor, debugging tools, source control integration, code completion, and so forth) along with lots of extra goodies specific to Ruby, such as GUI-based support for RSpec and Test.

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

Install RubyMine 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 Snappy Package Manager.

Install Snappy package manager type following command:

sudo apt install snapd snapd-xdg-open

Step 3. Installing RubyMine on Ubuntu.

First, download and installed RubyMine snap package run following command:

sudo snap install rubymine --classic

After successful installation to start RubyMine via terminal run following command:

rubymine

Also start RubyMine from activities on Ubuntu. Typing RubyMine will show you RubyMine icon.

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

How To Install WildFly 16.0.0.Final on Ubuntu 18.04 LTS

Install WildFly on Ubuntu 18

The WildFly implements the Java Enterprise Edition (Java EE). It is among the most common source Java server applications. It offers you an administration dashboard to manage single or multiple domains efficiently.

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

Install WildFly 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 and install Java.

In order to run WildFly, Java has to be installed on the server so run the following command to install the Java Development Kit package (JDK):

sudo apt install default-jdk

Step 3. Create WildFly User.

We will create a new system user and group named wildfly with home directory /opt/wildfly that will run the WildFly service:

sudo groupadd -r wildfly
sudo useradd -r -g wildfly -d /opt/wildfly -s /sbin/nologin wildfly

Step 4. Download WildFly latest version

First, Download the latest version of WildFly on the server and extract it using the following commands:

wget https://download.jboss.org/wildfly/$WILDFLY_VERSION/wildfly-$WILDFLY_VERSION.tar.gz -P /tmp
sudo tar xf /tmp/wildfly-$WILDFLY_VERSION.tar.gz -C /opt/
[php]
	


Next, create a symbolic link wildfly which will point to the WildFly installation directory:
[php]
sudo ln -s /opt/wildfly-$WILDFLY_VERSION /opt/wildfly
sudo chown -RH wildfly: /opt/wildfly

Step 5. Configure Systemd WildFly.

Start by creating a directory which will hold the WildFly configuration file:
sudo mkdir -p /etc/wildfly
sudo cp /opt/wildfly/docs/contrib/scripts/systemd/wildfly.conf /etc/wildfly/

By default, WildFly will run in a standalone mode and will listen on all interfaces. You can edit the file according to your needs:

nano /etc/wildfly/wildfly.conf

# The configuration you want to run
WILDFLY_CONFIG=standalone.xml

# The mode you want to run
WILDFLY_MODE=standalone

# The address to bind to
WILDFLY_BIND=0.0.0.0

Next copy the WildFly launch.sh script to the /opt/wildfly/bin/ directory:

sudo cp /opt/wildfly/docs/contrib/scripts/systemd/launch.sh /opt/wildfly/bin/
sudo sh -c 'chmod +x /opt/wildfly/bin/*.sh'
sudo cp /opt/wildfly/docs/contrib/scripts/systemd/wildfly.service /etc/systemd/system/

Then, start the WildFly service by executing:

sudo systemctl daemon-reload
sudo systemctl start wildfly
sudo systemctl enable wildfly

Step 6. Configure the Firewall for WildFly.

Allow traffic on port 8080 type the following command:

sudo ufw allow 8080/tcp

Step 7. Accessing WildFly

WildFly will be available on HTTP port 8080 by default. Open your favorite browser and navigate to http://yourdomain.com:8080 or http://server-ip:8080 and complete the required the steps to finish the installation.

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

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.