|
Page 1 of 3 |
|
1
2 3
|
Next
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 |
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.
|
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. |
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/ |
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. |
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.
|
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! |
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 :) |
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.
|
Re: EasyCrypt Frontend for TrueCrypt
Yea, I am also waiting for this app since I've seen this thread.
|
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? |
Re: EasyCrypt Frontend for TrueCrypt
I do not have TrueCrypt, and I prefer including it in EasyCrypt for one easy install.
|
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.... |
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!
|
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 |
Re: EasyCrypt Frontend for TrueCrypt
@Securix
Thank you but I get a when going to your site :( Quote:
|
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 |
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 |
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 |
Re: EasyCrypt Frontend for TrueCrypt
Securix,
Thanks for the install instructions. Works beautifully. I will report back after playing around for a bit. :) Dan |
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. |
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. |
Re: EasyCrypt Frontend for TrueCrypt
Quote:
What can I do now with 8 lettersinname limit (on FAT)? |
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 |
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 |
Re: EasyCrypt Frontend for TrueCrypt
Hi! Have some trouble whith exit from EasyCrypt:
Code:
sh:syntax error: "(" unexpexcted (expecting "}")P.S. truecrypt key "shortname=mixed" allow longnames on FAT.. |
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.) |
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 |
Re: EasyCrypt Frontend for TrueCrypt
Code:
sudo mkdir /mnt/tc 2>/dev/null |
Re: EasyCrypt Frontend for TrueCrypt
Exactly what I'm saying. Do a mount command and see if yours mounted as a vfat filesystem:
Code:
|
Re: EasyCrypt Frontend for TrueCrypt
Yes " type vfat" :)
|
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/truecryptIf 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! |
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... |
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 trayCode:
clicked tray |
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... |
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 ### |
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. |
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 trayAny idea where the problem is? |
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? |
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: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? |
| All times are GMT. The time now is 21:38. |
Page 1 of 3 |
|
1
2 3
|
Next
vBulletin® Version 3.8.8