Fayd
Diamond Member
i'm trying to mount network shares in xubuntu karmic on my laptop.
i have windows vista x64 sharing several folders that i set up for my laptop to access. i tried pyNeighborhood and Gigilo, and neither one can see the other computers on the network. edit: i also tried jftp.
in pyneighborhood, the error was "couldnt scan workgroup" or similar, and when i gave it the computer details explicitly, it couldnt scan the computer.
anyways...
i looked online for a guide, and found a command that lists all the shared resources avail to me. it found all the other computers and their shared folders. i also confirmed the IP address and whatever i needed.
i found another guide to mounting network shares at the command line. so i set up a bash shell script to mount the network shares.
#!/bin/bash
sudo smbmount //192.168.xxx.xxx/stuff /mnt/stuff username=Guest,password=,uid=username
the problem now is, whenever i run that script (sh mntstuff.sh) it asks for a password. this isnt necessary, simply entering clears the password prompt and it works. (it works the same if i put anything in the password space. still asks for password.)
so all i'm asking really is how to enter past a password prompt in a shell script. because if i could do that, i could line all the shares up in 1 script and run it whenever i connect to the network.
i dont want to set this up in /etc/fstab, because this is a laptop that doesnt always have access to the shares. so i dont want to go through the long process of erroring out every time i start up.
as an aside... let's say i have around 120k image files in a very large file tree. i want to copy them to another folder...how would i go about doing that with the terminal? in windows i would have used robocopy /mir... but...yeah.
i have windows vista x64 sharing several folders that i set up for my laptop to access. i tried pyNeighborhood and Gigilo, and neither one can see the other computers on the network. edit: i also tried jftp.
in pyneighborhood, the error was "couldnt scan workgroup" or similar, and when i gave it the computer details explicitly, it couldnt scan the computer.
anyways...
i looked online for a guide, and found a command that lists all the shared resources avail to me. it found all the other computers and their shared folders. i also confirmed the IP address and whatever i needed.
i found another guide to mounting network shares at the command line. so i set up a bash shell script to mount the network shares.
#!/bin/bash
sudo smbmount //192.168.xxx.xxx/stuff /mnt/stuff username=Guest,password=,uid=username
the problem now is, whenever i run that script (sh mntstuff.sh) it asks for a password. this isnt necessary, simply entering clears the password prompt and it works. (it works the same if i put anything in the password space. still asks for password.)
so all i'm asking really is how to enter past a password prompt in a shell script. because if i could do that, i could line all the shares up in 1 script and run it whenever i connect to the network.
i dont want to set this up in /etc/fstab, because this is a laptop that doesnt always have access to the shares. so i dont want to go through the long process of erroring out every time i start up.
as an aside... let's say i have around 120k image files in a very large file tree. i want to copy them to another folder...how would i go about doing that with the terminal? in windows i would have used robocopy /mir... but...yeah.
Last edited: