![]() |
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
well, thanks Qole and Nathan for the samba support. I tried winfs and kernel-module-cifs, and both work. but I hope you guys compile another module or component into it. I can't use the parameter, -o iocharset=utf8 . I usually do this to mount windows filesystem from my desktop linux because I got many different language filenames, like japanese, chinese, russian. It can make the files display correctly so that I will be able handle with these in command line.
|
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
Quote:
According to the cifs readme: iocharset: Codepage used to convert local path names to and from Unicode. Unicode is used by default for network path names if the server supports it. If iocharset is not specified then the nls_default specified during the local client kernel build will be used. If server does not support Unicode, this parameter is unused. I looked through the source code and it showed that it could try and load a charset and fail. I'm not sure what would cause it to fail; other than maybe it not being compiled into the kernel? Nathan |
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
Quote:
Nathan. |
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
Hey I've been working on that script, I'm almost finished, do you need root permissions in Fremantle to create a directory in /media or use the mount command? I don't know, I'm still waiting for my N900 to arrive :(
|
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
Quote:
2. You need to create the initial directory as root; but if you chown the directory back to the user; then the user can create any sub-directories inside it for mounting points. ;-) 3. You could probably mark the script for elevated rights and bypass the root requirements of mount/umount. Nathan |
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
Quote:
Guys i am totally lost. Could someone post command line to mount \\server\multimedia to MyDocs as Server folder after installing winfs from qole's repo? Thanks |
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
OK, probably best to run the script as root then. This script will chown the mountpoint automatically.
So here's my "easy cifs mounter" shellscript. First time I've written such a fancy one :cool: you can either pass arguments to it or run it in "wizard mode" by passing no arguments. Code:
#! /bin/shNoob instructions: Copy contents, save it as something like say "cifsmount", then run "chmod u+x cifsmount." You need to run this script as root, so with rootsh installed run "sudo gainroot." You can then either run it in "wizard mode" by running "./cifsmount" or pass arguments to it like "./cifsmount myhomeserver 192.168.254.10 mysharedfolder myusername mypassword /mount/point" (arguments are all documented in the code comments) Username, password and mountpoint are all optional. You must specify a username and password to use a custom mountpoint if you're doing it with arguments, but if you're connecting to an anonymous share you can put anything in those fields. By default it uses the same mountpoints as Wizard Mounter: /media/Remote_Filesystems/servername@share. You have to unmount manually: "umount /media/Remote_Filesystems/whatever@whatever." The script will tell you exactly what at the end. |
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
i copied it under MyDocs and run "chmod u+x cifsmount." as root
when i run "./cifsmount" i get permission denied error saying permission denied |
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
Edit: nm, SubCore got it.
|
Re: How to Distribute? (TrueCrypt, Cifs.ko, ntfs.ko, mount.cifs)
Quote:
you have to copy it somewhere else, for example /home/user instead of /home/user/MyDocs, and then rund chmod +x. (/home is the 2GB partition, and mounted as ext3) |
| All times are GMT. The time now is 11:43. |
vBulletin® Version 3.8.8