Re: Network Manager and NFS

On August 10, 2008 08:04:51 pm Dan Williams wrote:
> On Fri, 2008-08-08 at 22:43 +0100, The Holy ettlz wrote:
> > Hello,
> >
> > > I like the way Knetwork Manager and Network Manager work for the most
> > > part, but I find I cannot use them - why - because I need to change my
> > > nfs networks at each site I log into. And because network manager
> > > doesn't understand this, I have to use ifup and scpm to do it.
> >
> > The "semi-canonical" way to do it probably to add some hook scripts
> > into /etc/NetworkManager/dispatcher.d/. Last time I checked, the
> > dispatcher ran each of these scripts in alphanumeric order with
> > arguments
> Right.  Dispatcher scripts are the best way to do this sort of thing if
> all you need are a few lines of shell.
> >     <interface> {up|down}
> >
> > You'll probably need to cook up some of your own wizardry in order to
> > automatically decide what network you're on, then change the NFS mounts,
> > etc. (I don't think there's any way at present to automate this on a
> > per-user basis, although as far as I understand it'd certainly be
> > possible with the current  NM to write a user session daemon that waits
> > for a particular network connection and then, say, does a FUSE mount.)
> We can certainly export the connection name, path, id, and settings
> service, which should be enough to ID the connection.  That can be
> stuffed into the environment that the script gets executed with.  The
> DHCP4 config is already exported in this manner, which you could use in
> the mean time.
> Dan

Thanks, Fellows, both of you for responding with your suggestions. I'm not 
competent to write either "hook" or "dispatcher" scripts (are they one and 
the same thing?) 

However, I've looked at the scripts in this folder, and they're full of 
references that mean nothing whatever to me. I appreciate your advice, but I 
know nothing about user session daemons or FUSE mounts. If that's what it 
will take, I'll forget about it. 

My workaround, which isn't entirely satisfactory, is to use ifup and dispense 
with network manager altogether. Unfortunately, that doesn't allow me to see 
other possible network connections and make quick and easy connections when 
I'm on the road.

What I still don't understand, though, is why Network Manager isn't configured 
to deal with managing changing nfs networks. 

Robert Smits CEP525G

Nanaimo, Duncan & District Labour Council
Box 822 Nanaimo, V9R 5N2 Ph 250-753-0201
Fax 250-753-2954 Email labour telus net

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]