[linux-elitists] nmcli and NetworkManager configuration
p.mayers at imperial.ac.uk
Tue Aug 31 04:46:25 PDT 2010
On 08/29/2010 04:04 PM, Don Marti wrote:
> begin Jason White quotation of Sun, Aug 29, 2010 at 01:30:45PM +1000:
>> How is one supposed to configure NM from the shell, i.e., without
>> running X?
> It looks like NM uses gconf, so you can use
> gconftool-2 to read and change settings:
To be more precise (i.e. pedantic!) NetworkManager uses dbus to get user
and system connection settings. The default user settings provider is
nm-applet, which stores its connection info in gconf and the system keyring.
The default system settings provider depends on the NM version, but in
newer version is usually a plugin which reads (and in some cases writes)
system /etc files. This plugin does not support non-ethernet connection
types, so you might need to chain a 2nd plugin, keyfile, to store those.
AFAIK there is no "configure NetworkManager" dbus API; instead you edit
the backend that the system/user settings provider reads (and hope it
has file/database change notification). This is probably not optimal.
More information about the linux-elitists