×

Install Apache Maven on Ubuntu 20.04 - Step by Step process ?

This article covers methods to easily install Apache Maven on the Ubuntu system. You will also learn how to uninstall Apache Maven from Ubuntu if you ever need to do so.

Apache Maven is a free and open-source project management tool primarily for Java projects. It is based on POM and also used to build and manage projects written in C#, Ruby, Scala, and others.


To Install Apache Maven on Ubuntu:

1. Apache Maven is based on Java. So Java must be installed in your server. You can install the Java using the following command:

$ apt-get install default-jdk -y

2. By default, Apache Maven is available in the Ubuntu 20.04 default repository. You can install it with the following command:

$ apt-get install maven -y

3. Once the installation is completed, you can verify the Apache Maven version with the following command:

$ mvn -version

Install Dropbox on Ubuntu 20.04 - Step by step process ?

This article covers how to install Dropbox on your Ubuntu 20.04 system. Dropbox online storage provides us support for Ubuntu Linux. 

Dropbox provides us online storage to store or backup our data automatically. We use Dropbox to backup our contents with some security and peace of mind. 

In the event of our PCs crash, Our data will be saved and ready to be restored onto server.


To install Dropbox from Command Line on Ubuntu:

1. Install the wget package using the apt command,

$ sudo apt-get update
$ sudo apt-get install wget

2. Dropbox cli version is available for both 32 and 64 bit editions, we will download Dropbox upon out version.

For 32-bit,

$ cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf -

For 64-bit, 

$ cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -

3. Run the following command to start the Dropbox from .dropbox-dist folder.

$ ~/.dropbox-dist/dropboxd


To manage Dropbox service:

1. Enable dropbox service using command below.

$ sudo systemctl enable dropbox

2. Start dropbox service using command below.

$ sudo systemctl start dropbox

3. Check running of the service using command below.

$ sudo systemctl status dropbox

Install and Use Curl Command on Ubuntu 20.04 - Step by step process to implement it ?

This article covers how to set up curl command on your Ubuntu 20.04 LTS machine. curl command is a tool to download or transfer files/data from or to a server using FTP, HTTP, HTTPS, SCP, SFTP, SMB and other supported protocols on Linux or Unix-like system.


To Install cURL for Ubuntu Linux:

1. Update your Ubuntu box, run: 

$ sudo apt update && sudo apt upgrade

2. Next, install cURL, execute: 

$ sudo apt install curl

3. Verify install of curl on Ubuntu by running: 

$ curl --version

Use SED Command to Find and Replace String in Files - How to perform this task on Ubuntu?

This article covers how to use the Sed command on Ubuntu 20.04. Searching and replacing a string of text in a file with the Sed command isn't complicated as you imagine.

sed is a stream editor. It can perform basic text manipulation on files and input streams such as pipelines. 

With sed, you can search, find and replace, insert, and delete words and lines. 

It supports basic and extended regular expressions that allow you to match complex patterns.


To Find and replace text within a file using sed command:

The procedure to change the text in files under Linux/Unix using sed:

1. Use Stream EDitor (sed) as follows:

$ sed -i 's/old-text/new-text/g' input.txt

2. The s is the substitute command of sed for find and replace

3. It tells sed to find all occurrences of 'old-text' and replace with 'new-text' in a file named input.txt

4. Verify that file has been updated:

more input.txt

Install Cockpit on Ubuntu 20.04 - Step by step process to do this ?

This article covers how to install Cockpit on Ubuntu 20.04 system. Cockpit is a free and open source web console tool for Linux administrators and used for day to day administrative and operations tasks. 


To Install the Cockpit package on Ubuntu 20.04 LTS Server, run the command:

$ sudo apt update
$ sudo apt install cockpit -y

Once cockpit package is installed successfully then start its service using the following systemctl command,

$ sudo systemctl start cockpit

Run the following to verify the status of cockpit service,

$ sudo systemctl status cockpit


Features of Cockpit:

Cockpit allows you to perform:

1. Service Management – Start, stop, restart, reload, disable, enable, mask e.t.c

