0

Hi
I wonder how to compile Truecrypt from source in linux or kali linux?
I already downloadet the source code of TrueCrypt 7.1a Source.tar.gz here:
https://www.grc.com/misc/truecrypt/truecrypt.htm

I think we have also to download Cryptographic Token Interface

$ 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.h

Anyone can do it step by step

I appiciate your help

3
Contributors
12
Replies
46
Views
2 Years
Discussion Span
Last Post by rubberman
Featured Replies
  • 1

    You should be able to build it by extracting the directory with the command: tar -zxvf "TrueCrypt 7.1a Source.tar.gz" After that, cd into the source directory: cd truecrypt-7.1a-source Then run the "make" command. Do note I just tried it on my RHEL 6.6 clone system and it had some errors … Read More

  • 1

    Ok. I'm almost there. The three pkcs11.. header files have to go into the TrueCrypt source/Crypto directory. Then you need to install the Linux native assembler nasm, and the fuse-devel (developer) package that has the fuse headers. After all that, it successfully built for me, though I haven't tried running … Read More

  • 1

    As I mentioned before, you need to install all the `pkcs11*.h` files in the source/Crypto directory. That should allow the CFLAGS options in the Makefile to find them for the build. Read More

0

I am just wondering why do you want to do that, truecrypt is already pre-installed on kali?

0

Because I'm just testing som security issues

Edited by tony75

1

You should be able to build it by extracting the directory with the command: tar -zxvf "TrueCrypt 7.1a Source.tar.gz"

After that, cd into the source directory: cd truecrypt-7.1a-source
Then run the "make" command. Do note I just tried it on my RHEL 6.6 clone system and it had some errors with missing header files. I will try to resolve those and get back to you. You can also download the pre-built Linux executables and run those.

Re-reading your original post, those headers you need to wget are those that I am missing. I'll install those and see what happens.

Edited by rubberman

1

Ok. I'm almost there. The three pkcs11.. header files have to go into the TrueCrypt source/Crypto directory. Then you need to install the Linux native assembler nasm, and the fuse-devel (developer) package that has the fuse headers. After all that, it successfully built for me, though I haven't tried running it yet. :-) You'll find the linked executable "truecrypt" in Main under the source directory. Ok, I was able to run it with the --help option and get the command-line options.

Edited by rubberman

0

Thanks rubberman
I wonder if its work now for you?
Have you download links for Linux native assembler nasm and the fuse-devel (developer) package that has the fuse headers.

How you fixed your error?

Edited by tony75

0

When I ran "make"
I got this error anyone know how to solve it?

truecrypt-7.1a-source/Common/SecurityToken.h:43:21: fatal error: pkcs11.h: No such file or directory
 # include <pkcs11.h>
                     ^
compilation terminated.
make[1]: *** [Keyfile.o] Error 1
make: *** [all] Error 2
1

As I mentioned before, you need to install all the pkcs11*.h files in the source/Crypto directory. That should allow the CFLAGS options in the Makefile to find them for the build.

0

Thanks, yes I do it now but I got my secon error?
However I Add it to the LFLAGS in the Makefile:

export LFLAGS := -ldl



/truecrypt-7.1a-source/Volume/Volume.a(SecurityToken.o): undefined reference to symbol 'dlopen@@GLIBC_2.1'
/usr/lib/i386-linux-gnu/libdl.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [truecrypt] Error 1
make: *** [all] Error 2

Edited by tony75

0

DO NOT modify the Makefile! That is unnecessary if you put the headers in the correct place. I didn't need to make any changes to the Makefile on my system. I did exactly what I said in my previous posts, and it built and ran just fine!

0

Thanks for your help rubberman
I'm doing exact as you are saying but I still get this error?
By the way I run ubuntu 14

Desktop/truecrypt-7.1a-source/Volume/Volume.a(SecurityToken.o): undefined reference to symbol 'dlopen@@GLIBC_2.1'
//lib/i386-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [truecrypt] Error 1
make: *** [all] Error 2

Edited by tony75

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.