×

Install LEMP Stack on Ubuntu 18.04 - Step by Step Process ?

This article covers how to Install a LEMP Stack on Ubuntu 20.04 LTS. LEMP stack is a group of open-source software that is typically installed together to enable a server to host dynamic websites and web apps. LEMP stands for Linux OS, with the Nginx (pronounced like "Engine-X") web server, Data store in a MySQL database, and dynamic content is processed by PHP.


To install Nginx Web Server:

1.  Run the commands below to install Nginx.

$ sudo apt update
$ sudo apt install nginx

2. Allow traffic on port 80.

$ sudo ufw allow 'Nginx HTTP'

You can verify the change by running:

$ sudo ufw status


Install LAMP Stack on Ubuntu 18.04 - Step by Step Process ?

This article covers step by step process to install a LAMP stack on an Ubuntu 18.04 server. LAMP stack is a group of open-source software that is typically installed together to host dynamic websites. LAMP stands for Linux OS, with Apache web server, Data store in a MySQL database, and dynamic content is processed by PHP.


To Install Apache and Update the Firewall.

1. Install Apache using Ubuntu’s package manager, apt:

$ sudo apt update
$ sudo apt install apache2

2. Allow incoming HTTP and HTTPS traffic for this profile:

$ sudo ufw allow in "Apache Full"


Configure Static IP Addresses on Ubuntu 18.04 Server - Step by Step Process ?

This article covers method to set up a static IP address on Ubuntu 20.04. Basically, in most network configurations, the IP address is assigned dynamically by the router DHCP server. 

The recommended way to assign a static IP address to a device on your LAN is to configure a Static DHCP on your router. Static DHCP or DHCP reservation is a feature found on most routers which makes the DHCP server to automatically assign the same IP address to a specific network device, each time the device requests an address from the DHCP server. This works by assigning a static IP to the device's unique MAC address.


To Get the name of network interface and the default gateway in Linux:

You can either use ip command or the network manager CLI like this:

$ nmcli d


Install MySQL on Ubuntu 18.04 - Step by Step Process ?

This article covers how to install MySQL version 8.0 on an Ubuntu 20.04 server. By completing it, you will have a working relational database that you can use to build your next website or application.

MySQL is an open-source database management system, commonly installed as part of the popular LAMP (Linux, Apache, MySQL, PHP/Python/Perl) stack. It implements the relational model and uses Structured Query Language (better known as SQL) to manage its data.


To install MySQL using the APT package repository:

1. Update the package index on your server if you've not done so recently:

$ sudo apt update

2. Then install the mysql-server package:

$ sudo apt install mysql-server

This will install MySQL, but will not prompt you to set a password or make any other configuration changes. 

Because this leaves your installation of MySQL insecure, we will address this next.


Download Ubuntu 18.04 LTS ISO File – Desktop & Server

This article covers a review about Ubuntu 18.04 LTS (Bionic Beaver). You can find the Ubuntu 18.04 release notes on its official website.


Ubuntu 18.04.4 (Bionic Beaver) was released on February 12, 2020, the long-term support (LTS) release of the Ubuntu, this was the 4rd point release of the 18.04 LTS and it was available for desktop / laptop computers and servers. Ubuntu 18.04.4 desktop didn't support 32-bit CPU architecture, and is only available to install 64-bit (x86-64) versions. Compared to previous releases, this Ubuntu version includes security updates and fixed bugs.


Add Swap Space on Ubuntu 20.04 - Step by Step Process ?

This article covers how we can add and maintain swap space in the ubuntu system. Swap space can take the form of either a dedicated swap partition or a swap file. Typically, when running Ubuntu on a virtual machine, a swap partition is not present, and the only option is to create a swap file.


To Adjust the Swappiness Value:

Swappiness is a Linux kernel property that defines how often the system will use the swap space. It can have a value between 0 and 100. A low value will make the kernel to try to avoid swapping whenever possible, while a higher value will make the kernel to use the swap space more aggressively.

On Ubuntu, the default swappiness value is set to 60. You can check the current value by typing the following command:

$ cat /proc/sys/vm/swappiness


To Remove a Swap File:

1. First, deactivate the swap space:

$ sudo swapoff -v /swapfile

2. Next, remove the swap file entry /swapfile swap swap defaults 0 0 from the /etc/fstab file.

