| 1   2     3   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   EasyCrypt Frontend for TrueCrypt (https://talk.maemo.org/showthread.php?t=15984)

Securix 2008-01-31 20:30

EasyCrypt Frontend for TrueCrypt
 
The original thread on TrueCrypt got me motivated to attempt another porting endeavor, so I've started trying to Hildonize EasyCrypt.

It's not as easy as I thought. I have very very little experience in Python, GTK or Hildon, but I'm slowly making progress.

EasyCrypt seems to run in Scratchbox but still crashes with certain things. However, it DOES seem to fire up on the N800....but the original code places the icon and relevant code on the status bar. The icon expects a right-click, which can obviously be done within Xephyr, but not on the N800. I think there's a specific way to code status bar button functions, but I haven't even tried that yet. Is there a way to convert the code to use a tap instead of right click?

It also looks for gksudo (gksu) which I've also started trying to port. Not sure if there's an alternative.

If anyone would like to help get this going, please let me know.

In any case, here are some promising screenshots...*FAR* from a finished product:

http://i81.photobucket.com/albums/j2...a/ezcrypt1.png
http://i81.photobucket.com/albums/j2...a/ezcrypt2.png
http://i81.photobucket.com/albums/j2...a/ezcrypt3.png

sgosnell 2008-01-31 20:58

Re: EasyCrypt Frontend for TrueCrypt
 
Generally a right-click on a touchscreen is done by tapping and holding. Just put the stylus where you want the right-click, and hold it in place until the context menu comes up, or whatever is supposed to happen, happens. Whether this willl work for Easycrypt, I don't know.

Securix 2008-01-31 21:34

Re: EasyCrypt Frontend for TrueCrypt
 
Unfortunately, tap and taphold do nothing.

I noticed most of the hildon-status-bar items refer to a .so library file. Does that always need to be the case?

UPDATE:

Well, I installed VNC and was able to right-click on the EasyCrypt icon and pop the menu open. So it does wait for a right-click. I just haven't figured out how to convert it to a tap :)

The create new crypt menu function crashes and open crypt relies on gksudo. I'm making progress though.

http://i81.photobucket.com/albums/j2...a/ezcrypt6.png

UPDATE:

I got the tap menu working and am fixing/converting more of the functionality to work with the N800. If anyone's interested in testing this with me, I will post when I have a package available.

The author Steven Harper has given his nod and support for the project.

Securix 2008-02-06 05:13

Re: EasyCrypt Frontend for TrueCrypt
 
I have some new screenshots - getting close to trying to package a test version...is anyone interested in using this app as a front end to TrueCrypt?

http://s81.photobucket.com/albums/j2...ramaglia/N800/

OSEmuTech 2008-02-06 05:41

Re: EasyCrypt Frontend for TrueCrypt
 
Me! :p

I am really looking forward to using this. I have been using the Windows version for around two years.

GeraldKo 2008-02-06 06:38

Re: EasyCrypt Frontend for TrueCrypt
 
Securix, if you're asking if we N800 users on this forum would find it useful to have a GUI encryption approach available to us, such as you show in your screenshots ... then, YES, I would love to have a relatively simple, elegant way to store some files as encrypted on a device I carry all over the place! I'm not a Linux user, so a GUI would be great.

megabyte405 2008-02-06 07:13

Re: EasyCrypt Frontend for TrueCrypt
 
When you're developing in scratchbox, remember these two tips. Do it in x86 mode, and use armel mode only for building for the device and thinking, ok, does it start? In both cases, testing is buggy, and there are more crashes on the emulator than the device, but even more so in the armel case.

Secondly, don't just execute the program, do run-standalone.sh ./whatever to enable hildon theme and who knows what else - I can see in your first screen shots you didn't do that, or for some reason Hildon didn't love you at that point :(

It seems like you've gotten it figured out, but all those status icons are normally just a single tap to open the menu. I think you need some hildon magic to selectively enable the tap-hold thing.

Good luck!

Securix 2008-02-06 16:48

Re: EasyCrypt Frontend for TrueCrypt
 
Ya, the first few screenshots were a very barely Hildonized version running in ARMEL not in run-standalone mode. I was a complete Maemo n00b at that point :) I still am really am but this little endeavor is really helping me learn quickly.