2. User Account Management – Add users, delete, Lock, assign Administrator role, set password, force password change, Add Public SSH keys e.t.c.

3. Firewall Management

4. Cockpit Container management

5. SELinux Policy management

6. Journal v2

7. iSCSI Initiator configurations

8. SOS-reporting

9. NFS Client setup

10. Configure OpenConnect VPN Server

11. Privileged Actions – Shutdown, Restart system

12. Join Machine to Domain

13. Hardware Device Management

14. System Updates for dnf, yum, apt hosts

15. Manage the Kubernetes Node

Install Docker Compose on Ubuntu 20.04 - Step by step process to perform it ?

This article covers how to install and run Docker Compose on your Ubuntu 20.04 LTS machine. Docker Compose is yet another useful Docker tool. It allows users to launch, execute, communicate, and close containers with a single coordinated command. Essentially, Docker Compose is used for defining and running multi-container Docker applications.


To Install Docker Compose on Ubuntu:

1. Start by updating the default repository to ensure you download the latest Docker Compose:

$ sudo apt update

2. Then, upgrade the system to ensure all local packages and programs are up to date:

$ sudo apt upgrade

3. Then install Docker Compose from the Ubuntu repository by running:

$ sudo apt install docker-compose


To install Install curl on Ubuntu:

To download the binary package using an URL, you need curl. You can check whether you have this command-line utility by typing in the terminal window:

$curl

If the output displays "try 'curl --help' or 'curl --manual' for more information", move on to the next step. 

This message means curl is installed.

However, if the terminal says "command not found", you need to install curl with:

$ sudo apt install curl


To Check Docker Compose Version on Ubuntu:

To verify the installation, check the Docker Compose version by running:

$ docker–compose –version


To uninstall Docker Compose on Ubuntu:

Uninstalling Docker Compose from your Ubuntu system is a simple 3-step process.

1. Delete the Binary

First, delete the binary with the command:

$ sudo rm /usr/local/bin/docker-compose

2. Uninstall the Package

Then, use the apt remove command to uninstall the software:

$ sudo apt remove docker-compose

3. Remove Software Dependencies

Finally, remove the unwanted software dependencies by running:

$ sudo apt autoremove

Setup Teampass Passwords Manager on Ubuntu 20.04 - Do it Now ?

This article covers perform the installation of TeamPass using the LAMP stack on Ubuntu. Now you can easily manage your credentials within your Organization to save credentials and manage access to every individual. 

TeamPass is a Collaborative Passwords Manager used for managing passwords and sharing them among team members.


To Download Teampass on Ubuntu:

1. Start by cloning the Teampass repository to your web server root directory as shown below;

$ git clone https://github.com/nilsteampassnet/TeamPass.git /var/www/html/teampass

2. Set the ownership of the teampass web directory to web server user (www-data)

$ chown -R www-data.www-data /var/www/html/teampass/

3. Next, edit the /etc/php/7.2/apache2/php.ini configuration file and increase the script execution time from 30 to 60 secs.

vim /etc/php/7.2/apache2/php.ini
...
;max_execution_time = 30
max_execution_time = 60
...

4. Restart Apache web server

$ systemctl restart apache2


To Finalize TeamPass installation on Ubuntu:

Final installation of Teampass can be done from the browser. 

Hence, navigate to the browser and enter the Teampass server URL, 

http://Server_IP/teampass

This will redirect you to Teampass welcome page

Install and Configure Apache Kafka on Ubuntu 20.04 - Step by Step process to implement this task ?

This article covers how to install and configure Apache Kafka on your Ubuntu 20.04 LTS machine. Apache Kafka is a distributed events streaming platform which has the ability to handle the high-performance data pipelines. It was originally developed by Linkedin then to be public as an open-source platform and used by many IT companies in the world.


Terms related to Apache Kafka Infrastructure:

1. Topic: A topic is a common name used to store and publish a particular stream of data. For example if you would wish to store all the data about a page being clicked, you can give the Topic a name such as "Added Customer".


2. Partition: Every topic is split up into partitions ("baskets"). When a topic is created, the number of partitions need to be specified but can be increased later as need arises. Each message gets stored into partitions with an incremental id known as its Offset value.


