Linux Resources

Install and Use Veracrypt on Ubuntu 20.04 - Step by Step process to do it ?

This article covers how to Install and Setup VeraCrypt on Ubuntu 20.04. VeraCrypt, a fork of TrueCrypt, is a free and open source on-the-fly disk encryption (OTFE) tool.

Main features offered by VeraCrypt include:

1. Creates a virtual encrypted disk within a file and mounts it as a real disk.

2. Encrypts an entire partition or storage device such as USB flash drive or hard drive.

3. Encrypts a partition or drive where Windows is installed (pre-boot authentication).

4. Encryption is automatic, real-time(on-the-fly) and transparent.

5. Parallelization and pipelining allow data to be read and written as fast as if the drive was not encrypted.

6. Encryption can be hardware-accelerated on modern processors.

7. Provides plausible deniability, in case an adversary forces you to reveal the password: Hidden volume (steganography) and hidden operating system.

To Install VeraCrypt Using DEB binary Package on Ubuntu:

Debian/Ubuntu packages for VeraCrypt are also available for download on download’s page. However, as of this writing, there is not available a binary package for Ubuntu 20.04 yet. As such, we using binary package for Ubuntu 19.04.

Note that the installers are also available, both for GUI and console based installations.

To install console-based VeraCrypt;

wget https://launchpad.net/veracrypt/trunk/1.24-update4/+download/veracrypt-console-1.24-Update4-Ubuntu-19.10-amd64.deb

Then install it;

$ dpkg -i veracrypt-console-1.24-Update4-Ubuntu-19.10-amd64.deb

To install GUI based;

$ wget https://launchpad.net/veracrypt/trunk/1.24-update4/+download/veracrypt-1.24-Update4-Ubuntu-19.04-amd64.deb

Next, use APT package manager to ensure that any would-be dependency is dealt with automatically:

$ apt install ./veracrypt-1.24-Update4-Ubuntu-19.04-amd64.deb

You can uninstall GUI based VeraCrypt by executing;

$ apt remove --purge veracrypt
$ apt autoremove

Use Speedtest CLI to Test Internet Speed on Ubuntu 20.04 - How to perform this task ?

This article covers how to install and use the Speedtest CLI utility to test your Internet speed while using Ubuntu 20.04.

To check my Internet speed in Ubuntu:

1. Open the Ubuntu Terminal by pressing Ctrl+alt+T or through the Dash. 

2. Then enter the command to install python:

$ sudo apt-get install python-pip

Once python is successfully installed, use the command to install the speedtest-cli tool:

$ sudo pip install speedtest-cli

The tool will be installed in your system.

To check Your Internet Speed:

Run the following command to test your internet speed:

$ speedtest-cli

To share Internet Speed Test Results:

The speedtest-cli also lets you share your internet speed by providing a link on the speedtest.net website through the following command:

$ speedtest-cli --share

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:


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

Install Sublime Text Editor on CentOS 8 - Step by Step process to do it ?

This article covers how to install sublime text editor on the CentOS 8 system through the terminal. Sublime text editor is quite similar to vim editor. Sublime text has a built-in Python API available in Windows, Linux, and Mac OS.

To install Sublime Text on Ubuntu:

1. Install the GPG key:

$ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

2. Ensure apt is set up to work with https sources:

$ sudo apt-get install apt-transport-https

3. Select the channel to use:

i. Stable

$ echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

ii. Dev

$ echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

4. Update apt sources and install Sublime Text:

$ sudo apt-get update
$ sudo apt-get install sublime-text

To fix yum-config-manager command not found:

You need to Install yum-utils by running the command below:

$ yum install yum-utils

Automatically Empty the Trash in Ubuntu 20.04 - How to do this ?

This article covers how to install Autotrash on Ubuntu system. With Autotrash, you can automatically delete the files residing in the Trash based on the conditions you specified.

trash-cli is a command-line interface to the trash-can used by Linux Systems. 

The trash-cli is present in repositories of most of the Linux Distributions.

To remove Autotrash from Ubuntu:

Run the command:

$ sudo snap remove autotrash-unofficial

Change Host Name on Ubuntu 20.04 - How to perform this task ?

This article covers both the CLI and GUI based methods of changing the hostname on Ubuntu 20.04. 

To change the hostname on Ubuntu Linux:

1. Type the following command to edit /etc/hostname using nano or vi text editor: $ sudo nano /etc/hostname. Delete the old name and setup new name.

2. Next Edit the /etc/hosts file: sudo nano /etc/hosts.

3. Reboot the system to changes take effect: sudo reboot.

To change the hostname on Ubuntu:

1. To change the hostname invoke the hostnamectl command with the set-hostname argument followed by the new hostname. 

2. Only the root or a user with sudo privileges can change the system hostname. 

3. The hostnamectl command does not produce output.

To change the localhost hostname (static name in the hostname file)?

1. You can also set the static hostname manually by editing /etc/hostname

2. This file contains exactly one line by default. 

3. If you have not changed the hostname yet, then that line probably reads localhost. localdomain .

To display the current Ubuntu hostname:

Simply type the following command:

$ hostnamectl

To change Ubuntu LTS hostname permanently:

1. Type the hostnamectl command :

$ sudo hostnamectl set-hostname newNameHere

2. Delete the old name and setup new name.

3. Next Edit the /etc/hosts file:

$ sudo nano /etc/hosts

Replace any occurrence of the existing computer name with your new one.

4. Reboot the system to changes take effect:

$ sudo reboot

To change hostname on Ubuntu without a system restart:

1. Let us see current setting just type the following command:

$ hostnamectl

2. Next change hostname from localhost to linuxapt, enter:

$ hostnamectl set-hostname linuxapt

3. Verify new changes:

$ hostnamectl

Search by typing a one letter Word Term Here