Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Samba?

    Reply
    Page 4 of 5 | Prev |   2     3   4   5   | Next
    NokNok770 | # 31 | 2006-07-20, 00:09 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    ITom | # 32 | 2006-07-20, 04:10 | Report

    NOkNok770
    Originally Posted by
    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    fanoush | # 33 | 2006-07-20, 07:48 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    fanoush | # 34 | 2006-07-20, 08:12 | Report

    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/

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Hedgecore | # 35 | 2006-07-20, 13:42 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    fpp | # 36 | 2006-07-20, 22:24 | Report

    fanoush: great script, thanks ! (nice sudo trick :-)

    Edit | Forward | Quote | Quick Reply | Thanks

     
    acdczip | # 37 | 2006-07-22, 07:36 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    ITom | # 38 | 2006-07-22, 08:01 | Report

    fanoush
    Thank you, Great!!! I deleted from your script all strings about password, add run-path to load-applet-run. Working excellent.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    BanditRider | # 39 | 2006-07-22, 11:56 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    ITom | # 40 | 2006-07-22, 12:43 | Report

    BanditRider
    Same situation for me with pauses and same thinking about buffer in audio player only because no pauses during video playing.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 4 of 5 | Prev |   2     3   4   5   | Next
vBulletin® Version 3.8.8
Normal Logout