3. Kafka Broker: Every server with Kafka installed in it is known as a broker. It is a container holding several topics having their partitions.


4. Zookeeper: Zookeeper manages Kafka's cluster state and configurations.


Main advantages of using Apache Kafka:

1. Message Broking: In comparison to most messaging systems Kafka has better throughput, built-in partitioning, replication, and fault-tolerance which makes it a good solution for large scale message processing applications


2. Website Activity Tracking


3. Log Aggregation: Kafka abstracts away the details of files and gives a cleaner abstraction of log or event data as a stream of messages.


4. Stream Processing: capturing data in real-time from event sources; storing these event streams durably for later retrieval; and routing the event streams to different destination technologies as needed


5. Event Sourcing: This is a style of application design where state changes are logged as a time-ordered sequence of records.


6. Commit Log: Kafka can serve as a kind of external commit-log for a distributed system. The log helps replicate data between nodes and acts as a re-syncing mechanism for failed nodes to restore their data.


7. Metrics: This involves aggregating statistics from distributed applications to produce centralized feeds of operational data.


To install Apache Kafka on Ubuntu:

1. Update your fresh Ubuntu 20.04 server and get Java installed as illustrated below.

$ sudo apt update && sudo apt upgrade
$ sudo apt install default-jre wget git unzip -y
$ sudo apt install default-jdk -y

2. Fetch Kafka on Ubuntu 20.04.

$ cd ~
$ wget https://downloads.apache.org/kafka/2.6.0/kafka_2.13-2.6.0.tgz
$ sudo mkdir /usr/local/kafka-server && cd /usr/local/kafka-server
$ sudo tar -xvzf ~/kafka_2.13-2.6.0.tgz --strip 1

3. Create Kafka and Zookeeper Systemd Unit Files

i. Let us begin with Zookeeper service.

$ sudo vim /etc/systemd/system/zookeeper.service
[Unit]
Description=Apache Zookeeper Server
Requires=network.target remote-fs.target
After=network.target remote-fs.target
[Service]
Type=simple
ExecStart=/usr/local/kafka-server/bin/zookeeper-server-start.sh /usr/local/kafka-server/config/zookeeper.properties
ExecStop=/usr/local/kafka-server/bin/zookeeper-server-stop.sh
Restart=on-abnormal
[Install]
WantedBy=multi-user.target


ii. Then for Kafka service. Make sure your JAVA_HOME configs are well inputted or Kafka will not start.

$ sudo vim /etc/systemd/system/kafka.service
[Unit]
Description=Apache Kafka Server
Documentation=http://kafka.apache.org/documentation.html
Requires=zookeeper.service
After=zookeeper.service
[Service]
Type=simple
Environment="JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64"
ExecStart=/usr/local/kafka-server/bin/kafka-server-start.sh /usr/local/kafka-server/config/server.properties
ExecStop=/usr/local/kafka-server/bin/kafka-server-stop.sh
Restart=on-abnormal
[Install]
WantedBy=multi-user.target


iii. Reload the systemd daemon to apply changes and then start the services. 

$ sudo systemctl daemon-reload
$ sudo systemctl enable --now zookeeper
$ sudo systemctl enable --now kafka
$ sudo systemctl status kafka zookeeper


4. Install Cluster Manager for Apache Kafka (CMAK) | Kafka Manager.

$ cd ~
$ git clone https://github.com/yahoo/CMAK.git


5. Configure CMAK on Ubuntu.

Add and Remove Users on Ubuntu 20.04 - How to perform this task ?

This article covers how you can add and remove users on Ubuntu and assign them administrator privileges. Based on your convenience, you can either choose to add and remove users either through the command line or GUI. 

Ubuntu, like any other Linux distribution, is a multi-user operating system. Each user can have different permission levels and specific settings for various command-line and GUI applications.

Knowing how to add and remove users is one of the basic skills a Linux user should know.


To add a user in Ubuntu via GUI:

1. Open the Activities overview and start typing Users.

2. Click on Users to open the panel.

3. Press Unlock in the top right corner and type in your password when prompted.

4. Press the + button, below the list of accounts on the left, to add a new user account.


To remove a user from Ubuntu:

1. Open the terminal app.

2. Login to server using the ssh user@server-ip-here command.

3. Run sudo deluser --remove-home userNameHere command to delete a user account on Ubuntu.

4. Verify it by running id command.


To Remove a Linux user:

1. Log in to your server via SSH.

2. Switch to the root user: sudo su -

3. Use the userdel command to remove the old user: userdel user's username.

Optional: You can also delete that user's home directory and mail spool by using the -r flag with the command: userdel -r user's username.


To Add a User to Linux:

1. Log in as root.

2. Use the command useradd "name of the user" (for example, useradd linuxapt)

3. Use su plus the name of the user you just added to log on.

4. "Exit" will log you out.


Linux operations commands:

1. adduser : add a user to the system.

2. userdel : delete a user account and related files.

3. addgroup : add a group to the system.

4. delgroup : remove a group from the system.

5. usermod : modify a user account.

6. chage : change user password expiry information.


How do I assign a user to a group in Linux?

1. To create a new group, enter the following: sudo groupadd new_group.

2. Use the adduser command to add a user to a group: sudo adduser user_name new_group.

3. To delete a group, use the command: sudo groupdel new_group.

4. Linux comes with several different groups by default.

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 KDE Plasma on Ubuntu 20.04 - Step by Step process to implement it ?

This article covers how to install KDE Plasma on Ubuntu 20.04 system. The Plasma desktop option will be available along with the standard Ubuntu system. Also, you will learn the steps to uninstall KDE Plasma from the Ubuntu system. 

KDE is the short form for K Desktop Environment.

Plasma is the desktop environment and KDE is the umbrella project responsible for the development of Plasma desktop and a bunch of other applications.


To Install KDE desktop environment on Ubuntu:

For KDE Full - This is the complete KDE pack. It comes with the complete package and core KDE plasma desktop. 

$ sudo apt install kde-full


For KDE Standard - It includes Plasma desktop with standard set of KDE apps such as Kate (default text editor), Konqueror (default web browser), Kget (Download Manager), KMail (email client), Dolphin (File Manager) and so on. 

$ sudo apt install kde-standard


To install KDE Plasma Desktop:

Run the command - $ sudo apt install kde-plasma-desktop

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

This article covers how to install Flask on Ubuntu 20.04. Flask is a powerful web framework for any developer. Unlike Django , by default Flask doesn’t include ORM, form validation, or any other functionalities provided by third-party libraries. Flask is built with extensions in mind, which are Python packages that add functionality to a Flask application.

Flask packages are included in the official Ubuntu repositories and can be installed using the apt package manager. 

This is the simplest way to install Flask on Ubuntu 20.04, but not as flexible as installing in a virtual environment. 

Also, the version included in the repositories may lag behind the latest version of Flask.


To install Flask on Ubuntu 20.04:

1. Ubuntu 20.04 ships with Python 3.8. You can verify that Python is installed on your system by typing:

$ python3 -V

2. The recommended way to create a virtual environment is by using the venv module, which is provided by the python3-venv package. Run the following command to install the package:

$ sudo apt install python3-venv

3. Create a new directory for the Flask application and switch into it:

$ mkdir flask_app && cd flask_app

4. Run the following command inside the directory to create the virtual environment:

$ python3 -m venv venv

The command will create a directory called venv, which contains a copy of the Python binary, the Pip package manager , the standard Python library, and other supporting files. You can use any name you want for the virtual environment.

5. To start using the virtual environment, you need to activate it with the activate script:

source venv/bin/activate

6. Now that the virtual environment is activated, use the Python package manager pip to install Flask:

$ pip install Flask

7. To verify the installation, run the following command, which prints the Flask version:

$ python -m flask --version

List Installed Packages in Ubuntu 20.04 - How to perform this task ?

This article covers how you can list installed packages on Ubuntu 20.04 LTS system. Also, you can also filter a specific package from the list and count the number of installed packages on your system.