The very latest shots are from my N800, and I've been doing 100% of my debugging on N800 directly. I figured out the tap click by changing the action from "popup-menu" to "activate" but the stylus needs to be held down on the menu otherwise if you release the stylus, the menu disappears. I've read that this is a bug in OS2008 but I don't know if that was in reference to some other problem.

Also, Steve released an update over the weekend so I'm trying to find out from him how much of the changes I can should merge into my port before I release a test.

Oh, and I whipped out my N800 at a job interview yesterday (for a Linux Contractor) to a very surprised manger. She was discussing how her team had migrated to high-density HP blade servers and commented on how small and powerful servers had gotten. I said "Speaking of... look, I have a web server in my pocket!" I think I got the job :)

miind 2008-02-07 06:33

Re: EasyCrypt Frontend for TrueCrypt
 
Great work securix, do you have the software in a repository somewhere? Whould be nice with a dailybuild kind of thing for this! I think theres a lot of users out there that need encryption for their pocketdata.

locutus 2008-02-07 23:29

Re: EasyCrypt Frontend for TrueCrypt
 
Yea, I am also waiting for this app since I've seen this thread.

Securix 2008-02-07 23:41

Re: EasyCrypt Frontend for TrueCrypt
 
Question to those who would like to try this:

Do you already have Mike Saunby's TrueCrypt package installed?

Do you want the EasyCrypt package to include TrueCrypt or just flag TrueCrypt as a required dependency?

GeraldKo 2008-02-08 00:34

Re: EasyCrypt Frontend for TrueCrypt
 
I do not have TrueCrypt, and I prefer including it in EasyCrypt for one easy install.

Securix 2008-02-08 04:41

Re: EasyCrypt Frontend for TrueCrypt
 
Just an aside....

TrueCrypt 5.0 was officially released a few days ago.

I haven't tried the Windows version or tried compiling for x86 Linux yet, but as I understand it, there's some controversy over the lack of a true command line and the switch to /dev/loopX instead of /dev/mapper/mount.

I haven't seen the Linux GUI but apparently it uses wxWidgets. I'm going to try to see if I can get it working in Scratchbox in between cycles....

miind 2008-02-08 08:29

Re: EasyCrypt Frontend for TrueCrypt
 
I just tried the TC5 on windows and it seems to work just fine. Guess it whould be easier to maintain a nice truecrypt for maemo if we just use the builtin linux gui.. Good luck!

Securix 2008-03-21 04:42

Re: EasyCrypt Frontend for TrueCrypt
 
Ok....

After several months of tweaking, then losing interest, then landing a new job, then more tweaking, I have posted my first attempt at EasyCrypt. Please read the README and INSTALL files on my website carefully first.

The deb package seems to install properly on my N800 so let me know if you run into any issues installing.

As requested, this package *INCLUDES* the Truecrypt 4.3a executable, the related kernel module and the device mapper stuff. EasyCrypt relies on these to be in their proper locations to work correctly. They are compiled for 2.6.21-omap1.

Remember that you need to be able to run Truecrypt with root permissions (at least as far as I know) and so some lines need to be added to /etc/sudoers. All of this is in the INSTALL file.

I'll consider making a short YouTube video or detailed screen caps if anyone wants a more thorough tutorial.

Also, if anything is blatantly wrong in my INSTALL file, please let me know so I can fix it promptly.

The files are located at http://www.securix.net

You can skip to the bottom if you don't want to read my N800 musings.

-Anthony

qwerty12 2008-03-21 09:17

Re: EasyCrypt Frontend for TrueCrypt
 
@Securix

