Jump to content


Truecrypt?


42 replies to this topic

#1 bigduke6

    New member

  • Members
  • 5 posts

Posted 01 November 2007 - 11:34 PM

I would really appreciate somebody's help here; has anyone successfully installed Truecrypt on their eee? I'm not sure if it's already in the repositories or if it would need to be compiled but I'm trying to confirm that this program will work on the eee before I buy one. Obviously I could install XP and get TC working but I'd prefer to keep linux installed.

Thanks in advance.

#2 jerfos

    Advanced Member

  • Members
  • PipPipPip
  • 71 posts

Posted 02 November 2007 - 12:14 AM

I am interested in this also. Should get my Eee PC tomorrow and may get a chance to try it this weekend. But I'm a relative noob with Linux so there might be a learning curve.

#3 snerfu

    Member

  • Members
  • 14 posts

Posted 02 November 2007 - 12:46 PM

I can't speak for truecrypt, but I don't see why it wouldn't work. I installed slackware and encrypted my entire root and home filesystems with AES 256. There is a howto here and I am sure there is an easy howto for other distributions.

#4 polocanada

    Senior Member

  • Members
  • 116 posts

Posted 14 November 2007 - 06:02 PM

Seems to me that TrueCrypt will not run on eeepc. The Kernel version is lower than required.

You have 3 options:
1) use different software instead
2) compile your kernel on eeepc and hope it will not break ;-)
3) wait and see whether there is upgrde from Asus/Xandros.

-polo-

----------

/home/user/My Documents/truecrypt-4.3a-source-code/Linux> sudo ./build.sh
Checking build requirements...
Linux kernel (2.6.21.4-eeepc) source directory [/usr/src/linux]: /lib/modules/2. 6.21.4-eeepc/
Error: Kernel source version in /lib/modules/2.6.21.4-eeepc/ is not 2.6.21.4-eee pc


/home/user/My Documents/truecrypt-4.3a-source-code/Linux> sudo ./build.sh
Checking build requirements...
Linux kernel (2.6.21.4-eeepc) source directory [/usr/src/linux]: /lib/modules/2. 6.21.4-eeepc/kernel/
Error: Kernel source version in /lib/modules/2.6.21.4-eeepc/kernel/ is not 2.6.2 1.4-eeepc


------------

installation file says:

Installing TrueCrypt:
---------------------

To build and install TrueCrypt, execute the following commands:

cd Linux
./install.sh

/lib/modules/2.6.21.4-eeepc/kernel

The installation script will first verify requirements for running TrueCrypt.
If successful, you will be prompted for installation options and the
installation will proceed.


Requirements for Running Truecrypt on Linux
-------------------------------------------

- Linux kernel version 2.6.5 or compatible

