TrueCrypt is Free open-source disk encryption software for Windows XP/2000/2003 and Linux.
Main Features:
* Creates a virtual encrypted disk within a file and mounts it as a real disk.
* Encrypts an entire hard disk partition or a device, such as USB flash drive.
* Encryption is automatic, real-time (on-the-fly) and transparent.
* Provides two levels of plausible deniability, in case an adversary forces you to reveal the password:
1) Hidden volume (steganography).
2) No TrueCrypt volume can be identified (volumes cannot be distinguished from random data).
* Encryption algorithms: AES-256, Blowfish (448-bit key), CAST5, Serpent, Triple DES, and Twofish.
Mode of operation: LRW (CBC supported as legacy).
How to install TrueCrypt on NEW version of Ubuntu, including new version of Ubuntu Breezy kernel (this is important, since Breezy updated kernel through security updates).
Download TrueCrypt code at: http://www.truecrypt.org/downloads.php (tar.gz version) to your home directory. Assume you have version 4.1 (of TrueCrypt)
cd
tar xvfz truecrypt-4.1-source-code.tar.gz
Check the version of our Linux kernel:
uname -r
For instance, it is 2.6.12-10-386 - so we have to install source for 2.6.12:
sudo apt-get install linux-source-2.6.12
cd /usr/src/
sudo tar xvjf linux-source-2.6.12.tar.bz2
Create symbolic link:
sudo ln -s linux-source-2.6.12 linux
Install tools needed for compiling:
sudo apt-get install build-essential
Check wit which version our kernel was compiled:
cat /proc/version
output is something like that:
Linux version 2.6.12-10-386 (buildd@terranova) (gcc version 3.4.5 20050809 (prerelease) (Ubuntu 3.4.4-6ubuntu8.1)) #1 Sat Mar 11 16:13:17 UTC 2006
So we need gcc 3.4 (subversion 3.4.x is not important). Let's install it:
sudo apt-get install gcc-3.4
Let's use it and compile the modules (everything should be set to default - so answer with pressing "enter" key):
export CC=gcc-3.4
sudo make -C /usr/src/linux-source-2.6.12 config modules
Now, install TrueCrypt:
cd
cd truecrypt-4.1-source-code/Linux/
sudo ./build.sh
sudo ./install.sh
You should set this also:
Install man page to [/usr/local/man]: /usr/share/man
That's it.
Now the funniest part: mounting TC volume from the USB key to /mnt:
sudo truecrypt /media/MATTHAI/TrueCrypt/mobile.tc /mnt/
Enter password for '/media/MATTHAI/TrueCrypt/mobile.tc':
List all mounted TrueCrypt partitions:
sudo truecrypt -vl
/dev/mapper/truecrypt0:
Volume: /media/MATTHAI/TrueCrypt/mobile.tc
Type: Normal
Size: 15728128 bytes
Encryption algorithm: AES
Mode of operation: LRW
Read-only: No
Hidden volume protected: No
Let's check the encrypted files:
cd /mnt/
ls
password.txt secret.txt System Volume Information
Unmount the drive:
cd
sudo truecrypt -d
Check if it is really unmounted:
ls -l /mnt/
total 0
Have fun and also check the documentation: http://www.truecrypt.org/documentation.php
Bookmarks