OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Security and Networking => Topic started by: icruise on August 15, 2005, 04:29:26 am

Title: An Easy Way To Mount Samba Shares?
Post by: icruise on August 15, 2005, 04:29:26 am
I'm a linux newbie, but I'm able to mount my windows machine's shared folder in the terminal with smbmount //computername/SharedDocs /mnt/smb.

But I'd like a quick and easy way to mount and unmount this. Smbmounter looked like it would be the answer, but it doesn't seem to work. The folders computername/SharedDocs/ will appear in the NetworkedFolders folder, but there is nothing inside. Yes, I have given the program root priveleges. Any ideas as to what is wrong? What other ways are there to mount these servers, aside from typing directly in the terminal?
Title: An Easy Way To Mount Samba Shares?
Post by: lpotter on August 15, 2005, 02:49:11 pm
i have been working on opie-smb lately, which does what you want. Can't say when it will make it's way into the distribution, though.

I might make a special ipk for qtopia/sharp roms
Title: An Easy Way To Mount Samba Shares?
Post by: cvmiller on August 20, 2005, 11:08:35 am
Quote
I might make a special ipk for qtopia/sharp roms
[div align=\"right\"][a href=\"index.php?act=findpost&pid=91919\"][{POST_SNAPBACK}][/a][/div]

Hey this would be great  if you would make a special ipk for us throw-back still using the sharp rom.

Thank you in advance,

Craig...
Title: An Easy Way To Mount Samba Shares?
Post by: Tehas on August 20, 2005, 11:33:44 am
I created scripts that mount or unmount SMB shares (one for each PC or Zaurus).  In this case, I'm mounting my SL5600's share ("zephyrus" is its machine name in my /etc/hosts file).  I check the /mnt/smb directory, if it's empty, then I do a mount, if not, then I un-mount it.

The script uses the OPIE-SH package to display a dialog box telling you what it did.  

Any messages generated are sent to a log file that can be checked later.

I also use the "sudo" package to run the mount.

I then created an icon and added it to my SL6000 desktop so I can tap it to run it.

Code: [Select]
#--------------------------------
# Mount the Zephyrus over wiFi
# 2004-12-18 -  r.l. stoner
#--------------------------------

(
checkit=`ls /mnt/smb/ | wc -l`
#echo $checkit
if [ $checkit -ne 0 ]
   then
   echo "UnMounting Zephyrus home ..."
   sudo umount /mnt/smb
   /home/QtPalmtop/bin/opie-sh -m -w -t "Zephyrus Toggled" -M "Zephyrus/home un-mounted." -g
   exit 0
else
   echo "Mounting... Zephyrus"
   sudo smbmount //zephyrus/home /mnt/smb -o username=rick,password=xxx
   /home/QtPalmtop/bin/opie-sh -m -I -t "Zephyrus Toggled" -M "Zephyrus/home Mounted." -g
   exit 0
fi
) > /tmp/domntzeph.log

#--- end of script ---#