Freitag, 20. Juli 2012

Compile Truecrypt on Raspberry Pi

I wanted to run Truecrypt on my Raspberry Pi. But there is no precompiled package which you could simply install with apt-get. So you have to compile it yourself - which take a few hours. If you just want the truecrypt binary for Raspbian/Wheezy then you can download them here.
The first thing you need to do is to get all needed dependencies. Thereby you have to compile one dependency yourself. We start with this dependency.

How to setup PKCS11
Truecrypt needs three header files (pkcs11.h, pkcs11f.h, pkcs11t.h) which you can download from this location: ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v211/
Put them into a directory and then set the PKCS11_INC variable.

export PKCS11_INC=/home/pi/pkcs11

How to compile Truecrypt
First download the source code: http://www.truecrypt.org/downloads2 I used 7.1a. Unpack it, go into the unpacked directory and execute these commands.