Ken Adams wrote: > On Tue, 2009-08-11 at 13:00 +0100, David Jones wrote: > >> Ken Adams wrote: >> >>> I have a new laptop with wifi and 9.04 running. I have various wifi >>> connections I use, including my home network with my server and desktop >>> machine. >>> >>> Is it possible to automatically mount the shares on my home network when >>> my laptop uses the home network. >>> >>> Rgds Ken >>> >>> >>> >>> >> I do that using NFS, my server has various drives mounted. When my >> laptop connects to the network, I've got a mount point specified in >> /media and I've got an entry in /etc/fstab to mount the ip-address/mount >> point to a local mountpoint on the laptop. >> >> Dave >> > > That bit sounds easy enough!!! Does this cause any problems when I am > connecting via wifi or mobile broadband when I am not at home? I will be > using my laptop alot away from the home LAN. > > Rgds Ken. > > Maybe rather than using NFS you could use SSHFS, you will need to forward a port on your router (you don't specifically have to use port 22, you could even use 222, 2222 or 1234 for instance). I'd also guess that it would be easier if you used shared keys so you don't have to enter passwords (or you could if you wanted).
Actually, looking at my settings, what I have done is created a connection in Gnome and told it to remember the password and then told it to create a bookmark (basically remember the connection). When I go into the connection it will automatically connect up. To get round having to use two different connections for inside the network and outside the network I have setup dnsmasq on my server and added the hostnames of each machine and the DynDNS domain name to the /etc/hosts file so they point to the internal IP address. This way when I'm at home I can connect to server.mydyndnsname.homelinux.org and it'll pick up the internal IP address and when I'm outside the network server.mydyndnsname.homelinux.org (as an example) will point to the IP address which my ISP has assigned to me (I've set up wildcards so *.mydyndnsname.homelinux.org points to the same IP address and the router forwards the ports on to the specific machine). Hope this makes some sense. Rob -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/