×


Blog


Install Java on Ubuntu 20.04 LTS - Step by Step Process ?

This article covers how to install Java Run-time Environment (JRE) and the Java Developer Kit (JDK) on Ubuntu 20.04. Java is one of the most popular programming languages. It is used for developing anything from lightweight mobile to desktop applications.

Oracle's licensing agreement for Java doesn’t allow automatic installation through package managers. To install the Oracle JDK, which is the official version distributed by Oracle, you must create an Oracle account and manually download the JDK to add a new package repository for the version you'd like to use. 


To install the Default JRE/JDK 

1. To install this version, first update the package index:

$ sudo apt update

2. Next, check if Java is already installed:

$ java -version

If Java is not currently installed, you’ll see the following output:

Output
Command 'java' not found, but can be installed with:
apt install default-jre
apt install openjdk-11-jre-headless
apt install openjdk-8-jre-headless

3. Execute the following command to install the default Java Runtime Environment (JRE), which will install the JRE from OpenJDK 11:

$ sudo apt install default-jre

The JRE will allow you to run almost all Java software.

4. Verify the installation with:

java -version


Install the Let's Encrypt Certificate Using Certbot in Ubuntu 20.04 - How to do it on Nginx web server ?

This article covers how to install Certbot, to get let's encrypt certificates. SSL/TLS encryption is an integral part of the network infrastructure. Any web and mail server allows you to enable data encryption.

To begin, you must have a domain name. Its DNS A-record must contain the public address of your server. If the firewall is enabled, open access for HTTP and HTTPS traffic:

$ sudo ufw allow 80
$ sudo ufw allow 443


To Install the "Let's Encrypt" package on Ubuntu:

1. Run the command below to install Let's Encrypt.

$ sudo apt install letsencrypt

2. Check the "certbot.timer" utility for automatic certificate renewal.

$ sudo systemctl status certbot.timer


Top 5 Container Management Software

This article covers the best performing container management software tools that have served their purpose across all the platforms, i.e., Windows, macOS, and Linux, and have most seamlessly handled and deployed applications ranging from small-scale to large or enterprise-scale. Basically, Kubernetes, Docker, AWS ECS, Apache MESOS, and OpenShift are capable to autonomously design, deploy and manage any software application in any environment.


Install PHP on Ubuntu 20.04 - Running Apache Web Server

This article covers the PHP installation on Ubuntu 20.04 system.  Basically, popular Content Management platforms such as WordPress, Drupal, and Magento are based on PHP.


To Install PHP on Ubuntu 20.04:

1. Update your server.

$ apt-get update && apt-get upgrade

2. Install PHP on Ubuntu 20.04, just run the following command.

$ apt-get install php

3. To verify if PHP is installed, run the following command.

php -v


To Install PHP 7.4 modules (extensions):

Run the command below.

apt-get install php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-mbstring php-xml libapache2-mod-php

To check all the PHP modules available in Ubuntu, run:

$ apt-cache search --names-only ^php


How to install PHP 8.0 on Ubuntu 20.04 or 18.04 ?

1. First, update your Ubuntu server:

$ apt-get update && apt-get upgrade

2. Add the PHP repository (by Ondřej Surý):

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

3. And finally, update your package list:

$ apt-get update

4. Install PHP 8.0 with the following command:

$ apt-get install php8.0

5. To check if PHP 8.0 is installed on your server, run the following command:

$ php -v

6. Install PHP 8.0 modules (extensions)

You may need additional packages and modules depending on your applications. The most commonly used modules can be installed with the following command:

$ apt-get install libapache2-mod-php8.0 php8.0-fpm libapache2-mod-fcgid php8.0-curl php8.0-dev php8.0-gd php8.0-mbstring php8.0-zip php8.0-mysql php8.0-xml


How to change the PHP version you're using ?

If you have multiple PHP versions installed on your Ubuntu server, you can change what version is the default one.

1. To set PHP 7.4 as the default, run:

$ update-alternatives --set php /usr/bin/php7.4

2. To set PHP 8.0 as the default, run:

$ update-alternatives --set php /usr/bin/php8.0

3. You can verify what version of PHP you’re using with the following command:

$ php -v


Check Uptime on Ubuntu Linux Server - How to do it ?

This article covers how to easily print out the uptime on any Linux distribution such as Debian and Ubuntu. You will learn how to easily perform an audit of your system's uptime. It's an important command for system administrators to know how long the system has been running. Uptime tool helps troubleshooting issues related to power and scheduling.


On any UNIX-like system, the uptime command will come pre-installed. That applies to Ubuntu as well. Verify the existence of the tool by running these commands:

$  which uptime
$ uptime --version


To check the system uptime, run the following command:

$ uptime


Install Virt-Viewer on Linux Mint 20 - Step by Step Process ?

This article covers how to install Virt-Viewer on a Linux Mint 20 system. virt-viewer is a minimal tool for displaying the graphical console of a virtual machine. The console is accessed using the VNC or SPICE protocol. The viewer can connect to remote hosts to lookup the console information and then also connect to the remote console using the same network transport.


Functions of Virt Viewer: 

  • Connect to KVM virtual machines remotely via the SPICE remote desktop protocol.
  • Automatically adjust display resolution of the KVM virtual machines.
  • Use multiple monitors for the KVM virtual machines.
  • Passthrough USB devices from your computer to the KVM virtual machines.
  • Share folders from your computer to the KVM virtual machines.


To install Virt Viewer on Linux:

1. First, update the APT package repository cache with the following command:

$ sudo apt update

2. To install Virt Viewer on Ubuntu 20.04 LTS, run the following command:

$ sudo apt install virt-viewer --no-install-recommends --no-install-suggests

Then, confirm the installation, press Y and then press <Enter>.