Saturday, June 20, 2009

Truecrypt on Fedora 11

Since Truecrypt doesn't officially provide RPM packages for Fedora, you are left with a choice of either compiling your own from the source or using openSUSE RPM (I read somewhere that it would work though I haven't tried it myself).

Well, I chose to compile version 6.1a of Truecrypt on Fedora 10 which worked pretty well. I used these instructions from Penguin Enclave but perhaps for a bug in Truecrypt code, compiling it on Fedora 11 failed.

Fortunately, the version 6.2 has resolved the issue and now it can be easily compiled. Please refer to Penguin Enclave's original post for instructions with the only modification being patching of Common/SecurityToken.cpp:
diff -urN truecrypt-6.2-source.orig/Common/SecurityToken.cpp truecrypt-6.2-source/Common/SecurityToken.cpp
--- truecrypt-6.2-source.orig/Common/SecurityToken.cpp    2009-05-10 17:38:36.000000000 +1000
+++ truecrypt-6.2-source/Common/SecurityToken.cpp    2009-06-20 18:05:33.873119148 +1000 
@@ -657,8 +657,8 @@ 
TC_TOKEN_ERR (CKR_CRYPTOKI_ALREADY_INITIALIZED) 
TC_TOKEN_ERR (CKR_MUTEX_BAD) 
TC_TOKEN_ERR (CKR_MUTEX_NOT_LOCKED) 
-            TC_TOKEN_ERR (CKR_NEW_PIN_MODE) 
-            TC_TOKEN_ERR (CKR_NEXT_OTP) 
+//            TC_TOKEN_ERR (CKR_NEW_PIN_MODE) 
+//            TC_TOKEN_ERR (CKR_NEXT_OTP) 
TC_TOKEN_ERR (CKR_FUNCTION_REJECTED) 

#undef        TC_TOKEN_ERR 

Links:
Truecrypt 6.1 Install Guide for Fedora 10
Bug 496423 related to compilation of Truecrypt on Fedora 11
Truecrypt official website

No comments:

Post a Comment