Thank you but I get a when going to your site :(
Quote:

securix.net


This is the current parking page for www.securix.net.

The domain has been registered through:

Domain Name Registration.

If you believe you received this page in error, please contact the administrator at:

The following extra services are also available:
URL Forwarding
DNS Hosting

Enetica - Australian Registrar


The domain has been registered through:
Enetica Instant Domains Domain Name Registration.
The following extra services are also available:
Premium URL Forwarding Email Forwarding DNS Hosting
If you believe you received this page in error, please contact the Enetica Instant Domains administrator at: domains@enetica.com.au
It works with boratproxy lol. Now to see if I can download.

Securix 2008-03-21 15:40

Re: EasyCrypt Frontend for TrueCrypt
 
Yea, it was working but then it reverted back. I'm in the process of transferring that domain name out anyway.

For now just use http://www.securix.net-a.googlepages.com/home

dan 2008-03-23 01:45

Re: EasyCrypt Frontend for TrueCrypt
 
Securix,

I preloaded required dependancies in red pill mode and downloaded app and starts fine. I will play with for a couple of days and report back.
Very nice port thanks bro.
I'm new to linux so I'm having trouble loading the following lines you recommended we put into sudo gainroot.

user ALL = NOPASSWD: /usr/bin/truecrypt
user ALL = NOPASSWD: /sbin/insmod
user ALL = NOPASSWD: /sbin/lsmod
user ALL = NOPASSWD: /sbin/mkfs.ext2
user ALL = NOPASSWD: /sbin/mkfs.ext3
user ALL = NOPASSWD: /bin/chown

Any tips, suggestions and newie walkthrough would be greatly appreciated. Keep up the great work. Dan

Securix 2008-03-23 04:32

Re: EasyCrypt Frontend for TrueCrypt
 
Hi Dan,

Thanks for checking out the port.

If you have root access in command line and can do gainroot, then you can edit the sudoers file using the command "visudo" .

I installed openssh and just ssh into my N800 with putty or ssh on my Linux box and go in that way.

Anyway, visudo basically calls vi to lock and edit the sudoers file. If you know your way around vi then it should be easy to append those lines to the file.

If you're unsure of what I mean, email me and I can step you through it. My email address is on my website.

I was considering extending the postinstall script to append the lines by itself but deciced that it would be too big of a risk in case something went wrong on someone's particular setup.

I could add it and test it thoroughly for the next release I suppose.

Also, I've been playing more with ext2 and ext3 functions and seem to have gotten the N800 to format and mount ext3, so I will be adding that to the next release as well.

I also saw someone drop a test deb that does NTFS support. I'd like to check into adding that too.

-Ant

dan 2008-03-25 23:50

Re: EasyCrypt Frontend for TrueCrypt
 
Securix,

Thanks for the install instructions. Works beautifully.
I will report back after playing around for a bit. :)
Dan

DJArty 2008-03-26 09:41

Re: EasyCrypt Frontend for TrueCrypt
 
Securix
Hi, dm_mod must be remove from memory then exit from EasyCrypt isn't it? )
Some trouble with ext2 - "Wrong password" then try to mount
, with FAT - 8 letters in the name of files.

Securix 2008-03-26 16:24

Re: EasyCrypt Frontend for TrueCrypt
 
So, your suggestion is to unload dm-mod.ko when exiting EasyCrypt? I don't know that leaving it loaded is an issue (it isn't in normal circumstances) but I could do that as a config option to let users unload it on exit.

I know there's issues is mounting ext2, but I've noticed it's usually because of mount point directory permissions. I'm trying to work on making it work smoothly.

DJArty 2008-03-26 21:14

Re: EasyCrypt Frontend for TrueCrypt
 
Quote:

Originally Posted by Securix (Post 160466)
could do that as a config option

nice - thnx! :)
What can I do now with 8 lettersinname limit (on FAT)?

Securix 2008-03-26 21:44

Re: EasyCrypt Frontend for TrueCrypt
 
Truecrypt seems to default to most common filesystem type if no option is specified.

In other words, if you create an ext3 Truecrypt volume, and then mount it without specifying the --filesystem option, Truecrypt will mount it as ext2.

Similarly, if you create a vfat Truecrypt volume, and them mount it without specifying the --filesystem option, Truecrypt will mount it as msdos.

Without going nuts looking for the actual reason, it seems likely that Truecrypt might simply pass the --filesystem option to the mount command, which seems to behave the same way.

I have already fixed the ext3 issue, so I will also add the vfat option. Using vfat will allow you to use long file names more than 8 characters.

I will try to post a new deb package very soon with these updates.

-Anthony

Securix 2008-03-30 00:10

Re: EasyCrypt Frontend for TrueCrypt
 
I have posted easycrypt-maemo-0.2.2.5b.armel.deb on my website.

It has better support for creating and mounting ext2, ext3 and vfat filesystems. The vfat fileysstem will allow you to use long file names.

It also provides the option to unload the dm-mod.ko module when exiting EasyCrypt as suggested by DJArty.

Incidentally, I also successfully formatted an entire SD card with Truecrypt. Of course it will not mount on bootup but it can be mounted with Truecrypt after booting and works reasonably well. I will try to work in support in a future release of EasyCrypt.

