Entries tagged as laptopRelated tags catalyst adam admin adsl asterisk audio baby brooke debian dns enum evolution family geek gnome google hardware house ipv6 lca lca2009 lca2010 lca2011 lca2013 lca2014 lca2015 lca2019 lede linux linux.conf.au mythtv mythtv-status openstack oss perl recycle rpi software stereo voip ben lca2007 photos social networking cacert catalystcloud fai fedora_coreos kernelTuesday, January 28. 2014
Laptops and networks Posted by Andrew Ruthven
in catalyst, family at
09:32
Comments (0) Trackbacks (0) Laptops and networks
Back in the old days, we had workstations. And only workstations. They lived on a network, and having them work in that network was simple. Printers just worked (thank you printcap), network shares just worked (thank you NFS) and life was good.
Then along came laptops. We wanted to be more mobile, using our laptops on different networks or even without a network! No one wanted hardcoded printers anymore, or network shares defined in /etc/fstab. Using an Automounter was an option, but if you were on a different network then having the Automounter around would stall tools like nautilus and file indexers etc. So we need something which can start up relevant services when you connect to a network, and then stop them when you leave that network. To support this, a few years ago I wrote a NetworkManager dispatcher.d script to do just that. When you connect to a specific network (using the NetworkManager UUID or a specific gateway MAC) or a VPN connection then autofs is started, users GTK bookmarks have any bookmarks for their Network shares added and CUPS is restarted. When the connection goes away, then autofs is stopped, any GTK bookmarks for the Network shares are removed and any mounts for the Network shares are lazily unmounted. I'm not sure if this will of use to anyone else, but if it is I'd love to hear from you. You can browse the code or clone the repo. Included are sample autofs config files, the dispatcher, and the tools for managing the GTK bookmark files. |
Calendar
ArchivesCategoriesSyndicate This BlogBlog AdministrationShow tagged entriesPowered by |