You can list all installed packages with apt command or apt-get command on Ubuntu Linux.

You need to use the apt or apt-get or dpkg command to list all installed packages on an Ubuntu Linux server from the bash shell prompt.


To see what packages are installed on Ubuntu Linux:

1. Open the terminal application or log in to the remote server using ssh (e.g. ssh user@sever-name).

2. Run command apt list --installed to list all installed packages on Ubuntu.

3. To display a list of packages satisfying certain criteria such as show matching apache2 packages, run apt list apache.


To List all installed packages only:

The apt command displays both installed and packages available to install:

$ apt list --installed


To list or find out if a specific package installed or not:

Run package policy as follows:

$ apt list -a pkgNameHere

Schedule a Job in Cron to Run Every Hour in Ubuntu 20.04 - How to implement it ?

This article covers how a cron job can be scheduled to run every hour on Ubuntu System. Most Linux users are familiar with the Crontab job scheduler, which acts as a silent daemon that performs all the tasks assigned to it automatically, without any human intervention. 

This job scheduler makes the life of a Linux user much easier, as the user can hand over all the frequently occurring tasks to the Crontab scheduler so that these tasks can be executed automatically according to a specified schedule.


To Start Crontab Service

Run the following command:

$ sudo systemctl start cron


To Check Status of Crontab Service

Execute the command:

$ sudo systemctl status cron


To Launch Crontab File:

Execute the command:

$ crontab –e


To Run a program or script every 5 or X minutes or hours on Linux:

1. Edit your cronjob file by running crontab -e command.

2. Add the following line for an every-5-minutes interval. */5 * * * * /path/to/script-or-program.

3. Save the file, and that is it.

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 Pepper Flash on Ubuntu 20.04 - How to do it ?

This article covers how to install the Pepper Flash plugin for the Mozilla Firefox browser on Ubuntu 20.04. After the successful installation of this plugin, we can easily use it for enjoying feature-rich content while browsing. 

We have also shared with you the method of removing this plugin from your system whenever you feel like it at the end of this guide.


How can I install Pepper Flash Player on Ubuntu? 

How can I setup Flash Player for Chromium web browser on Ubuntu?  

Pepper Flash Player is maintained by Google and is newer than Adobe Flash Player. 

Pepper Flash Player can be used with Chromium web browser.

The Pepper Flash Player is available on the Canonical Partners Repository. 

This repository is disabled by default on Ubuntu . 

1. Enable it by running the command:

$ sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"

2. Then, Update your package list after enabling the repository

$ sudo apt update

3. You can then install Pepper Flash Player in your Ubuntu 18.04 Desktop.

$ sudo apt -y install pepperflashplugin-nonfree

4. To update Pepperflash, use:

$ sudo update-pepperflashplugin-nonfree --install

5. After the installation of Pepper Flash Player on Ubuntu, make sure Flash is allowed to run in:

chrome://settings/content/flash

Install UrBackup Server and Client on Ubuntu 20.04 - How to do it ?

This article covers how to install and setup the UrBackup server on Ubuntu 20.04. Here, you will also learn how we can add a Linux host to be backed up. 

The main reason for data backup is to save important files if a system crash or hard drive failure occurs, you will lose your data. 

Therefore, a backup solution is much important for any data critical organization.

UrBackup is a free and powerful network backup solution for personal and enterprise. It has almost all features you need from a backup software. UrBackup supports Linux, Windows and Mac OS X.


Benefits of having UrBackup Server on your network are:

1. Centralized backup management

2. Supports multiple clients

3. Supports multiple simultaneous backups

4. Easy to restore


To Install client on Debian or Ubuntu:

1. Install the dependencies UrBackup needs: WxWidgets >= 2.9.0 On Debian/Ubuntu you can do that with apt or your favourite package manager:

$ apt install build-essential "g++" libwxgtk3.0-dev "libcrypto++-dev" libz-dev

2. Download the UrBackup client source files and extract them via e.g.

$ wget https://hndl.urbackup.org/Client/2.4.11/urbackup-client-2.4.11.tar.gz

$ tar xzf urbackup-client-2.4.11.tar.gz