- Device mapper (dmsetup, http://sources.redhat.com/dm) and loop device
(losetup) infrastructure, which are available in all major Linux
distributions

Edited by polocanada, 14 November 2007 - 06:03 PM.


#5 chele

    New member

  • Members
  • 7 posts

Posted 26 November 2007 - 03:49 AM

dm-crypt is a normal part of the Linux for a while now. However, the eeepc does not include the needed kernel modules, so someone would need to build those in order to use it.

#6 quant

    Senior Member

  • Members
  • 103 posts

Posted 26 November 2007 - 03:59 AM

You can build the dm-crypt using stock 2.6.21.4 source and config file from /boot.

#7 Kibobo

    Senior Member

  • Members
  • 295 posts
  • LocationFrance

Posted 12 December 2007 - 08:15 PM

http://kibobo.free.fr/EEE/truecrypt

Posted Image

Install dm-mod.ko in your modules directory (/lib/modules/2.6.21.4-eeepc/kernel/drivers/md for example).

"Integrate" the module: 'depmod -a'

Install truecrypt: dpkg -i truecrypt*.deb

Replace /usr/share/truecrypt/kernel/truecrypt-2.6.15.ko by my truecrypt.ko.

Have fun

PS: don't ask to me how to use it, I have never used it before, just compiled and tested ;)

EDIT: in fact, dm-crypt is not needed, removed.

Edited by Kibobo, 13 December 2007 - 08:13 AM.


#8 Neil

    EEEmazing User

  • Moderators
  • 6,897 posts
  • LocationBerkshire, England

Posted 13 December 2007 - 10:01 PM

Thanks, Kibobo - all installed. I just needed to use /sbin/depmod, rather than simply depmod.

Just need to work out how to use it without a GUI!

#9 Kibobo

    Senior Member

  • Members
  • 295 posts
  • LocationFrance

Posted 13 December 2007 - 10:09 PM

Result of :
su
echo $PATH
?

Edited by Kibobo, 13 December 2007 - 10:12 PM.


#10 Neil

    EEEmazing User

  • Moderators
  • 6,897 posts
  • LocationBerkshire, England

Posted 13 December 2007 - 10:11 PM

/usr/local/bin:/usr/bin:/bin:/usr/games

Probably need :/sbin there too...

#11 Kibobo

    Senior Member

  • Members
  • 295 posts
  • LocationFrance

Posted 13 December 2007 - 10:12 PM

I have edited

#12 Neil

    EEEmazing User

  • Moderators
  • 6,897 posts
  • LocationBerkshire, England

Posted 13 December 2007 - 10:13 PM

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11


Hmm... so it is there, then.

#13 Neil

    EEEmazing User

  • Moderators
  • 6,897 posts
  • LocationBerkshire, England

Posted 13 December 2007 - 10:14 PM

Perhaps I wasn't running it with sudo....

#14 kwkh

    New member

  • Members
  • 4 posts

Posted 15 December 2007 - 04:56 AM

Thanks Kibobo! it is working. Keith

#15 nickca

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts

Posted 15 December 2007 - 05:23 AM

Thanks Kibobo, I needed this. Did you install a build environment on your eee and build it that way, or did you compile it on another machine? If the latter, any tips on setting up a build environment for the eee? I've got another Linux box running a distro pretty close to Debian etch (KnoppMyth), but not close enough to the eee's Xandros to build stuff without problems.
eeePC 4G 7B - 1GB DDR667 RAM - Internal USB hub w/32GB (2x16GB) flash, Bluetooth, spare internal USB connection

#16 Kibobo

    Senior Member

  • Members
  • 295 posts
  • LocationFrance

Posted 15 December 2007 - 09:08 AM

I have no EEE (out in France 01/24/2008 :/)

I use one of my Linux box under Debian Etch to compile modules and progs for the EEE.
Since Xandros OS is based on Etch, there is no problem with the libraries version (especially libc).

Edited by Kibobo, 15 December 2007 - 09:12 AM.


#17 nibl

    Member

  • Members
  • 19 posts

Posted 16 December 2007 - 05:35 AM

Quote

EDIT: in fact, dm-crypt is not needed, removed.
On the Eee, I need to load dm-crypt or the container cannot be mounted.

Many Thanks, Kibobo. It works great on the Eee.

Btw, where is the place to autoload modules at boot time? /etc/modules?

#18 Kibobo

    Senior Member

  • Members
  • 295 posts
  • LocationFrance

Posted 16 December 2007 - 09:18 AM

Strange, I have not the dm-crypt module and I can can mount my container.

autoload is not necessary, truecrypt loads the right module itself.

EDIT: on my other VPC I have this message after entering the password "Failed to assign loopback device for file-hosted volume" !?
Posted Image

EDIT2: losetup gives me "ioctl: LOOP_SET_FD: Invalid argument"
http://forum.eeeuser...pic.php?id=2199

Really strange, I have not this problem on my other VPC, the only difference is that this one has no unionfs.

EDIT3: ok, according to my friend google, unionfs is not compatible with losetup (...)

Quote

"If you want to use losetup, then you need to define -DSUPPORT_BROKEN_LOSETUP. You will be able to use it read-only, but when you try to use it read-write, you will get an Oops. This should eventually be fixed when we have our own address-space operations (so that we can support sendfile)."
One more reason to remove unionfs (http://forum.eeeuser...php?id=2650&p=1)

Then, truecrypt is not compatible with the stock EEE xandros.

Edited by Kibobo, 16 December 2007 - 10:17 AM.


#19 drware

    New member

  • Members
  • 7 posts

Posted 19 December 2007 - 07:31 PM

Works great now that I removed unionfs. Thanks for the write up and files!

#20 nibl

    Member

  • Members
  • 19 posts

Posted 19 December 2007 - 08:35 PM

Quote

Then, truecrypt is not compatible with the stock EEE xandros.
I don't understand. I am using Truecrypt on the stock Eee Xandros. I just installed according to your instructions. I did need dm-crypt or Truecrypt failed after entering the password.

Do you mean Truecrypt is only pretending to work and not really encrypting?

How can I be sure it is working properly?

Thanks.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users