Installation de TrueCrypt.
1) Création du répertoire de travail :
pi@raspberrypi ~ $ mkdir TRUECRYPT pi@raspberrypi ~ $ cd TRUECRYPT/ pi@raspberrypi ~/TRUECRYPT $
2) Installation des paquetages de base :
pi@raspberrypi ~/TRUECRYPT $ sudo apt-get install libgtk2.0-dev libfuse-dev nasm libwxgtk2.8-dev
3) Installation de WxWidget :
– Téléchargement :
pi@raspberrypi ~/TRUECRYPT $ wget http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.12.tar.gz pi@raspberrypi ~/TRUECRYPT $ tar xvfz wxWidgets-2.8.12.tar.gz pi@raspberrypi ~/TRUECRYPT $ cd wxWidgets-2.8.12
– Configuration :
pi@raspberrypi ~/TRUECRYPT/wxWidgets-2.8.12 $ ./configure
– Compilation :
pi@raspberrypi ~/TRUECRYPT/wxWidgets-2.8.12 $ make pi@raspberrypi ~/TRUECRYPT/wxWidgets-2.8.12 $ cd ..
4) Installation de Pkcs11 :
pi@raspberrypi ~/TRUECRYPT $ mkdir pkcs11 pi@raspberrypi ~/TRUECRYPT $ cd pkcs11/ pi@raspberrypi ~/TRUECRYPT/pkcs11 $ wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v211/pkcs11.h pi@raspberrypi ~/TRUECRYPT/pkcs11 $ wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v211/pkcs11f.h pi@raspberrypi ~/TRUECRYPT/pkcs11 $ wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v211/pkcs11t.h
5) Télécharger TrueCrypt :
Page : http://www.truecrypt.org/downloads2
pi@raspberrypi ~/TRUECRYPT $ links www.truecrypt.org/downloads2 pi@raspberrypi ~/TRUECRYPT $ ls -l total 1904 -rw-r--r-- 1 pi pi 1949303 juil. 17 19:39 TrueCrypt 7.1a Source.tar.gz pi@raspberrypi ~/TRUECRYPT $ tar xvfz TrueCrypt\ 7.1a\ Source.tar.gz pi@raspberrypi ~/TRUECRYPT $ cd truecrypt-7.1a-source/
6) Compilation :
– Configuration :
pi@raspberrypi ~/TRUECRYPT/truecrypt-7.1a-source $ export PKCS11_INC=/home/pi/TRUECRYPT/pkcs11/
– Modification :
Pour éviter l’erreur suivante lors de la compilation :
../Common/SecurityToken.cpp: In member function ‘TrueCrypt::Pkcs11Exception::operator std::string() const’: ../Common/SecurityToken.cpp:660:4: error: ‘CKR_NEW_PIN_MODE’ was not declared in this scope ../Common/SecurityToken.cpp:661:4: error: ‘CKR_NEXT_OTP’ was not declared in this scope ../Common/SecurityToken.cpp:662:4: error: ‘CKR_FUNCTION_REJECTED’ was not declared in this scope make[1]: *** [../Common/SecurityToken.o] Erreur 1 make: *** [all] Erreur 2
Ouvrir :
Common/SecurityToken.cpp
Chercher :
TC_TOKEN_ERR (CKR_NEW_PIN_MODE) TC_TOKEN_ERR (CKR_NEXT_OTP) TC_TOKEN_ERR (CKR_FUNCTION_REJECTED)
Remplacer par :
/*TC_TOKEN_ERR (CKR_NEW_PIN_MODE)*/ /*TC_TOKEN_ERR (CKR_NEXT_OTP)*/ /*TC_TOKEN_ERR (CKR_FUNCTION_REJECTED)*/
– Compilation en prenant en compte la librairie wxWidget :
pi@raspberrypi ~/TRUECRYPT/truecrypt-7.1a-source $ make NOGUI=1 WX_ROOT=/home/pi/TRUECRYPT/wxWidgets-2.8.12 wxbuild
– Compilation de TrueCrypt:
pi@raspberrypi ~/TRUECRYPT/truecrypt-7.1a-source $ make NOGUI=1 WXSTATIC=1
7) Installation :
pi@raspberrypi ~/TRUECRYPT/truecrypt-7.1a-source $ sudo cp Main/truecrypt /usr/local/bin/ pi@raspberrypi ~/TRUECRYPT/truecrypt-7.1a-source $ cd
8) Vérification :
pi@raspberrypi ~ $ truecrypt --version TrueCrypt 7.1a
8) Liens :
http://www.carrier-lost.org/blog/raspberry-pi-truecrypt-on-raspbian
http://karlherrick.com/dev/2013/01/21/compiling-truecrypt-on-raspberry-pi/