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-27 03:55

TrueCrypt, Cifs.ko, ntfs.ko are now Packages
 
3 Attachment(s)
I just got a n900 and of course I really wanted to be able to talk to my linux samba server and I wanted truecrypt (ntfs tc volume) support.

I first experimented with building the samba package (appears it requires kernel cifs support to actually mount anything) -- I might submit this as it is working package afaik, later.

Then I experimented with fuse samba/smb modules. (Couldn't get them to mount properly.)

So I finally went the kernel route (first time messing with Kernel, I was a bit leary). But I got both cifs.ko and ntfs.ko compiled and working. However, I don't see an "easy" way to make a debian package to handle the compiling of this automatically. Should I perhaps make a debian pre-compiled package for cifs and ntfs? Or is their a better way to distribute this?


Cifs, ntfs, and now Truecrypt are now real packages in the extras-testing/devel.

---

To activate cifs kernel support (this is only for this bootup).
Code:

insmod cifs.ko
to make it active always on bootup:
Code:

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

to remove it from memory:
Code:

rmmod cifs
To Mount/Map the drive Use
Code:

mount -t cifs //<server>/<path> /<your>/<local>/<path> -o user=<user>,pass=<pass>,ip=<ip of server>,direct

or

mount.cifs //<server>/<path> /<your>/<local>/<path> -ouser=<user>,pass=<pass>,ip=<ip of server>,direct

You may not need ",ip=<ip of server>" But for some reason I've always had to use it. You can also use the "mount -t cifs" command with the -t cifs option, instead of using "mount.cifs".

The "direct" parameter will speed up your connection as long as your network is fast. This eliminates buffering in your n900 cif driver. In my tests the speed doubled.

---

You need Fuse Installed for Truecrypt to work.

For Truecrypt support:

Code:

truecrypt <tc container> <mount point> -m nokernelcrypto
If your TC container is formated ntfs, you will need to do the insmod ntfs.ko first. Otherwise fat & ext3 should be handled fine.

---

I've attached them to the post for those who are interested. EasyCrypt might work with truecrypt; I haven't tried it yet.

----

The new version of WizardMounter -->
http://talk.maemo.org/showthread.php?t=44188


Nathan

Nathan 2009-12-27 05:25

Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
 
Use the packages in Extras-Testing for easy installation.



Nathan

robbie 2009-12-27 11:04

Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
 
Don't know how to package this. Just wanted to say: nice work!

asidana 2009-12-27 11:21

Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
 
does maped drive stays after the reboot? how fast is the transfer rate on wlan?

digitalvoid 2009-12-27 13:41

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

Maybe it is also handy to have 'umount.cifs' compiled?

I have created a mount (/mnt/share) to my server and I want this to link to /home/user/MyDocs/share:

ln -s /mnt/share /home/user/MyDocs/share

But 'operation is not permitted', why? (I'm logged in as root)

Matan 2009-12-27 15:04

Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
 
/mnt/share /home/user/MyDocs/ is a FAT filesystem. No symbolic links possible.

digitalvoid 2009-12-27 15:22

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

Originally Posted by Matan (Post 442986)
/mnt/share /home/user/MyDocs/ is a FAT filesystem. No symbolic links possible.

And if you would change this FAT filesystem to ext3, this partition wouldn't be accesible anymore with a 'mass storage' usb connection to MS Windows, right?

Nathan 2009-12-29 21:42

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

Originally Posted by asidana (Post 442838)
does maped drive stays after the reboot?

Not by default, but you can do so with a little bit of editing of files. You basically need to make cifs become a startup module and then edit the mounting file.


Quote:

how fast is the transfer rate on wlan?
Speed, very fast. Very stable too, for some reason my Wireless router is acting up so I was constantly having to disconnect/reconnect and my mount point stayed and worked (and recovered) through the disconnects/reconnects.

Nathan.

Nathan 2009-12-29 21:44

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

Originally Posted by digitalvoid (Post 442929)
Great work, it works!
Maybe it is also handy to have 'umount.cifs' compiled?

I'll see what I can do (I rebricked my dev environment), but I believe plain "umount" will work also.

Nathan.

asidana 2009-12-29 21:50

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

Originally Posted by Matan (Post 442986)
/mnt/share /home/user/MyDocs/ is a FAT filesystem. No symbolic links possible.

how do you access it via default file browser then? does file manager see your share like it sees MyDocs as N900 and Memory card?

As a linux noob my ideal solution would be to run a script (or better auto mount) then get file manger to see it so i can browse around. Is it possible?


All times are GMT. The time now is 06:49.

vBulletin® Version 3.8.8