As usual please let me know of any bugs or suggestions.

And for now please use the Googlepages url, as the original registrar still hasn't trasferred the securix.net domain over to my usual registrar.

http://www.securix.net-a.googlepages.com

-Anthony

DJArty 2008-03-31 09:13

Re: EasyCrypt Frontend for TrueCrypt
 
Hi! Have some trouble whith exit from EasyCrypt:
Code:

sh:syntax error: "(" unexpexcted (expecting "}")
in circle, (maybe if dont unmount mounted volume, or after unsuccess mounting ext2,vfat volume).
P.S. truecrypt key "shortname=mixed" allow longnames on FAT..

Securix 2008-03-31 13:08

Re: EasyCrypt Frontend for TrueCrypt
 
Can you tell me what line of code that error occurred in? Also if you have any more info how you got that error...I'm not sure I understand what you mean.

Also, if you use vfat, make sure you add

user ALL = NOPASSWD: /sbin/mkfs.vfat

to /etc/sudoers.

If you execute EasyCrypt from the command line like /usr/bin/easycrypt.sh it will print out diagnostic messages as it goes.

I will also look into shortname=mixed mount options.

Thanks,
Anthony

(Also, my domain name finally transferred so www.securix.net and email should work now.)

Securix 2008-04-01 02:25

Re: EasyCrypt Frontend for TrueCrypt
 
DJArty,

I tried adding the shortname=mixed mount option to msdos, but when I do that, it just mounts as vfat anyway. Can you verify?

Also, while testing this, I noticed a bug when mounting vfat, so I fixed that and an update 0.2.2.5c has been posted on http://www.securix.net

-Anthony

DJArty 2008-04-02 21:47

Re: EasyCrypt Frontend for TrueCrypt
 
Code:

sudo mkdir /mnt/tc 2>/dev/null
sudo chmod a+rwx /mnt/tc
truecrypt -u -M noatime,nosuid,nodev,shortname=mixed /media/mmc2/tc.tc /mnt/tc

It's give to me longnames with standard volume maked by truecrypt -c

Securix 2008-04-04 21:19

Re: EasyCrypt Frontend for TrueCrypt
 
Exactly what I'm saying. Do a mount command and see if yours mounted as a vfat filesystem:

Code:


/mnt $ sudo truecrypt -u -M noatime,nosuid,nodev,shortname=mixed /media/mmc2/tc.
tc /mnt/tc
Enter password for '/media/mmc2/tc.tc':

/mnt $ mount | grep tc
/dev/mapper/truecrypt0 on /mnt/tc type vfat (rw,nosuid,nodev,noatime,uid=29999,gid=29999,fmask=0077,dmask=0077,codepage=cp437,iocharset=iso8859-1,shortname=mixed)


DJArty 2008-04-07 07:28

Re: EasyCrypt Frontend for TrueCrypt
 
Yes " type vfat" :)

locutus 2008-04-09 15:47

Re: EasyCrypt Frontend for TrueCrypt
 
pls help me. If I try to mount a truecrypt volume with the option "mount a crypt volume" I get the error message "Mount failed. File System Type or Password incorrect".

I tried a container which I have created on the pc and also one which I created with easycrypt on the N800.
I tried fat and vfat options. But it is still not working.

I have inserted the following lines in the /etc/suoers:
Code:

user ALL = NOPASSWD: /usr/bin/truecrypt
user ALL = NOPASSWD: /sbin/insmod
user ALL = NOPASSWD: /sbin/lsmod
user ALL = NOPASSWD: /sbin/mkfs.ext2
user ALL = NOPASSWD: /sbin/mkfs.ext3
user ALL = NOPASSWD: /sbin/mkfs.vfat
user ALL = NOPASSWD: /bin/chown

Have I missed something??

If I start easycrypt with /usr/bin/easycrypt.sh and click on the mount button, the program closes with the following message:

Code:

Clicked Open Event!
looking for truecrypt
found truecrypt
looking for device mapper-module
device already loaded
python[3361]: GLIB ERROR ** GLib - The thread system is not yet initialized.
aborting...

any suggestions??

Securix 2008-04-09 17:36

Re: EasyCrypt Frontend for TrueCrypt
 
Which version of Python do you have installed (or running by default)?

EC has only been tested with 2.5.x and uses the standard threading library.

Also to be sure, which kernel version?

When I click mount, I get:

python[1525]: GLIB DEBUG ConIc - con_ic_connection_send_event(0x2439e8, KIKI, WLAN_ADHOC, 0)

(where KIKI is the hostname of my N800)

or if I'm not connected to a WLAN, I get

python[1525]: GLIB DEBUG ConIc - con_ic_connection_send_event(0x2439e8, (null), (null), 0)

And it goes through to the next step...

locutus 2008-04-09 20:55

Re: EasyCrypt Frontend for TrueCrypt
 
thx for the reply. I have python2.5 installed.
The problem for this GLIB ERROR was that I have run truecrypt as root.

But I still get the error "Mount failed. File System Type or Password incorrect".

Now when I am in user mode I get the follogwing when I create a new volume:
Code:

clicked tray
doing create event
LOCATION_PRESSED 1
/home/user/MyDocs/volume.tc selected
0
Calculated mount is /volume.tc
/home/user/MyDocs
size left 6032692
got password now doing action create
1
/home/user/MyDocs/volume.tc

Enter user's or root's system password:

/home/user/MyDocs/volume.tc
[]
ok lets bosh the old one
deleting crypt /home/user/MyDocs/volume.tc
rm: cannot remove '/home/user/MyDocs/volume.tc': No such file or directory

SizeOfCrypt Started /home/user/MyDocs/volume.tc
need this to make crypt silently
chosen fs : fat
truecrypt --disable-progress --encryption AES --hash Whirlpool --filesystem fat --size 1M --type normal --random-source /tmp/.easycrypt-random --o -c /home/user/MyDocs/volume.tc
SpecialCommandRunner job: create truecrypt --disable-progress --encryption AES --hash Whirlpool --filesystem fat --size 1M --type normal --random-source /tmp/.easycrypt-random --o -c /home/user/MyDocs/volume.tc
Traceback (most recent call last):
File "/usr/bin/EasyCrypt.py", line 916, in afterPasswordDoAction
if self.makeCrypt(self.crypt_size.get_value()):
File "/usr/bin/EasyCrypt.py", line 726, in makeCrypt
percentDone = (float(current.returnString) / targetSizeInBytes) *100
ValueError: invalid literal for float(): sh: stat: not found
clearing crypt from list

Now when I try to mount the volume I get:
Code:

clicked tray
Clicked Open Event!
looking for truecrypt
err:
found truecrypt
looking for device mapper module
device already loaded
/home/user/MyDocs/volume.tc selected
Calculated mount is /volume.tc

Enter user's or root's system password:

/home/user/MyDocs/volume.tc
[]
Checking for crypt /home/user/MyDocs/volume.tc
got password now doing action open
Opening crypt with mount point : True
chosen fs : msdos
Opening /home/user/MyDocs/volume.tc at /home/user/MyDocs/file
checking mountpoint /home/user/MyDocs/file
raw mountpoint /home/user/MyDocs/file
home dir /home/user/
truecrypt -i --filesystem msdos
/home/user/MyDocs/volume.tc /home/user/MyDocs/file test
SpecialCommandRunner job: open truecrypt --filesystem msdos -i
Enter user's or root's system password:
chowning mountpath to user:users

Enter user's or root's system password:

/home/user/MyDocs/volume.tc
[]
clearing crypt from list

Seems that also something goes wrong when i create a volume. But I also can't mount a pc-volume.

Securix 2008-04-10 01:21

Re: EasyCrypt Frontend for TrueCrypt
 
Hmm...

Well the first strange thing is that it's ok if you run truecrypt as root. It should work fine.

Not sure why you're getting the "Enter user's or root's system password:" thing though. I never get that, so I'm wondering if there's something else in sudoers or other permissions that is complaining.

Do you have "red-pill" mode activated?

One thing I'd try is to do some truecrypt tests from a command line, whether you do it from the N8x0's own shell or ssh.

Try building a test crypt file interactively:

truecrypt -c

then mount it interactively:

truecrypt -i

If you do it as 'user' you may need to do

sudo truecrypt -c
and sudo truecrypt -i

See if you get any errors...

locutus 2008-04-10 11:35

Re: EasyCrypt Frontend for TrueCrypt
 
I tried it in red pill and in blue pill mode, but it leads to the same error.

I tried it with truecrypt -c and truecrypt -i via ssh and it works. I dismounted it and remounted and the changes were saved.

My complete /etc/sudoers file:
Code:

### Automatically added by update-sudoers start ###
Defaults env_check+="HOME DISPLAY"
Defaults env_keep+="HOME DISPLAY"
Defaults env_reset
user ALL = NOPASSWD: /usr/sbin/gainroot
user ALL = NOPASSWD: /usr/sbin/mmc-mount /dev/mmcblk0 /media/mmc1
user ALL = NOPASSWD: /usr/sbin/mmc-mount /dev/mmcblk0p1 /media/mmc1
user ALL = NOPASSWD: /bin/umount /media/mmc1,/bin/umount -l /media/mmc1
user ALL = NOPASSWD: /usr/sbin/osso-usb-mass-storage-enable.sh, /usr/sbin/osso-usb-mass-storage-disable.sh
user ALL = NOPASSWD: /sbin/mkdosfs /dev/mmcblk0*, /usr/sbin/mmc-rename /dev/mmcblk0*
user ALL = NOPASSWD: /etc/init.d/af-base-apps stop , /etc/osso-af-init/gconf-daemon.sh stop
user ALL = NOPASSWD: /etc/init.d/af-base-apps start , /etc/osso-af-init/gconf-daemon.sh start
user ALL = NOPASSWD: /etc/init.d/osso-systemui restart
user ALL = NOPASSWD: /usr/sbin/gconf-clean.sh
user ALL = NOPASSWD: /usr/sbin/chroot /mnt/initfs /usr/bin/retutime *
user ALL = NOPASSWD: /sbin/insmod /mnt/initfs/lib/modules/current/g_file_storage.ko stall=0 file=/dev/mmcblk0
user ALL = NOPASSWD: /sbin/insmod /mnt/initfs/lib/modules/current/g_ether.ko
user ALL = NOPASSWD: /sbin/rmmod g_file_storage
user ALL = NOPASSWD: /sbin/rmmod g_ether
user ALL = NOPASSWD: /usr/sbin/osso-backup-restore-locale
user ALL = (install) NOPASSWD: /usr/bin/app-installer-tool
### Automatically added by update-sudoers end ###
### Automatically added by update-sudoers start ###
user ALL = NOPASSWD: /usr/libexec/apt-worker
user ALL = NOPASSWD: /usr/bin/hildon-application-manager-util restore-catalogues
user ALL = NOPASSWD: /usr/bin/hildon-application-manager-util restore-catalogues2
### Automatically added by update-sudoers end ###
### Automatically added by update-sudoers start ###
user ALL = NOPASSWD: /usr/bin/hildon-input-method-configurator.bin
### Automatically added by update-sudoers end ###
### Automatically added by update-sudoers start ###
user ALL = NOPASSWD: /etc/init.d/ke-recv start
user ALL = NOPASSWD: /etc/init.d/ke-recv stop
user ALL = NOPASSWD: /etc/init.d/alarmd start
user ALL = NOPASSWD: /etc/init.d/alarmd stop
user ALL = NOPASSWD: /etc/init.d/osso-hss start
user ALL = NOPASSWD: /etc/init.d/osso-hss stop
user ALL = NOPASSWD: /usr/bin/osso-product-info
user ALL = NOPASSWD: /bin/mv -f /tmp/.opi.tmp.tmp /tmp/.opi.tmp
### Automatically added by update-sudoers end ###
### Automatically added by update-sudoers start ###
user ALL = NOPASSWD: /bin/umount /media/mmc2
user ALL = NOPASSWD: /usr/sbin/osso-prepare-partition.sh *
user ALL = NOPASSWD: /sbin/mkdosfs *
user ALL = NOPASSWD: /etc/init.d/ke-recv stop
user ALL = NOPASSWD: /etc/init.d/hildon-desktop stop
user ALL = NOPASSWD: /etc/init.d/mediaplayer-daemon stop
user ALL = NOPASSWD: /etc/init.d/metalayer-crawler0 stop
### Automatically added by update-sudoers end ###
user ALL = NOPASSWD: /etc/osso-backup/restore.d/always/bluez-restore.sh
user ALL = NOPASSWD: /usr/bin/region
user ALL = NOPASSWD: /bin/mv /etc/rhapsody-install/rhapsody.desktop /usr/share/applications/hildon/
user ALL = NOPASSWD: /user/bin/truecrypt
user ALL = NOPASSWD: /sbin/insmod
user ALL = NOPASSWD: /sbin/lsmod
user ALL = NOPASSWD: /sbin/mkfs.ext2
user ALL = NOPASSWD: /sbin/mkfs.ext3
user ALL = NOPASSWD: /sbin/mkfs.vfat
user ALL = NOPASSWD: /bin/chown

