Encrypted Files with Truecrypt on Ubuntu

by Mike on December 22, 2008 · 2 comments

in Encryption

Truecrypt is an open-source tool to encrypt data for Linux, Windows and Mac OSX.  Truecrypt will create a virtual disk within a file and mount it as a disk.  It can encrypt an entire partition or drive, even a USB flash drive.  One nice thing about the encryption is that it is real-time and transparent.  Truecrypt provides two levels of plausible deniability if the password is revealed; hidden volumes and operating system and volumes cannot be identified from random data.

Go to the truecrypt web site at:


Download the correct version.

Once it is downloaded untar and unzip:

tar zxvf truecrypt*

This will create an executable file which can begin the installation.  One thing to note is that if you have any dependencies you must meet those before you can proceed.  Execute the file:

sh truecrypt*

TrueCrypt 6.1a Setup

Installation options:

1) Install truecrypt_6.1a-0_i386.deb
2) Extract package file truecrypt_6.1a-0_i386.deb and place it to /tmp

To select, enter 1 or 2:

Choose 1) to install.

You will need to accept the license.

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

Press Enter to display the license terms…

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

Running package installer…
Selecting previously deselected package truecrypt.
(Reading database … 28911 files and directories currently installed.)
Unpacking truecrypt (from /tmp/truecrypt_6.1a-0_i386.deb) …
dpkg: dependency problems prevent configuration of truecrypt:
truecrypt depends on libsm6; however:
Package libsm6 is not installed.
truecrypt depends on libgtk2.0-0; however:
Package libgtk2.0-0 is not installed.
dpkg: error processing truecrypt (–install):
dependency problems – leaving unconfigured
Errors were encountered while processing:
Error: TrueCrypt installation failed

If you have not met dependencies you must do so.  Here is a list of dependencies that you may have to install in order to get it working on a Ubuntu server.

# apt-get install libsm6 libice6 libgtk2.0-0 hicolor-icon-theme libgtk2.0-bin libgtk2.0-common libatk1.0-0 libcairo2 libfontconfig1 libjpeg62 libpango1.0-0 libpng12-0 libtiff4 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1 libpixman-1-0 libxcb-render-util0 libxcb-render0 libpango1.0-common libdatrie0 libthai0 libxft2 defoma fontconfig x-ttcidfont-conf xfonts-encodings xfonts-base xfonts-utils libfontenc1 libxfont1 libthai-data fontconfig-config ttf-dejavu ttf-bitstream-vera ttf-freefont gsfonts-x11 gsfonts xutils-dev ttf-dejavu-core ttf-dejavu-extra
Reading package lists… Done

Running package installer…
(Reading database … 30671 files and directories currently installed.)
Preparing to replace truecrypt 6.1a-0 (using /tmp/truecrypt_6.1a-0_i386.deb) …
Unpacking replacement truecrypt …
Setting up truecrypt (6.1a-0) …


Peter December 23, 2008 at 6:17 pm

Thank you for the post. It helped.

Robert March 6, 2009 at 8:25 pm

Straight forward enough for a non-technical user. ‘Worked as written. Thank You!! Nicely Done.

Previous post:

Next post: