Monday, May 31, 2010

Installing TrueCrypt on Ubuntu

SkyHi @ Monday, May 31, 2010

This guide will go through installing TrueCrypt encryption software from a terminal in order to install the command line version (in cases were desktop access is unavailable) and as a GUI for users that require a simple working interface.


Installing Command Line Version (from terminal)

Go to download page and download the “Mac OS X/Linux” version


http://www.truecrypt.org/downloads2


The required software for building TrueCrypt are listed below:


- GNU Make – GNU C++ Compiler 4.0 or compatible


- pkg-config


- FUSE library and header files (available at http://fuse.sourceforge.net and http://code.google.com/p/macfuse)


- RSA Security Inc. PKCS #11 Cryptographic Token Interface (Cryptoki) 2.20 header files (available at ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20) located in a standard include path or in a directory defined by the environment variable ‘PKCS11_INC’.


Install them using the following:


apt-get install g++ pkg-config libfuse-dev libfuse2 fuse-utils


Make sure the fuse module is added to your kernel and that it is loaded every time your system starts. You can do that by editing the /etc/modules file and appending “fuse” (without quotes) to it. Finally, extract the tar.gz archive.


sudo modprobe fuse

sudo nano /etc/modules

OR

su echo fuse >> /etc/modules

tar xvf TrueCrypt\ 6.1a\ Source.tar.gz

cd truecrypt-6.1a-source/

make NOGUI=1 WXSTATIC=1


In case of a compile error which refers to missing file “pkcs11.h” you can download it manually using:


wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11.h

wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11f.h

wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11t.h


Finally you can copy the executable to /usr/local/bin by:


cp Main/truecrypt /usr/local/bin/


Installing GUI Version

Installing the GUI version is extremely simple. Get/extract/execute the file using:


wget http://www.truecrypt.org/download/truecrypt-6.1a-ubuntu-x86.tar.gz

tar xvf truecrypt-6.1a-ubuntu-x86.tar.gz

./truecrypt-6.1a-setup-ubuntu-x86

or

wget http://www.truecrypt.org/download/truecrypt-6.1a-ubuntu-x64.tar.gz

tar xvf truecrypt-6.1a-ubuntu-x64.tar.gz

./truecrypt-6.1a-setup-ubuntu-x64




REFERENCES
http://www.itsolutionskb.com/2009/04/installing-truecrypt-on-ubuntu/