|
|
2006-07-20
, 04:10
|
|
Posts: 34 |
Thanked: 9 times |
Joined on Mar 2006
@ Wien
|
#32
|
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.
|
|
2006-07-20
, 07:48
|
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#33
|
I am unable to copy a video file onto my shared folder on the PC.
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.
|
|
2006-07-20
, 08:12
|
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#34
|
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.#!/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
|
|
2006-07-20
, 13:42
|
|
|
Posts: 1,361 |
Thanked: 115 times |
Joined on Oct 2005
@ Toronto, Ontario, Canada
|
#35
|
|
|
2006-07-20
, 22:24
|
|
|
Posts: 2,853 |
Thanked: 968 times |
Joined on Nov 2005
|
#36
|
|
|
2006-07-22
, 07:36
|
|
Posts: 37 |
Thanked: 1 time |
Joined on May 2006
|
#37
|
|
|
2006-07-22
, 08:01
|
|
Posts: 34 |
Thanked: 9 times |
Joined on Mar 2006
@ Wien
|
#38
|
|
|
2006-07-22
, 11:56
|
|
Posts: 264 |
Thanked: 28 times |
Joined on May 2006
|
#39
|
|
|
2006-07-22
, 12:43
|
|
Posts: 34 |
Thanked: 9 times |
Joined on Mar 2006
@ Wien
|
#40
|
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.