From FON Wiki Beta
Description
How to accessing the Fonera samba share under linux
- In Ubuntu 8.1 all necessary packages are allready installed,
- For Xubuntu 8.1 you need to install the following packages:
sudo apt-get install gvfs-bin gvfs-fuse
- Then you have to create a map where you will attach this share to (probably exists allready due to installing these packages)
mkdir ~/.gvfs
- Then the code to actually connect/mount these:
/usr/lib/gvfs/gvfs-fuse-daemon ~/.gvfs
- And let's mount the share now:
gvfs-mount smb://server/share
- Now fill in your username (fonero) , domain (LAN) and password (you might have to execute on your fonero under settings the Password setting again)
running it automaticly
gvfs-mount -u smb://server/share
sudo apt-get install expect
- then create the following 2 scripts:
- vi foneroconnect
#!/usr/bin/expect
set timeout 1
spawn gvfs-mount smb://192.168.10.1/Media
expect "username:"
send "fonero\r"
expect "domain:"
send "\r"
expect "password:"
send "FoneroWachtwoord\r"
expect eof
#!/bin/bash
/usr/lib/gvfs/gvfs-fuse-daemon ~/.gvfs
# volgende regel als je (draadloze) netwerkverbinding wat traag opstart...
#sleep 10
./foneroconnect
chmod +x foneroconnect
chmod +x foneromount.sh
- Put them in a nice folder
- add foneromount.sh to your automatic executing list of programs (/etc/profile.d... inittab?)