NSLU2-Linux
view · edit · print · history

How to compil Truecrypt 7.1 on the NSLU2

Install compilation tools

apt-get install build-essential

Download dependencies


apt-get install libfuse2
apt-get install libfuse-dev
apt-get install pkg-config

cd /usr/src

# Make a dir for PKCS
mkdir PKCS
cd PKCS

wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/cryptoki.h
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/ct-kip.h
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/opt-pkcs11.h
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs-11v2-20a3.h
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs-11v2-20a3d3.h
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11.h
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11f.h
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11t-consolidated-d1.h
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11t.h
wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11t.h.org
cd ..

# Download wxGTK-2.8.7 and untar it
wget http://kent.dl.sourceforge.net/sourceforge/wxwindows/wxGTK-2.8.7.tar.gz
tar xvzf wxGTK-2.8.7.tar.gz

# Download Truecrypt 7.1 and untar it
wget "http://www.truecrypt.org/download/transient/633759d341/TrueCrypt%207.1%20Source.tar.gz"
tar xvzf "TrueCrypt 7.1 Source.tar.gz"

Not needed anymore with Truecrypt 7.1 :

!!!Modifying Crypto/Rmd160.c Go to /usr/src/truecrypt-7.1-source/Crypto and edit Rmd160.c

Find the line :

RMD160Transform ((uint32 *) ctx->state, (const uint32 *) input);

and replace it with these lines :

memcpy(ctx->buffer, input, RIPEMD160_BLOCK_LENGTH);
RMD160Transform ((uint32 *) ctx->state, (const uint32 *) ctx->buffer);

Save the file. (This patch come from this webpage : http://www.openplug.org/plugwiki/index.php/Ubuntu_TrueCrypt_Compilation(approve sites))

Truecrypt compilation

cd /usr/src/truecrypt-7.1-source
make NOGUI=1 PKCS11_INC=/usr/src/PKCS WX_ROOT=/usr/src/wxGTK-2.8.7 wxbuild 
make NOGUI=1 PKCS11_INC=/usr/src/PKCS WX_ROOT=/usr/src/wxGTK-2.8.7 WXSTATIC=1

#Test generated executable

cd Main
./truecrypt --test
Self-tests of all algorithms passed

#Installation

chown bin:bin truecrypt
chmod 755 truecrypt
cp -p truecrypt /usr/bin

Enjoy !

view · edit · print · history · Last edited by vinz2k.
Originally by vinz2k.
Page last modified on December 04, 2011, at 08:48 AM