Install and Setup VeraCrypt on Rocky Linux

0
176

In this guide, we are going to learn how to install and setup VeraCrypt on Rocky Linux. VeraCrypt, a fork of TrueCrypt, is a free and open source on-the-fly disk encryption (OTFE) tool.

Install and Setup VeraCrypt on Rocky Linux

Some of the main features offered by VeraCrypt include;

How to install latest Kdenlive on L...
How to install latest Kdenlive on Linux
  • Creates a virtual encrypted disk within a file and mounts it as a real disk.
  • Encrypts an entire partition or storage device such as USB flash drive or hard drive.
  • Encrypts a partition or drive where Windows is installed (pre-boot authentication).
  • Encryption is automaticreal-time(on-the-fly) and transparent.
  • Parallelization and pipelining allow data to be read and written as fast as if the drive was not encrypted.
  • Encryption can be hardware-accelerated on modern processors.
  • Provides plausible deniability, in case an adversary forces you to reveal the password: Hidden volume (steganography) and hidden operating system.

There are multiple ways in which one can install VeraCrypt on Rocky Linux;

  1. Using RPM packages.
  2. Using generic VeraCrypt Installers

Install VeraCrypt on Rocky Linux using RPM Binary

Note that there are two versions of VeraCrypt installers you can choose; The GUI based installer and the console based installer.

We will use the GUI based installer in this guide.

  • Download VeraCrypt GUI Installer

VeraCrypt provide installer scripts on their downloads page which makes the install as easy as executing the script.

As of this writing, there is no VeraCrypt package available for Rocky Linux.

We will therefore use the RPM binary for CentOS 8. Thus get the link and execute the command below to install VeraCrypt.

sudo dnf install https://launchpad.net/veracrypt/trunk/1.25.9/+download/veracrypt-1.25.9-CentOS-8-x86_64.rpm
Dependencies resolved.
============================================================================================================================================================================
 Package                                  Architecture                          Version                                   Repository                                   Size
============================================================================================================================================================================
Installing:
 veracrypt                                x86_64                                1.25.9-1                                  @commandline                                5.5 M

Transaction Summary
============================================================================================================================================================================
Install  1 Package

Total size: 5.5 M
Installed size: 23 M
Is this ok [y/N]: y

If you want to install the Console version;

sudo dnf install https://launchpad.net/veracrypt/trunk/1.25.9/+download/veracrypt-console-1.25.9-CentOS-8-x86_64.rpm
Dependencies resolved.
============================================================================================================================================================================
 Package                                        Architecture                        Version                                 Repository                                 Size
============================================================================================================================================================================
Installing:
 veracrypt-console                              x86_64                              1.25.9-1                                @commandline                              4.3 M

Transaction Summary
============================================================================================================================================================================
Install  1 Package

Total size: 4.3 M
Installed size: 19 M
Is this ok [y/N]:

Install VeraCrypt on Rocky Linux using Generic Installer

Download generic installers from the downloads page.

wget https://launchpad.net/veracrypt/trunk/1.25.9/+download/veracrypt-1.25.9-setup.tar.bz2

Extract the installer once the download is completed;

tar xjf veracrypt-1.25.9-setup.tar.bz2

Similarly, there are two types of installers, GUI based and the console based Installers for both x86 and x86_64 systems that are extracted to the current working directory.

ls -1 veracrypt*
veracrypt-1.25.9-setup-console-x64
veracrypt-1.25.9-setup-console-x86
veracrypt-1.25.9-setup-gtk3-console-x64
veracrypt-1.25.9-setup-gtk3-gui-x64
veracrypt-1.25.9-setup-gui-x64
veracrypt-1.25.9-setup-gui-x86
veracrypt-1.25.9-setup.tar.bz2

You can choose which one to use for installation;

Example of using GUI based installer;

sudo apt install dbus-x11
sudo ./veracrypt-1.25.9-setup-gui-x64

Once the installer runs, you are prompted to choose the installation option. Select option 1 to install VeraCrypt.

VeraCrypt 1.25.9 Setup
____________________


Installation options:

 1) Install veracrypt_1.25.9_console_amd64.tar.gz
 2) Extract package file veracrypt_1.25.9_console_amd64.tar.gz and place it to /tmp

To select, enter 1 or 2: 1

Before you can use, extract, or install VeraCrypt, you must accept the
terms of the VeraCrypt License.

Press Enter to display the license terms..

If you want to use the console installer, then execute the command;

sudo ./veracrypt-1.25.9-setup-console-x64
VeraCrypt 1.25.9 Setup
____________________


Installation options:

 1) Install veracrypt_1.25.9_console_amd64.tar.gz
 2) Extract package file veracrypt_1.25.9_console_amd64.tar.gz and place it to /tmp

To select, enter 1 or 2: 1

Before you can use, extract, or install VeraCrypt, you must accept the
terms of the VeraCrypt License.

Press Enter to display the license terms..

Press ENTER and go through the EULA and accept it to proceed with installation.

...
Do you accept and agree to be bound by the license terms? (yes/no): yes

Once the installation is done, press ENTER to exit the installer;

...
usr/share/doc/veracrypt/HTML/bank_30x30.png
usr/share/doc/veracrypt/HTML/VeraCrypt Volume Format Specification.html
usr/share/doc/veracrypt/HTML/VeraCrypt Rescue Disk.html
usr/share/doc/veracrypt/HTML/VeraCrypt128x128.png
usr/sbin/
usr/sbin/mount.veracrypt
usr/bin/
usr/bin/veracrypt-uninstall.sh
usr/bin/veracrypt

Press Enter to exit... 

VeraCrypt is now installed and placed under, /usr/bin/veracrypt.

You can uninstall VeraCrypt using the usr/bin/veracrypt-uninstall.sh script.

Launching VeraCrypt on Rocky Linux

If you installed console-based VeraCrypt, you can launch it from the terminal using the veracrypt command.

For example, to check help page and examples on how to use veracrypt on command line;

veracrypt --help

Check our guide on how to use VeraCrypt on command line to encrypt drives;

How to Use VeraCrypt on Command Line to Encrypt Drives

If you installed the GUI version, you can launch it from system activities.

install veracrypt rocky
Install and Setup VeraCrypt on Rocky Linux

Now that VeraCrypt is installed, how can I encrypt drives using VeraCrypt?

This process has been extensively described in our previous guide on how to use VeraCrypt to encrypt drives.

How to use VeraCrypt to Encrypt Drives on Ubuntu

That is how easy it is to install and setup VeraCrypt on Rocky Linux. Feel free to explore this awesome tool.

Read more on VeraCrypt Documentation page.

Related Tutorials

Encrypt Files and Directories with eCryptFS on Ubuntu 20.04

Encrypt Drives with LUKS in Linux

LEAVE A REPLY

Please enter your comment!
Please enter your name here