2021-05-09 10:27:11 -04:00
<!--
Title: How to install and use VeraCrypt on Tails
Description: Learn how to install and use VeraCrypt on Tails.
Author: Sun Knudsen < https: / / github . com / sunknudsen >
Contributors: Sun Knudsen < https: / / github . com / sunknudsen >
Reviewers:
Publication date: 2021-05-09T12:10:53.922Z
Listed: true
-->
# How to install and use VeraCrypt on Tails
2021-05-27 10:39:44 -04:00
[](https://www.youtube.com/watch?v=ZlWNmpFxk1g "How to install VeraCrypt persistently on Tails")
2021-05-09 10:27:11 -04:00
## Requirements
- [Tails USB flash drive or SD card ](../how-to-install-tails-on-usb-flash-drive-or-sd-card-on-macos )
2021-05-10 11:04:33 -04:00
## Caveats
- When copy/pasting commands that start with `$` , strip out `$` as this character is not part of the command
2021-05-09 10:27:11 -04:00
## Setup guide
2021-05-10 11:04:33 -04:00
### Step 1: boot to Tails and set admin password (required to [create optional exFAT partition](#step-2-optional-create-exfat-partition-on-tails-usb-flash-drive-or-sd-card))
2021-05-09 10:27:11 -04:00
> Heads-up: if keyboard layout of computer isn’ t “English (US)”, set “Keyboard Layout”.
2022-02-18 10:41:53 -05:00
Click “+” under “Additional Settings”, then “Administration Password”, set password, click “Add” and, finally, click “Start Tails”.
2021-05-10 11:04:33 -04:00
### Step 2 (optional): create exFAT partition on Tails USB flash drive or SD card
> Heads-up: partition used to move files between Tails and other operating systems such as macOS.
2022-02-18 10:41:53 -05:00
Click “Applications”, then “Utilities”, then “Disks”, select USB flash drive or SD card, click “Free Space”, then “+”, set “Partition Size”, click “Next”, set “Volume Name”, select “Other”, click “Next”, select “exFAT” and, finally, click “Create”.
2021-05-10 11:04:33 -04:00
### Step 3: enable persistence
2021-05-09 10:27:11 -04:00
2022-02-18 10:41:53 -05:00
Click “Applications”, then “Favorites”, then “Configure persistent volume”, set passphrase, click “Create”, make sure “Personal Data” is enabled, click “Save” and, finally, click “Restart Now”.
2021-05-09 10:27:11 -04:00
2021-05-10 11:04:33 -04:00
### Step 4: boot to Tails, unlock persistent storage and set admin password (required to mount VeraCrypt volumes)
2021-05-09 10:27:11 -04:00
> Heads-up: if keyboard layout of computer isn’ t “English (US)”, set “Keyboard Layout”.
2022-02-18 10:41:53 -05:00
Click “+” under “Additional Settings”, then “Administration Password”, set password, click “Add” and, finally, click “Start Tails”.
2021-05-09 10:27:11 -04:00
2021-07-21 19:48:34 -04:00
### Step 5: establish network connection using ethernet cable or Wi-Fi and wait for Tor to be ready
2021-05-09 10:27:11 -04:00
2021-07-21 19:48:34 -04:00
Connected to Tor successfully
2021-05-09 10:27:11 -04:00
👍
2021-06-21 09:07:17 -04:00
### Step 6: import “VeraCrypt Team (2018 - Supersedes Key ID=0x54DDD393)” PGP public key
2021-05-09 10:27:11 -04:00
```console
$ torsocks curl https://www.idrix.fr/VeraCrypt/VeraCrypt_PGP_public_key.asc | gpg --import
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
2021-12-29 10:02:08 -05:00
100 5434 100 5434 0 0 4461 0 0:00:01 0:00:01 --:--:-- 4461
2021-05-09 10:27:11 -04:00
gpg: key 0x821ACD02680D16DE: 1 signature not checked due to a missing key
gpg: key 0x821ACD02680D16DE: public key "VeraCrypt Team (2018 - Supersedes Key ID=0x54DDD393) < veracrypt @idrix .fr > " imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: no ultimately trusted keys found
```
imported: 1
👍
2021-12-13 10:59:02 -05:00
### Step 7: set [VeraCrypt](https://veracrypt.fr/en/Home.html) release semver environment variable
2021-06-21 09:07:17 -04:00
2022-02-16 16:07:46 -05:00
> Heads-up: replace `1.25.4` with [latest release](https://www.veracrypt.fr/en/Downloads.html) semver.
2021-06-21 09:07:17 -04:00
```shell
2021-12-29 10:02:08 -05:00
VERACRYPT_RELEASE_SEMVER=1.25.4
2021-06-21 09:07:17 -04:00
```
2021-12-13 10:59:02 -05:00
### Step 8: download VeraCrypt release
2021-07-21 19:48:34 -04:00
Click “Applications”, then “Tor Browser”, go to https://www.veracrypt.fr/en/Downloads.html and download latest release of “Linux Generic Installer” and associated PGP signature.
2021-05-10 11:04:33 -04:00
### Step 9: verify VeraCrypt release (learn how [here](../how-to-verify-pgp-digital-signatures-using-gnupg-on-macos))
2021-05-09 10:27:11 -04:00
```console
2021-05-10 08:26:30 +02:00
$ gpg --verify ~/Tor\ Browser/veracrypt-$VERACRYPT_RELEASE_SEMVER-setup.tar.bz2.sig
2021-12-29 10:02:08 -05:00
gpg: assuming signed data in '/home/amnesia/Tor Browser/veracrypt-1.25.4-setup.tar.bz2'
gpg: Signature made Fri 03 Dec 2021 05:57:28 PM UTC
2021-05-09 10:27:11 -04:00
gpg: using RSA key 5069A233D55A0EEB174A5FC3821ACD02680D16DE
gpg: Good signature from "VeraCrypt Team (2018 - Supersedes Key ID=0x54DDD393) < veracrypt @idrix .fr > " [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 5069 A233 D55A 0EEB 174A 5FC3 821A CD02 680D 16DE
```
Good signature
👍
2021-05-10 11:04:33 -04:00
### Step 10: extract VeraCrypt release
2021-05-09 10:27:11 -04:00
```shell
cd ~/Tor\ Browser
2021-05-10 08:26:30 +02:00
tar --extract --file ~/Tor\ Browser/veracrypt-$VERACRYPT_RELEASE_SEMVER-setup.tar.bz2 veracrypt-$VERACRYPT_RELEASE_SEMVER-setup-gui-x64
2021-05-09 10:27:11 -04:00
```
2022-02-18 10:41:53 -05:00
### Step 11: run installer, click “Extract .tar Package File”, accept license terms, click “OK” and, finally, click “OK” (again).
2021-05-09 10:27:11 -04:00
```shell
2021-05-10 08:26:30 +02:00
./veracrypt-$VERACRYPT_RELEASE_SEMVER-setup-gui-x64
2021-05-09 10:27:11 -04:00
```
2021-05-10 11:04:33 -04:00
### Step 12: extract `veracrypt` binary to ~/Persistent
2021-05-09 10:27:11 -04:00
```shell
cd ~/Persistent
2021-05-10 08:26:30 +02:00
tar --extract --file /tmp/veracrypt_${VERACRYPT_RELEASE_SEMVER}_amd64.tar.gz --strip-components 2 usr/bin/veracrypt
2021-05-09 10:27:11 -04:00
```
2021-05-10 11:04:33 -04:00
### Step 13: create `veracrypt.AppImage`
2021-05-09 10:27:11 -04:00
```shell
echo -n "./veracrypt" > veracrypt.AppImage
chmod +x veracrypt.AppImage
```
👍
2021-06-21 09:07:17 -04:00
---
2021-05-09 10:27:11 -04:00
## Usage guide
2021-12-13 10:59:02 -05:00
Click “Places”, then “Persistent” and double-click “veracrypt.AppImage”.
2021-05-09 10:27:11 -04:00
👍