Installing TrueCrypt on Fedora 17 Remix - Raspberry Pi

Posted
Comments: None

Starting/Overview

A lot of site give you hints of how to install TrueCrypt on a Raspberry Pi, but I could not find any that took me step-by-step or that worked on Fedora Remix. So here is an attempt to do that. I’m not an expert on these commands, but hope that organizing things here helps others.

After trying some methods which suggested/required building wxWidgets that eventually lead to errors when building TrueCrypt, I decided to try another approach – which is much more straightforward.

Notes worth reading

  • This was done on a clean install of Fedora Remix 17 for Rasberry Pi. Please note, some of the libraries installed (gcc, etc.) may already be on your system if you have installed other programs or have a different configuration or build.
  • I ran this though an SSH session. I tried as well on the terminal in the GUI, but things seemed to run noticeably slower.
  • During all of this, I received a few messages like: note: the mangling of âva_listâ has changed in GCC 4.4 Not sure these have any adverse meaning.
  • To keep things simple, I just signed in as root and created a folder called tc in my home folder. So when you see any reference to /root/tc/... that could be replaced with your own location. You might install it as /home/pi/ — However, it’s important to note that some of these commands are run as sudo. There may be reasons you don’t want to do this as root.

Let’s Start

Starting here:

pwd
/root/tc/

Stuff you need, but might not have

Note: If you want, you could combine these into one yum command.

Install gcc

sudo yum install gcc

This is where you get g++ (it’s not yum install g++ like it is on apt-get):

sudo yum install gcc-c++
sudo yum install gtk+
sudo yum install gtk+-devel gtk2-devel

These files are needed, supposedly, to build TrueCrypt

sudo yum install fuse fuse-devel

wxWidgets

Unlike trying to configure/compile, simply yum them :

sudo yum install wxGTK wxGTK-devel

much easier

PKCS

mkdir pkcs11
cd pkcs11
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/*.h
export PKCS11_INC=/root/tc/pkcs11/

Make TrueCrypt

Downloading the TrueCrypt Source

This part is a little bit tough. Go to http://www.truecrypt.org/downloads2 and download the “Mac OS X / Linux (.tar.gz)” version of Truecrypt. The challenge here is that they require you “acknowledge license” so I don’t think you can do a direct wget. So you may need to find some method to get the file to your Raspberry Pi. I was in the command line and so I ended up using DropBox to create a link that would work with wget.

The file, once done should be something like truecrypt-7.1a-source.tar.gz then you just unzip and un-tar the file

gzip -d truecrypt-7.1a-source.tar.gz
tar -xf truecrypt-7.1a-source.tar

Make TrueCrypt

Go to the folder you un-tar’d a few steps back

cd truecrypt-7.1a-source

Now we build/make something. This takes a little while.

make

if you receive a PKCS11 file not found type of error, just make sure you run this:

export PKCS11_INC=/root/tc/pkcs11/

then try again:

make

The whole make process can take a little while (an hour or more). If all goes well, you should end with something like:

Compiling VolumeFormatOptionsWizardPage.cpp
Compiling VolumeLocationWizardPage.cpp
Compiling VolumePasswordWizardPage.cpp
Compiling VolumeSizeWizardPage.cpp
Compiling WizardFrame.cpp
Linking truecrypt

Where is TrueCrypt?

In the folder that you ran the make command, you need to copy the following file to a better place Main/truecrypt so I did something like this:

cd/root/tc/
cp /root/tc/truecrypt-7.1a-source/Main/truecrypt .

I know have a file in my /root/tc/ folder called “truecrypt” and you should be able to get a list of commands using

./truecrypt

You can now move this file to /usr/bin/ or somewhere else depending on your needs.

Using TrueCrypt

We should now have a working build of TrueCrypt. This works on the command line, but I don’t think it runs on the GUI, but have not tested.

Let’s create a test file conatiner:

./truecrypt --create test.tc

This will take you through all the prompts to create your container. Next you will want to mount the container.

./truecrypt test.tc

On my system this caused the container to exist here: /media/truecrypt1/

Hope this helps!

Special thanks to:

Reinhard Seiler
Thomas Loughlin
Ken Fallon
RaspberryPi.org

Author
Categories

Comments

Commenting is closed for this article.

Comments

← Older Newer →