NB: Ripped (and modified) from : http://tredosoft.com/comment/reply/37

## How to install TrueCrypt 4.3a on Fedora 7

We are going to compile TrueCrypt from source so first grab TrueCrypt’s source code. When it’s downloaded, extract the source code and navigate to the Linux folder :

Truecrypt needs to compile a kernel module during the build process. Unfortunately the kernel headers included with Fedora 7 (in the kernel-devel package) are missing the dm.h header file which is needed for compiling the kernel module.

We need to download the source RPM for the kernel (it’s roughly a 45MB download) and install it so we can get to the dm.h file. Since this is for the release version of Fedora 7 (which has the 2.6 kernel) the commands to get at the source would be…

Once we are done installing the source RPM we edit the build.sh file located in TrueCrypt’s Linux folder. To do this, change the line :

KERNEL_SRC=/usr/src/redhat/BUILD/\$KERNEL_VER/vanilla

still logged in as root run the install script and modprobe the kernel module, using an ‘su -‘ login to set the root paths properly :

We successfully installed truecrypt!

To load this as a normal user, we need to create a mount point, and then use the truecrypt command with the –user-mount option :

Previously, to make this work, one needed to chown u+s /usr/bin/truecrypt (which was convenient, if a little insecure according to the truecrypt website). Now, with version 4.3a, this method of allowing a regular user to ‘escalate’ privileges to mount the volume doesn’t work. So the user has to be made ‘sudo’ capable. As root, do ‘/usr/sbin/visudo’ (ugg - I hate vi, try export EDITOR=joe first to avoid using this). Navigate to the bottom of the file, (and, if in vi hit ‘i’ for insert mode) and add :

where username is the user that will be using truecrypt. That should do the trick, and then the two commands :

should work. Phew!