maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs) (https://talk.maemo.org/showthread.php?t=38536)

Nathan 2009-12-30 22:59

Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
 
Ah the problem is the n900 doesn't use the standard init.d stuff. LOL no wonder it wasn't working at all!

It uses upstart.

To fix as root:
Code:

depmod -a
Code:

echo start on startup > /etc/event.d/cifs
echo exec modprobe cifs >> /etc/event.d/cifs

Nathan

jak 2009-12-30 23:05

Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
 
I wouldn't even use TrueCrypt. It's non-free and not open source and legally dangerous, as explained in https://fedoraproject.org/wiki/ForbiddenItems#TrueCrypt and http://lists.freedesktop.org/archive...er/000276.html. Also see the Wikipedia article about it.

We have much better encryption solutions, on the block level and on the file level (e.g. using ecryptfs).

digitalvoid 2009-12-30 23:25

Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
 
Great work guys, it works now!

PS: I am a bit of a Linux noob (but I'm learning)!

Nathan 2009-12-31 00:29

Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
 
Quote:

Originally Posted by jak (Post 447321)
I wouldn't even use TrueCrypt. It's non-free and not open source and legally dangerous, as explained in https://fedoraproject.org/wiki/ForbiddenItems#TrueCrypt and http://lists.freedesktop.org/archive...er/000276.html. Also see the Wikipedia article about it.

We have much better encryption solutions, on the block level and on the file level (e.g. using ecryptfs).

Everyone is entitled to their own opinion -- including fedora. I read through both links, and several of their "problems" have already been addressed in the newer license that have been released since 7/2008. I've been using Truecrypt since it was forked from E4M. The issues you raise are more FUD than anything substantial for us.

However for cross system compatibility (Linux, Windows, Mac OS) -- Truecrypt is the primary solution. None of the other solutions to my knowledge work _reliably_ on Windows.

If you want a Linux only solution, yes their are better solutions. But since I compiled it for my own use (including the attached ntfs & cifs), I figured I would share with the community.

Nathan.

legoman666 2009-12-31 13:48

Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
 
So lets says I got all of this working and mounted a drive with the code:
Code:

mount.cifs //fileserver/movies /home/user/MyDocs/mount -ouser=admin,pass=pass,ip=192.168.1.50
or something similar. How would I create a script to auto mount on startup? Step by step instructions would be awesome, I haven't done this in a long time (messed around with this on the n810 but got fed up).

jak 2009-12-31 14:58

Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
 
Quote:

Originally Posted by legoman666 (Post 447900)
So lets says I got all of this working and mounted a drive with the code:
Code:

mount.cifs //fileserver/movies /home/user/MyDocs/mount -ouser=admin,pass=pass,ip=192.168.1.50
or something similar. How would I create a script to auto mount on startup? Step by step instructions would be awesome, I haven't done this in a long time (messed around with this on the n810 but got fed up).

How about putting it into /etc/fstab?

legoman666 2009-12-31 15:20

Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
 
Quote:

Originally Posted by jak (Post 447970)
How about putting it into /etc/fstab?

because I don't know what that means

jak 2009-12-31 15:53

Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
 
Quote:

Originally Posted by legoman666 (Post 447995)
because I don't know what that means

See http://www.tuxfiles.org/linuxhelp/fstab.html or http://wiki.linuxquestions.org/wiki/Fstab.

But if you're playing with such stuff, you should know it.

SubCore 2009-12-31 16:22

Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
 
here a working /etc/fstab example:
Code:

//server.name.or.ip/share /home/user/some_directory  cifs  noauto,uid=29999,ro,nosuid,nodev,user=<user>,pass=<pass>,ip=<ip>
works for me, so i just need to issue "mount some_directory" in xterm to get access. if you change "noauto" to "auto", it should happen automatically at bootup, but usually that's not a good idea. changing "ro" to "rw" will enable write access.

i haven't tested without noauto, but it could really stretch your boot-time if the device waits for some time-out when you're nowhere near your local net.

also, this is a CLEARTEXT password! so create a user with minimal rights on the server just for this purpose, the "pass=" parameter is not optional if you want to use fstab.

edit:
/etc/fstab is autogenerated, so the above line has to be put somewhere else to be permanent, but i got no time to look now :)

volt 2010-01-02 18:50

Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
 
Nathan, I appreciate your effort, as it's the only thing I've seen this far that gives CIFS/Samba support. I will not try this, as it is too much "tinker until it temporarily works" for my comfort level, but I do appreciate it.

I hope someone will take this a few steps forwards so we can one day find key words like "samba" in extras-testing. Hopefully without the words "this firmware version".


All times are GMT. The time now is 14:46.

vBulletin® Version 3.8.8