3. Finally, remove the actual swapfile file using the rm command:

$ sudo rm /swapfile


Configure Network in Linux Using Netplan and NMTUI - Step by Step Process ?

This article covers how to set up your network interface using Netplan and NMTUI. Setting up the network interfaces is one of the most basic step that every system administrator and server engineers have to do to make it accessible over the network.

Netplan is based on YAML based configuration system that makes configuration process very simple. Netplan has replaced the old configuration file /etc/network/interfaces that we previously used for configuring network interfaces in Ubuntu.


To Restart the network service

1. Once all the configurations are successfully applied, restart the Network-Manager service by running the following command:

$ sudo systemctl restart network-manager

2. If you are using a Ubuntu Server, instead use the following command:

$sudo systemctl restart system-networkd


To Verify IP address

Now to verify if the new configurations are successfully applied, run the following command to verify the IP address:

$ ip a


The Netplan default configuration file is under the directory /etc/netplan

You can find that using the following command:

$ ls /etc/netplan/

To view the content of Netplan network configuration file, run the following command:

$ cat /etc/netplan/*.yaml


Display System and Hardware Details in Ubuntu 20.04 - Step by Step Process ?

This article covers how to check the system or hardware details of your Ubuntu 20.04 system.

If you want to check all the above details for Debian 10, click here. While to check system or hardware details for CentOS, click here


For the command line tool, inxi is available to check:

i. Audio/sound card(s), driver, sound server.

ii. System battery info

iii. CPU output

iv. Hard Disk info

v. Graphics card, driver, display server, resolution, renderer, OpenGL version.

vi. vii. General info, including processes, uptime, memory, IRC client or shell type, inxi version.

vii. Memory (RAM) data (Require root)

viii. Network card, driver.

ix. system info, partition info, sensors output, USB data, and more.


To install inxi in Ubuntu, simply run command:

$ sudo apt-get install inxi

Then run man inxi to get a list of command options, or run inxi -F to get a brief output containing system or hardware details.


Install Visual Studio Code on Ubuntu 20.04 - Step by Step Process ?

This article covers how to easily install Visual Studio code on your Ubuntu 20.04 system. Visual Studio Code is an open-source cross-platform code editor developed by Microsoft.

It has a built-in debugging support, embedded Git control, syntax highlighting, code completion, integrated terminal, code refactoring and snippets.


To Install Visual Studio Code on Ubuntu:

1. First, update the packages index and install the dependencies by typing:

$ sudo apt update
$ sudo apt install software-properties-common apt-transport-https wget

2. Next, import the Microsoft GPG key using the following wget command :

$ wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -

And enable the Visual Studio Code repository by typing:

$ sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"

3. Once the apt repository is enabled , install the latest version of Visual Studio Code with:

$ sudo apt update
$ sudo apt install code


Ubuntu 18.04 LTS (Bionic Beaver) Release

This article covers an overview about Ubuntu 18.04 LTS (Bionic Beaver). Also we covered in details the main features of this Ubuntu release.

The Ubuntu operating system's latest Long Term Support (LTS) release, Ubuntu 18.04 (Bionic Beaver), was released on April 26, 2018. 


To upgrade an Ubuntu system of version 16.04 or later to Ubuntu 18.04:

1. Back Up Your System.

2. Update Currently Installed Packages

Begin by updating the package list:

$ sudo apt-get update

3. Next, upgrade installed packages to their latest available versions:

$ sudo apt-get upgrade

4. Now, use the dist-upgrade command with apt-get, which will perform any additional upgrades that involve changing dependencies, adding or removing new packages as necessary.

$ sudo apt-get dist-upgrade


Upgrade Ubuntu 16.04 to Ubuntu 18.04 LTS - Step by Step Process ?

This article covers method to Upgrade Ubuntu 16.04 to Ubuntu 18.04. If you are still using Ubuntu version 16.04, you may want to consider updating to the latest Long Term Support release, version 18.04.


What does LTS or Long Term Support Release Mean?

A Long Term Support release or LTS release, means that Ubuntu will support the version for five years. 

If you are running a production environment, you will likely want to use a Long-Term Support version of your preferred server operating system.


What is New in Ubuntu Version 18.04:

1. Depending on when you installed Ubuntu version 16.04, the Linux kernel used would have been anywhere from version 4.4 to 4.10. Version 18.04 uses Linux kernel 4.15 at launch.

2. Linux kernel 4.5 now includes new features like CPU controller for the cgroup v2 interface, AMD secure memory encryption support, the latest MD driver with software RAID enhancements, and improved power management for systems with SATA Link Power Management.

3. The new kernel also includes some Ubuntu-specific updates, Linux security module stacking support, and the signing of POWER host and NV kernels is now supported.

18.04 does not install Python 2 default, and it updated Python version 3 to version 3.6.

4. Apache updates to version 2.4.29 and supports HTTP/2.

5. Nginx updates to version 1.14.0.

6. PHP updates from version 7.1 to 7.2.

7. The ifupdown network manager is removed on new installs and is deprecated. netplan.io is the new network configuration manager.

8. OpenSSH now refuses to use RSA keys smaller than 1024 bits. This command can report the length of a key.

ssh-keygen -l -f /path/to/key.pub

32-bit PowerPC support has been dropped.

9. The Subuquity server installer brings live sessions and fast installs of Ubuntu Desktop to server users.

10. Ubuntu 18.04 ships with LXD system container manager version 3.0. Version 3.0 of LXD allows for clustering of LXD servers, adds support of NVIDIA run-time pass-through, and lxd-p2c is a new tool that turns existing systems into LXD containers.


To Upgrade Ubuntu from 16.04 to 18.04:

1.  Create a backup of your environment.

2. Run the command below to update and upgrade the packages.

$ sudo apt-get update && sudo apt-get upgrade

3. To add the Update Manager to your server add command below to your terminal.

$ sudo apt install update-manager-core

4. Now that you have created a backup installed package updates and have the upgrade manager you are ready to upgrade Ubuntu.

$ sudo do-release-upgrade

5. To check what version of Ubuntu is currently installed use the command below.

$ lsb_release -a


Use Let's Encrypt To Secure Apache2 On Ubuntu - How to do it ?

This article covers method to Secure Apache with Let's Encrypt on Ubuntu 20.04. Let's Encrypt is a certificate authority created by the Internet Security Research Group (ISRG).

It provides free SSL certificates via a fully automated process designed to eliminate manual certificate creation, validation, installation, and renewal.

Certificates issued by Let's Encrypt are valid for 90 days from the issue date and trusted by all major browsers today.


To install Certbot on Ubuntu:

Certbot is a command-line tool that automates the tasks for obtaining and renewing Let’s Encrypt SSL certificates. 

The certbot package is included in the default Ubuntu repositories. 

Update the packages list and install certbot using the following commands:

$ sudo apt update
$ sudo apt install certbot

Before enabling the configuration files, make sure both mod_ssl and mod_headers are enabled by issuing:

$ sudo a2enmod ssl
$ sudo a2enmod headers

Next, enable the SSL configuration files by running the following commands:

$ sudo a2enconf letsencrypt
$ sudo a2enconf ssl-params

Enable the HTTP/2 module, which will make your sites faster and more robust:

$ sudo a2enmod http2

Reload the Apache configuration for changes to take effect:

$ sudo systemctl reload apache2


Install WordPress On Ubuntu 18.04 | 16.04 Servers - Step by Step Process ?

This article covers methods to install WordPress on Ubuntu Linux System. WordPress is undoubtedly one of the most popular Content Management Systems (CMS) available in the market. You can easily install WordPress on Ubuntu 18.04 because it is configured to work with Apache or NGINIX, MySql, PHP in a LAMP or a LEMP stack. 

It also features an extensive plugin framework, and theme system that allows site owners to use the simple and powerful publishing tools.


To Configure Maximum File Size Upload Setting to Allow Larger Files on Ubuntu:

By default, PHP restricts web uploads to under two megabytes.

To allow larger file uploads through the web interface, configure the upload_max_filesize setting in php.ini:

Apache: /etc/php/7.2/apache2/php.ini.
NGINX: /etc/php/7.2/fpm/php.ini.

; Maximum allowed size for uploaded files.

; http://php.net/upload-max-filesize

upload_max_filesize = 2M


Install NetBeans on Ubuntu 20.04 - Step by Step Process ?

This article covers the different methods for the installation of NetBeans on Ubuntu OS.

NetBeans is an open source integrated development environment that comes with good cross-platform support. 

You can configure this tool to support a wide array of development objectives. 

Practically, you can develop Web, Desktop and Mobile Applications without leaving this platform.

Besides this, the user can add a wide array of known languages such as PHP, C, C++, HTML, Ajax, JavaScript, JSP, Ruby on Rails  and so on.


To install Netbeans IDE on any Linux distribution using Snap.

Snap is a universal package manager and if you have enabled Snap on your distribution, you can install it using the following command:

$ sudo snap install netbeans --classic


Install phpMyAdmin with Apache on Ubuntu 20.04 - Step by Step Process ?

This article covers how you can  seamlessly install phpMyAdmin on your Ubuntu Linux system.

Working with a database can sometimes be intimidating, but PhpMyAdmin can simplify tasks by providing a control panel to view or edit your MySQL or MariaDB database.

To Install phpMyAdmin on Ubuntu:
1. Update the apt package tool to ensure we are working with the latest and greatest.

$ apt update && upgrade

2. Install PhpMyAdmin and PHP extensions for managing non-ASCII string and necessary tools.

$ apt install phpmyadmin php-mbstring php-gettext

During this installation you’ll be asked for the web server selection, we will select Apache2 and select ENTER.
Here, you have the option for automatic setup or to create the database manually.
For us, we will do the automatic installation by pressing ENTER for yes.
3. At this setup, you'll be asked to set the PhpMyAdmin password.
Specifically for the PhpMyAdmin user, phpmyadmin,  you'll want to save this in a secure spot for later retrieval.
4. Enable PHP extension.

phpenmod mbstring

5. Restart the Apache service to recognize the changes made to the system.

# systemctl restart apache2


Install Jenkins on Ubuntu 20.04 - Step by Step Process ?

This article covers how you can install Jenkins on Ubuntu OS. For further information about Jenkins, visit its official documentation.

Jenkins is an open-source automation server that can be used to easily set up continuous integration and continuous delivery (CI/CD) pipelines.

Continuous integration (CI) is a DevOps practice in which team members regularly commit their code changes to the version control repository, after which automated builds and tests are run. 

Continuous delivery (CD) is a series of practices where code changes are automatically built, tested, and deployed to production.


To install Jenkins on Ubuntu 20.04 as a standalone service:

1. Run the following commands as root or user with sudo privileges or root to install OpenJDK 11:

$ sudo apt update
$ sudo apt install openjdk-11-jdk

2. Once the installation is complete, verify it by checking the Java version:

# java -version

3. Import the GPG keys of the Jenkins repository using the following wget command:

# wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -

4. Next, add the Jenkins repository to the system with:

# sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'

5. Once the Jenkins repository is enabled, update the apt package list and install the latest version of Jenkins by typing:

# sudo apt update
# sudo apt install jenkins

6. Jenkins service will automatically start after the installation process is complete. You can verify it by printing the service status:

# systemctl status jenkins


Install Visual Studio Code on CentOS 8 - Step by Step Process ?

This article covers how to install the VS code package on CentOS 8 using the command line application. Visual Studio Code is a free and open-source, cross-platform IDE or code editor that enables developers to develop applications and write code using a myriad of programming languages such as C, C++, Python, Go and Java to mention a few.


To Install Visual Studio Code on Debian, Ubuntu and Linux Mint:

1. Update your system by running the command.

$ sudo apt update

2. Once updated, proceed and install dependencies required by executing.

$ sudo apt install software-properties-common apt-transport-https

3. Next, using the wget command, download the repository and import Microsoft’s GPG key as shown:

$ wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
$ sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
$ sudo sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'

4. Once you’ve enabled the repository, update the system and install Visual Studio Code by running the command:

$ sudo apt update
$ sudo apt install code


Access Google Drive on Ubuntu 20.04 LTS - Step by Step Process ?

This article covers how you can access Google drive on Ubuntu. Now you can easily access your Google Drive files directly from the File Manager.

The process involves adding your online Google account to your Gnome Online Accounts list. This configuration then lets you mount your Google Drive account to your Nautilus File Manager. 

After mounting, you can access your online files, edit them, and add new files directly from your Ubuntu to your Google Drive.


To Install and Open Gnome Online Accounts:

1. Open the Ubuntu command line, the Terminal, either through the system Dash or the Ctrl+Alt+T shortcut. 

2. Once the Terminal application opens, enter the following command as sudo:

$ sudo apt install gnome-online-accounts

Please remember that only an authorized user can add, remove and configure software on Ubuntu.

3.  Once the utility is installed on your system, you can open it through one of the following methods:

By entering the following command in your Terminal:
$ gnome-control-center online-accounts


Install Python 3.9 on Ubuntu 20.04 - Step by Step Process ?

This article covers how to install and compile Python3.9 using different methods, using PPA repo, compiling it from the source code, and installing it using the Linuxbrew tool.

We can now start using Python 3.9 for our projects.

Python is a high-level programming language, mostly used to write scripting and automation. It is a very popular language known for its simplicity and easy syntax. 

Python one of the best language for for artificial intelligence (AI).


To Install Python 3.9 on Ubuntu 20.04 using APT:

1. Update package list, type:

$ sudo apt update

2. Install software-properties-common package to easily manage distribution and independent software vendor software sources:

$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:deadsnakes/ppa

3. Now install python 3.9 using apt command:

$ sudo apt-get install python3.9

4. The following command can help to identify the proper install location of Python:

$ which python3

The execution of the above command produces the following output on console:

/usr/bin/python3


Install IntelliJ IDEA on Ubuntu 20.04 LTS - Step by Step Process ?

This article covers the different methods to install IntelliJ IDEA on Ubuntu 20.04 Linux system. Basically, In developing Java applications, IntelliJ IDEA is arguably one of the most ergonomic and formidable IDEs there is. 

It ships with all the right tools and a set of plugins to make coding a seamless exercise.


To Install IntelliJ IDEA from command line on Ubuntu:

1. Start by opening a terminal window and execution of the bellow apt command. Select your preferred version to install:

$ sudo snap install intellij-idea-community --classic

OR

$ sudo snap install intellij-idea-ultimate --classic

OR

$ sudo snap install intellij-idea-educational --classic

2. You can start the IntelliJ IDEA using the below command:

$ intellij-idea-community

OR

$ intellij-idea-ultimate

OR

$ intellij-idea-educational


Configure XRDP to Securely Connect Remote Linux Servers - Step by step process ?

This article covers how to install and use XRDP to securely connect to remote servers. Xrdp is an open-source implementation of the Microsoft Remote Desktop Protocol (RDP) that allows you to control a remote system graphically. 

With RDP, you can log in to the remote machine and create a real desktop session the same as if you had logged in to a local machine.


Installing Xrdp on Debian:

Xrdp package is available in the standard Debian repositories. To install it, run:

$ sudo apt install xrdp 

The service will automatically start once the installation process is complete. You can verify that the Xrdp service is running by typing:

$ sudo systemctl status xrdp


How to Configure Xrdp on Linux?

The Xrdp configuration files are stored in the /etc/xrdp directory.

Whenever you make any changes to the configuration file you need to restart the Xrdp service:

$ sudo systemctl restart xrdp


Install Nginx on Ubuntu 20.04 - Step by Step process to implement it ?

This article covers how to install Nginx on the Ubuntu system. Also, you will learn how to configure the firewall and manage Nginx services. 

Finally, you will see how to uninstall Nginx in case you no longer need it in your system.

Nginx is a free, open-source Linux application for web servers. It works as a reverse proxy server by directing web traffic to specific servers.

Also, Nginx is used for security and load-balancing, but can also function independently as a web server.


To Install Nginx From Ubuntu Repositories:

1. Update Software Repositories

It is important to refresh the repository lists before installing new software. This helps make sure that the latest updates and patches are installed.

Open a terminal window and enter the following:

$ sudo apt-get update

2. Nginx is included in the Ubuntu 20.04 default repositories. Install it by entering the following command:

$ sudo apt-get install nginx


How to manage Nginx on Ubuntu ?

The behavior of Nginx can be adjusted. Use this to start or stop Nginx, or to enable or disable Nginx at boot.

Start by checking the status of the Nginx service:

$ sudo systemctl status nginx

If the status displays active (running), Nginx has already been started. 

Press CTRL+z to exit the status display.

If Nginx is not running, use the following command to launch the Nginx service:

$ sudo systemctl start nginx

To set Nginx to load when the system starts, enter the following:

$ sudo systemctl enable nginx

To stop the Nginx service, enter the following:

$ sudo systemctl stop nginx

To prevent Nginx from loading when the system boots:

$ sudo systemctl disable nginx

To reload the Nginx service (used to apply configuration changes):

$ sudo systemctl reload nginx

For a hard restart of Nginx:

$ sudo systemctl restart nginx

To Test the Configuration

$ sudo nginx –t

The system should report that the configuration file syntax is OK, and that the configuration file test is successful.


Install Skype on Ubuntu 20.04 - Step by Step process to perform it ?

This article covers the different methods to install Skype on Ubuntu 20.04 LTS including both the GUI and the command line. 


To install the Skype snap, open your terminal (Ctrl+Alt+T) and run the following command:

$ sudo snap install skype --classic

That's it. You have installed Skype on your Ubuntu machine, and you can start using it.


How to install Skype with apt on Ubuntu ?

Skype is available from the official Microsoft Apt repositories. To install it, follow the steps below:

1. Open your terminal and download the latest Skype .deb package using the following wget command:

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

2. Once the download is complete, install Skype by running the following command as a user with sudo privileges :

$ sudo apt install ./skypeforlinux-64.deb

You will be prompted to enter your password.

3. When a new version is released, you can update the Skype package through your desktop standard Software Update tool or by running the following commands in your terminal:

$ sudo apt update

$ sudo apt upgrade


Install Mozilla Firefox on Ubuntu 20.04 - How to do it ?

This article covers how to install the Mozilla Firefox browser on the Ubuntu system. Mozilla Firefox is the official Internet browser for Ubuntu, therefore, most Ubuntu distros have it installed by default.

If your system lacks this browser due to any reason or if you have accidentally deleted it, we will tell you how to install it on your Ubuntu.


To update Firefox on Linux:

1. Click the menu button , click. Help and select About Firefox. On the menu bar click the Firefox menu and select About Firefox.

2. The About Mozilla Firefox Firefox window opens. Firefox will check for updates and download them automatically.

3. When the download is complete, click Restart to update Firefox.


To Delete Firefox and all it's data from Ubuntu:

1. run sudo apt-get purge firefox.

2. Delete /etc/firefox/ , this is where your preferences and user-profiles are stored.

3. Delete /usr/lib/firefox/ should it still be there.

4. Delete /usr/lib/firefox-addons/ should it still be there.


Process to configure an NTP server and client on Ubuntu 20.04 LTS ?

This article will guide you on how to configure the NTP server on the #Ubuntu machine and then sync a clock of NTP client machine. Now you can easily set up NTP server and connect multiple client machines with it for time synchronization.

The Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks.

NTP is intended to synchronize all participating computers to within a few milliseconds of Coordinated Universal Time (UTC).


How do I start #NTP on Linux?

In order to add command line options to the ntpd service (/etc/init. d/ntpd), one has to edit /etc/sysconfig/ntpd file and add the desired option to the OPTIONS variable, and restart the service via 'service ntpd restart'.


What port does NTP use?

NTP time servers work within the TCP/IP suite and rely on User Datagram Protocol (UDP) port 123. NTP servers are normally dedicated NTP devices that use a single time reference to which they can synchronize a network. 

This time reference is most often a Coordinated Universal Time (UTC) source.


To Sync NTP client with server via command line:

1. Edit the /etc/ntp.

2. Search for the lines beginning server .

3. Replace the server entries with the IP address or hostname of the NTP server or servers with which you want to synchronize.

4. Save the file.

5. Configure the NTP client service to start at run level 3 when the appliance boots.


Assign Multiple IP Addresses to Single NIC in Ubuntu 20.04 LTS - How to do it ?

This article will guide you on how to assign multiple IP addresses to a single NIC in Ubuntu OS. Now you can allocate multiple IP addresses to a single NIC.

To change your IP address on #Linux, use the "ifconfig" command followed by the name of your network interface and the new IP #address to be changed on your computer. 

To assign the subnet mask, you can either add a "netmask" clause followed by the subnet mask or use the CIDR notation directly.

The ifconfig command can be used from the #command line either to assign an address to a #network interface or to configure or display the current network interface configuration information. 

The ifconfig command must be used at system startup to define the network address of each interface present on a machine.


To determine my IP address in Linux :

1. ifconfig -a.

2. ip addr (ip a).

3. hostname -I | awk '{print $1}'.

4. ip route get 1.2.

5. nmcli -p device show.


To add secondary IP address permanently on Ubuntu system, just edit /etc/network/interfaces file and add the requires IP details. 

Verify the newly added IP address. # ifconfig eth0


Install MongoDB ( NoSQL ) on Linux (Ubuntu 20.04) - Step by step process ?

This article will guide you on how to add MongoDB’s official #repository and install the latest stable release of MongoDB #NoSQL in the #Ubuntu 20.04 LTS system. 

Also, you will learn how to completely uninstall from the system in case you no longer need it.

MongoDB stores data in db folder within data folder. But, since this data folder is not created automatically, you have to create it manually. 

Remember that data directory should be created in the root (/).

To get stats about #MongoDB server, type the command db. stats() in MongoDB client. 

This will show the database name, number of collection and documents in the database.

In MongoDB, data is stored as documents. 

These documents are stored in MongoDB in JSON (JavaScript Object Notation) format. 

#JSON documents support embedded fields, so related data and lists of data can be stored with the document instead of an external table.


Step by step process to install and configure Odoo ERP on Ubuntu 20.04 LTS ?

This article will guide you on how to install and configure the Odoo14 on #Ubuntu 20.04 system. Also you will learn how to install required #PostgreSQL and wkhtmltopdf packages on your system. 

1. Odoo Community Edition is the free basic version of Odoo supported by open source software. 

2. #Odoo #CRM (Customer Relationship Management) system is a powerful browser-based sales software designed to increase organisational efficiency. Odoo, contains all of the applications that your sales, marketing, accounts department and management teams need in the one place.

3. Once all dependencies are set up, Odoo can be launched by running odoo-bin , the command-line interface of the server. It is located at the root of the Odoo Community directory.

4. Once Odoo installed, you can verify the service is up and running and is enabled to automatically start at system #boot. 

5. By default, Odoo listens on port 8069 and you can verify it using the netstat or ss tools. 

This is another way to confirm that Odoo is up and running.


Step by step process to install and configure HAproxy on Ubuntu 20.04 LTS ?

This article will guide you on how to #install and configure #HAproxy load balancer on the #Linux system. 

You will learn the basic setup and configuration of HAproxy as a load balancer for #Apache web servers. Also, we looked at some commands for managing the HAproxy server. In the end, we tested the load balancing through the browser and the #curl command. 

HAProxy is free, open source #software that provides a high availability #load #balancer and proxy server for #TCP and HTTP-based applications that spreads requests across multiple servers.

To Deploy on Linux :

1. Download the source code of HAProxy.

2. Unzip the file into the desired location tar xvzf haproxy-1.8-dev1.

3. Compile the source code.

4. Create config file haproxy.cfg with the configuration details.

5. Start the haproxy with ./haproxy -f haproxy.

6. Access the status page on http:localhost:9999/stats.


Methods to check the status of laptop battery on Ubuntu 20.04 LTS ?

This article will guide you on different methods to view detailed information on your battery using both the #command line and UI.

To check your #battery health you'll want to open the app, click on the relevant battery item in the sidebar, and double-check that you're faced with the Details tab.

1. Use upower command to check battery status from command line:

Type the following command:

$ upower -i /org/freedesktop/UPower/devices/battery_BAT0

2. Displaying #Linux Laptop Battery Status Using the apci #terminal command

The acpi command may not be installed by default so use apt-get command or yum command to install the same:

$ sudo yum install acpitool

3. Use /proc/acpi/ directory to get laptop battery info (deprecated method)

You can browse the same data by visiting /proc/acpi/ directory:

$ cd /proc/acpi/

$ ls -l


Steps to install XAMPP Server on Linux Mint 20 ?

This article will guide you on steps to install #XAMPP on Linux Mint 20. You will also learn the method of uninstalling XAMPP web server whenever you feel like it.

The #htdocs folder can be found in /opt/lampp/ . You can navigate to your root folder from the file manager (nautilus by default), by clicking on Other locations from the sidebar, then #Computer . From there you can find the opt folder that contains the lampp folder.

To install xampp in MX #Linux:

1. Click XAMPP for Linux. It's in the middle of the page.

2. Allow the download to complete.

3. Open #Terminal.

4. Change over to the "Downloads" directory.

5. Make the downloaded file executable.

6. Enter the installation #command.

7. Enter your password when prompted.

8. Follow the installation prompts.


Steps to install Google Chrome in Ubuntu 20.04 LTS ?

This article will guide you on the different methods to #install #Google #Chrome on #Ubuntu 20.04 system using two different ways using the command line and graphical methods. We have executed different commands on the terminal for the installation.

To Install Google Chrome on Ubuntu Graphically:

1. Click on Download Chrome.

2. Download the DEB file.

3. Save the DEB file on your #computer.

4. Double click on the downloaded DEB file.

5. Click Install button.

6. Right click on the deb file to select and open with Software Install.

7. Google Chrome installation finished.


How to use SSH to connect to a remote server in Ubuntu 20.04 LTS ?

This article will guide you on how to #SSH remote Linux servers using #OpenSSH utility. We have also discussed some basic configurations that you may find useful when connecting via SSH. Now you can easily manage remote #Linux servers for administration and troubleshooting.

To Enable #root login over SSH:

1. As root, edit the sshd_config file in /etc/ssh/sshd_config : 

nano /etc/ssh/sshd_config.

2. Add a line in the Authentication section of the file that says PermitRootLogin yes.

3. Save the updated /etc/ssh/sshd_config file.

4. Restart the SSH server: service sshd restart.


Steps to start, stop or restart services in Ubuntu 20.04 LTS ?

This article will guide you steps on how you stop, start, or restart a #service in #Ubuntu 20.04. service operates on the files in /etc/init. d and was used in conjunction with the old init system. #systemctl operates on the files in /lib/systemd . If there is a file for your service in /lib/systemd it will use that first and if not it will fall back to the file in /etc/init. To list all loaded services on your system (whether active; running, exited or failed, use the list-units subcommand and --type switch with a value of service. To Check running process in #Linux: 1. Open the #terminal #window on Linux. 2. For remote Linux server use the ssh command for log in purpose. 3. Type the ps aux command to see all running process in Linux. 4. Alternatively, you can issue the top command or htop command to view running process in Linux.


How to install Notepad++ on Ubuntu 20.04 LTS ?

This article will guide you on steps to install #Notepad++ on Ubuntu 20.04 #Linux operating system using snap package manager. Notepad++ is a #GUI based user friendly text editor that can be used on #Linux as well as on Windows platform. To #Install Notepad++ on Ubuntu 20.04 : 1. Install Notepad++ on Ubuntu 20.04. Notepad++ runs over the WINE platform, which provides compatibility for the Windows application on Unix-like operating systems. 2. Open Notepad++. 3. Uninstall Notepad++.


How to change MTU size in Linux ?

This article will guide you on how to change the #MTU size of a #network #interface either temporarily or permanently in your #Linux system. To change the MTU size: 1. Launch a web browser from a computer or mobile device that is connected to your router's network. 2. The user name is admin. The default password is password. 3. Select ADVANCED > Setup > WAN Setup. 4. In the MTU Size field, enter a value from 64 to 1500. 5. Click the Apply button. Your settings are saved.


Different methods to create and run a Shell script on Ubuntu 20.04 LTS ?

This article will guide you on different methods of creating and running a #shell #script in #Ubuntu 20.04. Shell Scripting is an open-source #computer program designed to be run by the #Unix / #Linux shell. Shell Scripting is a program to write a series of commands for the shell to execute. To write and execute a script: 1. Open the #terminal. Go to the directory where you want to create your script. 2. Create a file with . sh extension. 3. Write the script in the file using an editor. 4. Make the script executable with command chmod +x . 5. Run the script using ./.


How to use Linux command to delete the PREROUTING rule in iptables ?

This article will guide you on how to list and remove/delete iptables pretrouting chain nat rules on your #Linux based system. The -D or --delete option delete one or more rules from the selected chain. There are two versions of this #command, the rule can be specified as a number in the chain or a rule to match. One of the ways to delete #iptables #rules is by rule specification. To do so, you can run the iptables command with the -D option followed by the rule specification.