3. Build the UrBackup client and install it:

$ cd urbackup-client-2.4.11

./configure

make -j4

sudo make install


4. Make sure that the UrBackup client backend runs correctly:

$ sudo urbackupclientbackend -v info


5. Start the UrBackup client backend on startup by adding it e.g. to rc.local:

$ sudo chmod +x /etc/rc.local

editor /etc/rc.local

Now add /usr/local/sbin/urbackupclientbackend -d before the exit 0.


6. Start the UrBackup client frontend and setup your paths by executing:

$ urbackupclientgui

and clicking on the tray icon and add paths. You can also do that on the server.


To Install UrBackup Client on Windows:

If you have a fully functioning UrBackup Server on Ubuntu, then you can install UrBackup client on client computers. For example, you can install UrBackup client on Windows 10.

1. Download UrBackup client for Windows 10: https://hndl.urbackup.org/Client/2.4.11/UrBackup%20Client%202.4.11.exe

2. After you install the client software on Windows 10, it will automatically search and connect to the UrBackup server. 

3. You will see the client computer listed on your UrBackup web administration console.

4. There will be an UrBackup icon in your taskbar where you can do several things such as:

i. Change settings

ii. Add/remote backup path

iii. Change component to backup

iv. See the status

Use Picture-in-Picture Mode in Google Chrome - How to do it ?

This article covers how to enable Picture-in-Picture mode (PiP) in the Google Chrome browser on Ubuntu 20.04. Users need to know notice that in case if they close their browser window, it will also close the smaller window. 

Also, you will learn how to disable the PiP mode in the Google Chrome browser.


How do I enable picture in picture on Chrome?

Here's how it works: open Chrome, go to a website that contains a video and play it fullscreen. 

From there, press the Home button to go to your Android Home Screen and the playing video will automatically transition to Picture-in-Picture. 

That's all!


What is picture in picture mode?

PIP is a special type of multi-window mode mostly used for video playback. 

It lets the user watch a video in a small window pinned to a corner of the screen while navigating between apps or browsing content on the main screen. 

Your app controls when the current activity enters PIP mode.

Install Spotify on Ubuntu 20.04 - Step by Step process to do it ?

This article covers the different methods of installation of Spotify on the Ubuntu 20.04 system. 

Spotify is a Popular music streaming application used globally and users can use any of the methods discussed above for its installation. 

The uninstallation process is also quite easy and we covered it for the ease of our readers. 

Users can also update Spotify with each newly released version.


Where is Spotify installed Linux?

If you followed the instructions on https://www.spotify.com/download/linux/ and installed from Ubuntu Software or snap, it should be located at /snap/bin/spotify . 

If you installed the debian package, it should be located at /usr/bin/spotify .


To update Spotify on Ubuntu:

1. Update list of available packages:

$ sudo apt-get update.

2. Install Spotify:

$ sudo apt-get install spotify-client.


To uninstall Spotify on Linux:

1. Quit Spotify.

2. Uninstall. sudo apt-get remove spotify-client.

3. Remove old config and cache.

cd $HOME/.config. rm -r spotify. cd $HOME/.cache. rm -r spotify.

4. Reinstall by following instructions on https://www.spotify.com/download/linux. 


To Install via command line on Ubuntu:

If you don't have access or don't want to use Ubuntu Software, it is possible to install Spotify from the command line with snap. 

Run the following command in your terminal:

$ snap install spotify

Install Tor Browser on Ubuntu 20.04 - Step by Step process to do it ?

This article covers how you can install the Tor browser on Ubuntu 20.04 Linux distribution. Now, you can use and do web browsing privately and in a secure way on your system. You can visit your local websites, your network service providers may block this browser.

When you use the Tor Browser, the connection to the website you are viewing is encrypted and protected from network surveillance and traffic analysis.


To Install Tor Browser Launcher on Ubuntu:

1. Add the Tor Browser Launcher PPA repository using the following command: 

$ sudo add-apt-repository ppa:micahflee/ppa.

2. Once the repository is enabled, update the apt package list and install the Tor Browser Launcher package by typing: 

