- Published on
TrueCrypt 4.3 on FC6 : Build from Zero
- Authors
- Name
- Martin Andrews
- @mdda123
This was modified for the instructions given for 4.2 from the (German) blog at http://fedorawiki.de/index.php/Truecrypt
Set up yum
# yum install yum-utils
# yum install rpm-build redhat-rpm-config unifdef
Install Kernel Sources
This install the sources from the rpm downloaded into the current directory. The rpm can be discarded afterwards.
# yumdownloader --source kernel --enablerepo core-source --enablerepo updates-source
# mkdir /usr/src/redhat # due to packaging problem, I guess
# rpm -ivh kernel-$(uname -r).src.rpm
`
cd /usr/src/redhat/SPECS
rpmbuild -bp --target $(uname -m) kernel-2.6.spec
## Copy dm.h into the right place
(uname -r)-$(uname -m)/drivers/md/
cp /usr/src/redhat/BUILD/kernel-2.6.19/linux-2.6.19.## Get and unpack truecrypt sources
Get [truecrypt source](http://www.truecrypt.org/downloads.php).
tar -xfz truecrypt-4.3-source-code.tar.gz -C /tmp
Now, the kernel version is taken care of automatically - no need for a patch file.
## Build truecrypt for real
(this is now painless)
cd Linux
./build.sh
## Install truecrypt module
su - # to get /sbin/modprobe into path
./install.sh
(just accept the defaults - but consider allowing regular users to use truecrypt)
## Load truecrypt module
/sbin/modprobe truecrypt
/sbin/lsmod |grep truecrypt
truecrypt 163588 0 dm_mod 63449 3 truecrypt,dm_mirror,dm_multipath