Installing TrueCrypt on Debian Lenny.
Copied from http://esaucairn-almuric.blogspot.com/2009/03/truecrypt-on-debian.html
(Copying it here in case the blog goes offline).
The instructions there are for TrueCrypt 6.1a, but they work for TrueCrypt 6.3. Note that the Graphical interface comes up without any problems for TrueCrypt 6.3. Please read the Readme.txt file in the source directory to see if any other/newer versions of the packages mentioned need to be installed.
On to the guide...
The following aptitude commands are run as the root (superuser):
aptitude install dmsetup
aptitude install libwxgtk2.8-dev
aptitude install libwxbase2.8-dev
aptitude install libfuse-dev
aptitude install libopencryptoki-dev
aptitude install g++
aptitude install make gcc gcc-multilib manpages-dev gdb
aptitude install wx2.8-headers
aptitude install libopencryptoki0
aptitude install fuse-utils
aptitude install libfuse2 ntfs-3g
aptitude install libwxgtk2.8-0
(OR, you can run it all as one line:
aptitude install dmsetup libwxgtk2.8-dev libwxbase2.8-dev libfuse-dev libopencryptoki-dev libopencryptoki-dev g++ make gcc gcc-multilib manpages-dev gdb wx2.8-headers libopencryptoki0 fuse-utils libfuse2 ntfs-3g libwxgtk2.8-0
OR, you can install all of the programs through the synaptic software package management GUI. I'm no command line expert, but I find it simpler to just type the commands above when I know what I want.
)
I am 95% certain one or more of the items above is unnecessary, but it won't hurt to install all of them. I did not feel like going back and uninstalling different ones and trying to compile the application again. I know that if you have all of the above, compiling Truecrypt works.
The following you can (should) do as your normal user. For the sake of instructions, I'm assuming your account name is 'plankton' and your home directory is '/home/plankton'. Substitute your actual home directory and account name for 'plankton'.
1. Download the Linux source code to Truecrypt from the official website to /home/plankton, and open a shell at that directory. Run
gunzip truecrypt-6.1a-source.tar.gz
tar -xvvf truecrypt-6.1a-source.tar
You can combine both steps to one line, but I don't remember how and don't care to look it up at the moment.
When you are finished, my instructions assume everything is in a directory
/home/plankton/truecrypt-6.1a-source
2. Go to ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20 (you can paste that address into your web browser) and download all of the files with a '.h' extension at that location. Put them into a directory named 'pkcs' and paste the 'pkcs' directory into /home/plankton/truecrypt-6.1a-source/ directory
3. In your shell, cd to the /home/plankton/truecrypt-6.1a-source directory and type:
export PKCS11_INC=/home/plankton/Desktop/truecrypt-6.1a-source/pkcs/
4. Type 'make' and hit enter. Truecrypt will be compiled for you.
When you are finished, the directory
/home/plankton/truecrypt-6.1a-source/Main will contain an executable file named 'truecrypt'. Copy the truecrypt executable to /home/plankton/truecrypt
To run truecrypt as a normal user:
I'm still having problems getting it to run as a GUI.
As root, I used the 'visudo' command to add the following line to the sudoers file
plankton ALL = /home/plankton/truecrypt
This is the command line I use to mount my Truecrypt file from my third partition on my second hard drive:
sudo /home/plankton/truecrypt --filesystem=ntfs-3g --mount /media/sdb3/EncryptedDrive_OnD.tc --fs-options=umask=000,uid=1000,guid=1000
(The uid and guid of the plankton account are both 1000.)
Enter passwords when prompted.
-
wearetheborg Notebook Virtuoso
Installing TrueCrypt on Debian (Guide)
Discussion in 'Linux Compatibility and Software' started by wearetheborg, Oct 29, 2009.