I am running OS2008 from mmc, if this is important.

Securix 2008-04-10 13:21

Re: EasyCrypt Frontend for TrueCrypt
 
A couple posts back, your sudoers truecrypt line looked like this:

user ALL = NOPASSWD: /usr/bin/truecrypt

But in this post, your sudoers truecrypt line looks like this:

user ALL = NOPASSWD: /user/bin/truecrypt

Can you verify that it's /usr/bin/truecrypt and not /usEr/bin/truecrypt

If you really have it as /user/bin then the errors you've been getting make sense, since if sudo can't find the exec in the right place, it would be asking for a password.

locutus 2008-04-10 15:38

Re: EasyCrypt Frontend for TrueCrypt
 
Oh, you are right. I have corrected that.
But it still does'nt work.
When I try to mount a volume I get the following:
Code:

clicked tray
Clicked Open Event!
looking for truecrypt
found truecrypt
looking for device mapper module
device already loaded
/media/mmc1/test selected
Calculated mount is /test
truecrypt: No volumes mapped
/media/mmc1/test
['truecrypt: No volumes mapped']
current mount truecrypt: No volumes mapped
Checking for crypt /media/mmc1/test
got password now doing action open
Opening crypt with mount point : True
chosen fs : msdos
Opening /media/mmc1/test at /home/user/MyDocs/Del
checking mountpoint /home/user/MyDocs/Del
raw mountpoint /home/user/MyDocs/Del
home dir /home/user/
truecrypt -i --filesystem msdos
/media/mmc1/test /home/user/MyDocs/Del test
SpecialCommandRunner job: open truecrypt --filesystem msdos -i
truecrypt: Incorrect password or not a TrueCrypt volume.chowning mountpath to user:users
truecrypt: No volumes mapped
/media/mmc1/test
['truecrypt: No volumes mapped']
current mount truecrypt: No volumes mapped

I also still get this "ValueError: invalid literal for float(): sh: stat: not found" message, when I try to create a volume. Is that normal?

Any idea where the problem is?

Securix 2008-04-10 17:44

Re: EasyCrypt Frontend for TrueCrypt
 
Check to see if you have the stat command installed. It would be /usr/bin/stat

If not, then it sounds like you need coreutils or at least just the stat binary. I can't remember whether it comes with OS2008 or if I did apt-get install coreutils or if I compiled it in Scratchbox and copied it. I'll have to check when I get home.

If that's the case, then it's an oversight on my part and I'll have to include coreutils or at least just stat as part of the dependencies.

Is the test crypt file you're mounting made using truecrypt on the N800 or is it one you created on the PC?

Have you tried mounting a crypt file you created on the N800 onto your PC? Which version of TC are you using on your PC?

locutus 2008-04-10 19:48

Re: EasyCrypt Frontend for TrueCrypt
 
I have no dir or file named /usr/bin/stat.
I can't install corutils with the program manager, because ther is a conflict with busybox. I don't know if busybox is important or can I uninstall it?

when i try to install it with apt-get install coreutils I get the following warning, so that I canceled the install:
Code:

The following packages will be REMOVED:
  bluez-utils busybox dnsmasq hal ke-recv libconbtui0 lsb-base netbase osso-af
  osso-applet-device osso-applet-languageregional osso-applet-location
  osso-applet-memory osso-bluez-compat osso-connectivity osso-connectivity-ui
  osso-connectivity-ui-btsettings osso-connectivity-ui-conndlgs
  osso-connectivity-ui-connmgr osso-connectivity-ui-gwsettings
  osso-connectivity-ui-gwwizard osso-connectivity-ui-iapsettings
  osso-connectivity-ui-statusbar osso-core osso-core-busybox osso-dsm
  osso-filemanager osso-ic osso-startup-wizard ppp

I tried a volume created on the N800 and also one created with truecrypt 5.0 in windows.

The volume which I created on the N800 works on the PC. So the problem is only mounting a volume.

So what do you think is the best way to install coreutils?


| 1   2     3   | Next
All times are GMT. The time now is 21:38.

vBulletin® Version 3.8.8