Active Topics

 



Notices


Reply
Thread Tools
Posts: 333 | Thanked: 7 times | Joined on Dec 2005
#31
Woohoo....got it working

Thanks fpp,itom,fanoush. There was a couple of errors here and there in the instruction, but I figured it out. I am able to open pictures, mp3, and even videos on my PC with no problem. There is a question I have though, does this thing works one way only PC>N770. Because I am unable to copy a video file onto my shared folder on the PC. It says updating but nothing shows up. Of course I checked the box saying the user can modify the folder when sharing the folder.
 
Posts: 34 | Thanked: 9 times | Joined on Mar 2006 @ Wien
#32
NOkNok770
I am unable to copy a video file onto my shared folder on the PC. It says updating but nothing shows up. Of course I checked the box saying the user can modify the folder when sharing the folder.
Did you made mount to shared with Administrator? If not may be you have no permission fow writing from PC side. Check your shared folder on PC, don't forget that real connection speed can be not fast (in my case 4 mbps)
Post your 'mount' string here. Also more easy do mounting (till we have no script) using ssh
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#33
Originally Posted by NokNok770
I am unable to copy a video file onto my shared folder on the PC.
It may be also permissions on N770 side. If you mount as root all inside share belongs to root and default permissions allow only root to write. Add uid=29999,gid=29999 to -o options. With this all belongs to normal N770 user named 'user' with id 29999.

2fpp: the howto is great and thanks for the mirroring problem with webpark.cz is that it allows only links to binaries with same http referrer. Solution is to create html on webpark that links to the binary and this works. I was just lazy to do it and this forum cannot accept .tgz binaries as attachement. Copying link to adress bar causes no http referrer (in most browsers, opera in n770 may be an exception) and this is allowed.
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#34
here is my mount script, it is probably too complex for this simple task first part is generic way of executing itself as root via sudo gainroot so you don't need to do it before executing it. In second part I tried to prompt for password without showing it on display but it doesn't work, it is shown, read command is too limited, there is no -s (silent) option in n770 version. But at least it is not remembered in shell history. Too bad it is still in /proc/mounts and /etc/mtab when share is mounted. Removing it would require mount.cifs helper executable which takes special care of the password.
Code:
#!/bin/sh
# use gainroot to become root and relaunch itself and remember original tty device
if [ `id -u` != 0 ] ; then
TTY=`tty`
#if not already root, call itself as root
sudo gainroot <<EOF
export TTY=$TTY
$0 $*
EOF
exit
fi
TTY=${TTY:-`tty`} #set also if called directly as root
# real script follows

grep -q cifs /proc/modules || insmod /root/cifs.ko
echo -n >$TTY "Password:"
read <$TTY >/dev/null 2>&1 pass
mount -t cifs //192.168.2.1/win_c$ /home/user/MyDocs/network/franta_c -o domain=FRANTA,user=Administrator,password=$pass,uid=29999,gid=29999
More details about cifs module is here http://linux-cifs.samba.org/
 
Hedgecore's Avatar
Posts: 1,361 | Thanked: 115 times | Joined on Oct 2005 @ Toronto, Ontario, Canada
#35
Excellent, thank you guys so much for all the help and knowledge. I'd originally gotten 'unknown device' when attempting to mount a share last night but this was because I didn't realize I had to reintegrate the cifs module each time. I mounted a share no problem. On my main PC I'm getting 'permission denied' errors but that can be solved easily when I have some time...

Now, that load/run applet... does it let you store commands? It'd be cool to incorporate mount/unmount scripts.
 
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#36
fanoush: great script, thanks ! (nice sudo trick :-)
 
Posts: 37 | Thanked: 1 time | Joined on May 2006
#37
help! trying to mount share folder but got this message on the N770 "can't find /media/mmc1/nfs in the /etc/fstab". insmod /lib/modules/cifs.ko without any problem. I am doing all this with root access. I even rmmod and insmod again to make sure.
 
Posts: 34 | Thanked: 9 times | Joined on Mar 2006 @ Wien
#38
fanoush
Thank you, Great!!! I deleted from your script all strings about password, add run-path to load-applet-run. Working excellent.
 
Posts: 264 | Thanked: 28 times | Joined on May 2006
#39
Anyone else having problems playing mp3s from a cifs mounted directory?
I'm getting little pauses every 4 or 5 seconds as the audio player fetches another piece of the file across the network. It seems like the audio player isn't handling it's buffer very well.
 
Posts: 34 | Thanked: 9 times | Joined on Mar 2006 @ Wien
#40
BanditRider
Same situation for me with pauses and same thinking about buffer in audio player only because no pauses during video playing.
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:33.