$ sudo apt update 
$ sudo apt install torbrowser-launcher.


To uninstall Tor Kali Linux:

1. Locate your Tor Browser folder. On Linux, there is no default location, however the folder will be named "tor-browser_en-US" if you are running the English Tor Browser.

2. Delete the Tor Browser folder.

3. Empty your Trash.


To Update Tor Browser on Ubuntu ?

To help keep you secure, Tor Browser will automatically update itself when a new version is released.

Execute the following commands in your terminal:

$ sudo apt update
$ sudo apt install torbrowser-launcher

Install Wine on Ubuntu 20.04 LTS - Step by step process to do it ?

This article covers how to install Wine on Ubuntu 20.04. We used the WineHQ repositories and downloaded them directly for their installation.
Users can use it now for running all Windows-based applications.

To Install Wine from a Standard Ubuntu Repository (recommended):
We recommend that you install Wine on your system through the standard Ubuntu repository, as this way you can have a more stable version on your system.
1. Run the following command in the Terminal as a root user in order to install Wine on a 64-bit version of Ubuntu:
$ sudo apt install wine64
2. Please enter y when you are prompted with a y/n option for installation.
After that, the Wine application will be installed and ready for use.
3. For a 32-bit Ubuntu system, you can use the following command:
$ sudo apt install wine32
4. You can verify the version of Wine through the following command:
$ wine --version

To Install Wine without Internet:
To install Wine on an Ubuntu machine without internet access, you must have access to a second Ubuntu machine (or VM) with an internet connection to download the Wine .deb package and its dependencies.
On the machine with internet, add the WineHQ repository and run apt update.
Next, cache just the packages necessary for installing wine, without extracting them:
sudo apt-get clean
sudo apt-get --download-only install winehq-devel
sudo apt-get --download-only dist-upgrade

Copy all of the .deb files in /var/cache/apt/archives to a USB stick:
cp -R /var/cache/apt/archives/ /media/usb-drive/deb-pkgs/

Finally, on the machine without internet, install all of the packages from the flash drive:
cd /media/usb-drive/deb-pkgs
sudo dpkg -i *.deb

Install MariaDB on Ubuntu 20.04 LTS - Step by step process to do it ?

This article covers how to install MariaDB on Ubuntu 20.04 LTS system. Also you will learn how to secure it by configuring some security options and then, in the end, we have tested the connection to MariaDB. The #Ubuntu server should have a non-root administrative user and a firewall configured with UFW.

By following the above simple steps, you can easily setup MariaDB on your ubuntu system. 

For more information, visit MariaDB's official documentation .

MariaDB is one of the most widely used and open-source database management systems. 

MariaDB is considered as a replacement for #MySQL and has much more features and capabilities that you cannot find in MySQL.


To install #MariaDB on Debian:

1. Update your package index using apt;

$ sudo apt update

2. Install the mariadb-server package using apt. The package also pulls in related tools to interact with MariaDB;

$ sudo apt install mariadb-server

3. Run the included mysql_secure_installation security script to restrict access to the server;

$ sudo mysql_secure_installation

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.

Modify Zoom Background on Ubuntu 20.04 - Step by Step process ?

This article will guide you on steps to easily change the background of the Zoom application whenever he wants on #Ubuntu #Linux System. In this way, you can ensure efficient bandwidth utilization.

#Zoom is a very popular video communication tool for chatting, online meetings, screen-sharing, video conferencing etc. 

It is supported by most of the popular operating system like #Windows, Linux, Mac, and Android.

Zoom offers a few default image options to choose from, but it also allows you to upload your own image.

To make my background zoom better:

1. Click Settings. 

2. Click Virtual Background. 

Note: If you do not have the Virtual Background tab and you have enabled it on the web portal, sign out of the Zoom Desktop Client and sign in again. 

3. Click on an image to select the desired virtual background or add your own image by clicking +Add Image.

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.

Methods to Log out of Ubuntu 20.04 LTS ?

This article will guide you on different methods to log out of your #Ubuntu 20.04 system very conveniently. By logging out of a current user session, we essentially attempt to stop all the running #applications. 

It means that when we will log into the same user account again, we will have to start everything from scratch.

Steps to Log Out from Ubuntu #Linux:

1. To log out from Ubuntu desktop #session, go to the top right corner and click to bring the system tray. 

2. You should see Power Off / Log Out option. 

3. Click on it and it will show the Log Out option. 

4. When you click on the Log Out button, it will open a dialogue box and ask for your conformation.

You can Use #logout to log out of the #terminal. Or alternatively we can use ctrl + d to log out of the terminal session.

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.

Steps by step process to install VLC media player on Ubuntu 20.04 LTS ?

This article will guide you on different installation methods for the VLC. We have also seen how we can uninstall this streaming #software from the system when it is not needed.

VLC Media Player is one of the most well known and arguably best media players available for any platform, including Windows. #VLC can also help you convert video files from one format to another, save YouTube videos for offline playback, and record your own videos using your webcam.

Using #Linux #Terminal to Install VLC in #Ubuntu:

1. Click on Show Applications.

2. Search for and launch Terminal.

3. Type the command: sudo snap install VLC .

4. Provide the sudo password for authentication.

VLC will be downloaded and installed automatically.

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 Webmin on Ubuntu 20.04 LTS ?

This article will guide you on the steps to install #Webmin in your Linux system. Webmin comes with a very simple webserver called miniserv.pl that is capable of doing all that is necessary for Webmin to run. However, it is not as fast or memory efficient as a well-developed server such as #Apache.

To modify the default port, 10000 to 10101, open the /etc/webmin/miniserv. conf file and modify line 1 and 16. Now you can access the Webmin through url with new custom port.

To Install Webmin on #Ubuntu:

1. Log in to your Ubuntu #server.

2. Issue the command sudo nano /etc/apt/sources. list.

3. Hit [CTRL][x] and save the file.

4. Add the downloaded key with the command sudo apt-key add jcameron-key. asc.

5. Update apt with the command sudo apt-get update.

6. Install Webmin with the command sudo apt-get install webmin.

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.

How to block or unblock ping requests on Ubuntu Server 20.04 LTS ?

This article will guide you on steps to block or unblock #ping requests on #Ubuntu Server 20.04 LTS. Also you will learn how to unblock the ping requests in case you need to use ping for system administration and troubleshooting.

To block #ping requests in #Linux:

You can implement blocking ICMP messages in your Linux system by adding the below #kernel variable that will drop all ping packets. In order to make the above rule permanent, append following line to /etc/sysctl. conf file and, subsequently, apply the rule with sysctl command.

How to know Ubuntu version via command line ?

This article will guide you on how to check your Ubuntu version so that you can apply patches and update versions for security and performance reasons. The Process of Checking the #Ubuntu version in the #terminal ? i. Open the terminal using "Show Applications" or use the keyboard shortcut [Ctrl] + [Alt] + [T]. ii. Type the #command "lsb_release -a" into the command line and press enter. iii. The terminal shows the Ubuntu version you're running under "Description" and "Release".

Complete guide on how to modify Hostname on Ubuntu 20.04

This article will guide you on how to change your Ubuntu server hostname without restarting the system.

A complete guide on creating a Sudo User on Ubuntu 20.04 LTS

This article will help you to add a user account with access and privileges to run system administrator’s commands on Ubuntu 20.04 LTS systems.

Steps to update and upgrade Pi-hole with an OpenVPN Server on Ubuntu / Debian Linux server

This guide will show you how to easily update and upgrade Pi-hole with an OpenVPN on Ubuntu/Debian Linux server.

How to pair Pi-hole with an OpenVPN Server to block ads and enhance privacy on Ubuntu / Debian Linux?

This article will help you to get Pi-hole installed and to configure it Debian or Ubuntu Linux along with an OpenVPN server.

Configure automatic unattended updates in Ubuntu 20.04

Updating your Ubuntu Linux server manually is a complete waste of time and energy. You can set up an automatic process whereby the system will update new patches to improve security.

Best method to change server hostname in Ubuntu

Setting the right hostname for a server is very important in order to resolve properly when linked to a domain name.