Installing TrueCrypt

First, download the source code from the downloads page, because the Ubuntu debian package is compiled for 586 instead of 686 kernel, so we’ll have to build it ourself.

Copy the downloaded file into whatever location you’d like. The next step is to install some required software for the build process to execute. You may have some or all of these installed on your machine already.

Note: Make sure that the ` character is the one below the tilde ~ key.

Now that we’ve installed the prerequisites, we’ll need to do a small amount of setup before it will work properly. Note that the exact version of the kernel may be different on your machine, but you are using tab completion anyway, right?  =)

The last step will send a whole lot of stuff flying by…. eventually it may prompt you to select yes on a question or two. This step is necessary because you’ll probably get an error later on otherwise.

sudo bunzip2 linux-source-2.6.17.tar.bz2

sudo tar xvf linux-source-2.6.17.tar

sudo ln -s linux-source-2.6.17 linux

sudo make -d -C linux modules_prepare

Change directory back to the download directory, and now we’ll extract the source code, which contains both windows and linux source…

Since Truecrypt installs a kernel module, you will have to run the build script in superuser mode.

cd truecrypt-4.2a/Linux/

This should have run successfully without errors at this point. Now we can launch the installation script, now that we know everything has been built successfully.

At this point, Truecrypt is successfully installed. If  you are already familiar, you can get back to work. If not, here’s a couple of common use scenarios.

Install binaries to [/usr/bin]: Install man page to [/usr/share/man]: Install user guide and kernel module to [/usr/share/truecrypt]: Allow non-admin users to run TrueCrypt [y/N]: YInstalling kernel module… Done.Installing truecrypt to /usr/bin… Done.Installing man page to /usr/share/man/man1… Done.Installing user guide to /usr/share/truecrypt/doc… Done.Installing backup kernel module to /usr/share/truecrypt/kernel… Done.

Creating a Truecrypt volume

Creating a truecrypt volume can be as simple as running truecrypt -c , but there are some options you can use on the command line if you would prefer:

Mount a TrueCrypt volume

Enter password for new volume ‘myvolume.tc’: Re-enter password: Enter keyfile path [none]: TrueCrypt will now collect random data. Is your mouse connected directly to computer where TrueCrypt is running? [Y/n]:Please type at least 320 randomly chosen characters and then press Enter:

You should create a directory to mount the Truecrypt volume in. I named mine tcmount

Note: You must use the -u option in order to mount the volume in user mode so that you will have write access to it.

truecrypt -u myvolume.tc  tcmount

Dismount a TrueCrypt volume

Check to see if the TrueCrypt volume is mounted

I mounted the volume in a directory called tcmount, and you can see it at the bottom of the list

Mounting a volume on a USB stick

You can mount a volume on a USB stick just as easily as mounting a regular volume. Just supply the full path to the truecrypt volume on the USB stick and a mount point directory of your choice.