Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: HOWTO: Compile and Install TrueCrypt 5.1a on Ubuntu 8.04 LTS (Hardy Heron)

  1. #1
    Join Date
    Apr 2006
    Location
    Italy
    Beans
    10
    Distro
    Ubuntu 8.04 Hardy Heron

    HOWTO: Compile and Install TrueCrypt 5.1a on Ubuntu 8.04 LTS (Hardy Heron)

    Hi all,
    this night after a lot of retries I finally upgraded my Ubuntu box to Hardy Heron
    As you know everytime you do an upgrade there are always some problems with software. So this morning when I woke up, I tried to mount my truecrypt volume as usually with forcefield, but I get an unknown error message from the gui. So I tryed to manually mount my volume from the command line, and I get this error message:

    Code:
    FATAL: Module truecrypt not found.
    Failed to load TrueCrypt kernel module
    After some googling, I found a guide which helps me to compile and install TrueCrypt 5.1a on my new Hardy Heron so I decided to write this howto.

    It's quite simple and it should not take a lot of time.

    So now open a terminal and start follow this guide.

    First of all install some packages with apt:

    Code:
    sudo apt-get install build-essential linux-headers-`uname -r` linux-source-2.6.24 libfuse-dev libgtk2.0-dev
    Note: If you will notice that are needed other packages please inform me.


    Then create a tmp directory in your home directory:

    Code:
    mkdir -p ~/tmp
    Now download TrueCrypt source from the official website:

    http://www.truecrypt.org/downloads2.php


    Go to the path where you saved TrueCrypt source and untar the file in your ~/tmp directory

    Code:
    tar -zvxf TrueCrypt\ 5.1a\ Source.tar.gz -C ~/tmp
    Now you should download wxAll source code. You can pick it from here:

    http://switch.dl.sourceforge.net/sou...s-2.8.7.tar.gz


    Go to the path where you saved wxAll source and untar the file in your ~/tmp directory

    Code:
    tar -zvxf wxWidgets-2.8.7.tar.gz -C ~/tmp
    Now go to your ~/tmp/truecrypt-5.1a-source directory:

    Code:
    cd ~/tmp/truecrypt-5.1a-source
    and launch this command line:

    Code:
    WX_ROOT=~/tmp/wxWidgets-2.8.7 make wxbuild
    This will build the ./wxrelease subdirectory in the truecrypt source path. You'll probably will have some warnings from the compiler, but you can safely ignore.

    Once you have your shell back, launch this command line to compile truecrypt:

    Code:
    WX_ROOT=~/tmp/wxWidgets-2.8.7 make
    Probably you will get a lots of warnings from the compiler, but you can ignore it. They are just warnings.

    Now go Main directory in TrueCrypt source:

    Code:
    cd ~/tmp/truecrypt-5.1a-source/Main
    and start truecrypt gui:

    Code:
    ./truecrypt
    If everything is ok, you should have now the truecrypt gui running.

    Now close you application from the Gnome notification area and copy your just compiled truecrypt binary in you /usr/local/bin directory:

    Code:
    sudo cp ~/tmp/truecrypt-5.1a-source/Main/truecrypt /usr/local/bin/
    Now you have truecrypt binary in your path so you can run it simply with:

    Code:
    truecrypt
    Now you can safely remove your working directories:

    Code:
    rm -rf ~/tmp/truecrypt-5.1a-source ~/tmp/wxWidgets-2.8.7
    I hope that this guide could help someone. If you notice somenthing wrong or if this guide doesn't work for you please let me know.

    Thank you,
    Stami.
    Last edited by stami; April 29th, 2008 at 11:34 AM.

  2. #2
    Join Date
    Feb 2008
    Beans
    Hidden!
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Smile Re: HOWTO: Compile and Install TrueCrypt 5.1a on Ubuntu 8.04 LTS (Hardy Heron)

    Code:
    WX_ROOT=~/tmp/wxWidgets-2.8.7 make wxbuild
    gave me some error message about missing "gtk+-2.0.pc" so i had to install "libgtk2.0-dev" from synaptic and it worked like a charm.
    thanks for the wonderful guide

  3. #3
    Join Date
    Apr 2006
    Location
    Italy
    Beans
    10
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: Compile and Install TrueCrypt 5.1a on Ubuntu 8.04 LTS (Hardy Heron)

    Quote Originally Posted by kef_kf View Post
    Code:
    WX_ROOT=~/tmp/wxWidgets-2.8.7 make wxbuild
    gave me some error message about missing "gtk+-2.0.pc" so i had to install "libgtk2.0-dev" from synaptic and it worked like a charm.
    thanks for the wonderful guide
    Thank you, I added to apt-get packages list libgtk2.0-dev

  4. #4
    Join Date
    Apr 2008
    Location
    West Coast, USA
    Beans
    1
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: Compile and Install TrueCrypt 5.1a on Ubuntu 8.04 LTS (Hardy Heron)

    Thank you! This worked perfectly for me. It really is a great guide!

  5. #5
    Join Date
    Jun 2007
    Beans
    111

    Re: HOWTO: Compile and Install TrueCrypt 5.1a on Ubuntu 8.04 LTS (Hardy Heron)

    This worked for me as well. It was a lifesaver. Thankyou!

    BUT, why on EARTH is an application that is so essential as TrueCrypt NOT part of the Ubuntu repository? I know it's not GPL, but it is open source. Every time I update to a new version of Ubuntu I have to jump through hoops to get truecrypt working again so I can get at all of the data on my encrypted drives. This seems like something that should be part of the repository at least, if not part of the basic installation.

  6. #6
    Join Date
    Nov 2006
    Location
    Arizona bush
    Beans
    Hidden!
    Distro
    Kubuntu 11.04 Natty Narwhal

    Unhappy Re: HOWTO: Compile and Install TrueCrypt 5.1a on Ubuntu 8.04 LTS (Hardy Heron)

    I upgraded to 8.04 yesterday knowing I'd need to compile and reinstall truecrypt being as it's kernel specific. Thanks for the Howto BUT: I too needed to install the libgtk stuff to get the wxbuild (which worked). Then when I went to the "make" step it couldn't finish because it couldn't find "fuse.pc". I've done some searching but can't figure out what "fuse" package I need for that. I have searched my system for fuse.pc and it isn't anywhere - except "fuse" in the linux source headers (/usr/src/...). According to Synaptic I have fuse-utils and libfuse2 but neither supplies that file.

    Anyone out there who can help?

  7. #7
    Join Date
    Nov 2006
    Location
    Arizona bush
    Beans
    Hidden!
    Distro
    Kubuntu 11.04 Natty Narwhal

    Re: HOWTO: Compile and Install TrueCrypt 5.1a on Ubuntu 8.04 LTS (Hardy Heron)

    Never mind ... I just tried the deb package and it actually worked! Hmmm. I was sure it wouldn't work with the new kernel. Well, I won't complain except to myself for not trying it first.

    Thanks anyway.

    So the deb package for truecrypt 5.1a <http://www.truecrypt.org/downloads.php> works on Hardy! At least on my machine (Toshiba Satellite)
    Last edited by pennygov; April 27th, 2008 at 11:56 PM. Reason: remove address to smilie

  8. #8
    Join Date
    Jan 2007
    Beans
    232
    Distro
    Kubuntu

    Re: HOWTO: Compile and Install TrueCrypt 5.1a on Ubuntu 8.04 LTS (Hardy Heron)

    Thanks for the guide. Once I upgraded to Hardy Heron, some things were broken, one of them truecrypt. Thanks to your guide, I now have a nice GUI to go with truecrypt, but I still can't mount a volume (not even on the command line), I am getting the same errors as before.
    Perhaps another reboot will fix it. If not, I will need to do some Googling for a fix.

  9. #9
    Join Date
    Jan 2007
    Beans
    232
    Distro
    Kubuntu

    Re: HOWTO: Compile and Install TrueCrypt 5.1a on Ubuntu 8.04 LTS (Hardy Heron)

    Quote Originally Posted by Pollywoggy View Post
    Thanks for the guide. Once I upgraded to Hardy Heron, some things were broken, one of them truecrypt. Thanks to your guide, I now have a nice GUI to go with truecrypt, but I still can't mount a volume (not even on the command line), I am getting the same errors as before.
    Perhaps another reboot will fix it. If not, I will need to do some Googling for a fix.
    I think I know why it did not work before, I needed to enter the root password on the second prompt, not my volume password.

    Any idea how to get this to work on the command line as well?
    I am going to add a line for truecrypt to sudoers so that only trusted users can use it, without having to set the binary suid root.

  10. #10
    Join Date
    Apr 2006
    Location
    Italy
    Beans
    10
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: Compile and Install TrueCrypt 5.1a on Ubuntu 8.04 LTS (Hardy Heron)

    Quote Originally Posted by pennygov View Post
    Never mind ... I just tried the deb package and it actually worked! Hmmm. I was sure it wouldn't work with the new kernel. Well, I won't complain except to myself for not trying it first.

    Thanks anyway.

    So the deb package for truecrypt 5.1a <http://www.truecrypt.org/downloads.php> works on Hardy! At least on my machine (Toshiba Satellite)
    Thank you for posting your expirience. However I wrote this howto because the deb package didn't works for me.
    Of course if the deb package works, you can simply install it without follow this guide.

    Thanks again,
    Stami.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •