Notices


Reply
Thread Tools
Posts: 452 | Thanked: 522 times | Joined on Nov 2007
#31
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
 

The Following 3 Users Say Thank You to Nathan For This Useful Post:
Posts: 104 | Thanked: 47 times | Joined on Sep 2009 @ Kassel, Hesse, Germany
#32
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).
__________________
Julian Andres Klode - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
 
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#33
Great work guys, it works now!

PS: I am a bit of a Linux noob (but I'm learning)!
 
Posts: 452 | Thanked: 522 times | Joined on Nov 2007
#34
Originally Posted by jak View Post
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.
 
Posts: 185 | Thanked: 103 times | Joined on Aug 2008
#35
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).
 
Posts: 104 | Thanked: 47 times | Joined on Sep 2009 @ Kassel, Hesse, Germany
#36
Originally Posted by legoman666 View Post
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?
__________________
Julian Andres Klode - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
 
Posts: 185 | Thanked: 103 times | Joined on Aug 2008
#37
Originally Posted by jak View Post
How about putting it into /etc/fstab?
because I don't know what that means
 
Posts: 104 | Thanked: 47 times | Joined on Sep 2009 @ Kassel, Hesse, Germany
#38
Originally Posted by legoman666 View Post
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.
__________________
Julian Andres Klode - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
 
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#39
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
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg

Last edited by SubCore; 2009-12-31 at 16:53.
 
volt's Avatar
Posts: 1,309 | Thanked: 1,187 times | Joined on Nov 2008
#40
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".
 
Reply

Tags
cifs, ntfs, samba, smb, truecrypt


 
Forum Jump


All times are GMT. The time now is 03:52.