On Thu, 2007-09-13 at 18:38 -0600, Blayde wrote: > On 9/13/07, Dan Williams <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-09-07 at 16:21 -0600, Blayde wrote: > > > I've seen that nm-tool will tell which wireless network is being used, > > > but is there any way to actually change/connect to a wireless network > > > from the command line? I've got an old laptop that I'm trying to use > > > w/o a gui as much as possible... Any help is much appreciated. > > > > The best way is actually through python using dbus, because python makes > > talking to dbus-enabled services insanely easy. Otherwise you can use > > straight C if you like, but that's much more complicated. Both the > > applet and nm-tool use D-Bus to talk to NetworkManager, so the same > > interfaces they use are available from anywhere. You may also want to > > look at dbus-send, which allows you to do things like: > > > > dbus-send --print-reply --system --dest=org.freedesktop.NetworkManager > > /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.getDevices > > > > Dan > > > > Thanks for your help. I've been wanting to work w/ python some more > and dbus sounds like it's easy as well. I'm hoping your dbus-send will > be a good starting point. I might be back if I have problems...
I've done some bits for NM 0.6.5 (if you ignore the mesh device stuff) in Python for OLPC, see: http://dev.laptop.org/git?p=sugar;a=tree;f=shell/hardware;h=8aff689e0b0deee8ecf4c1a6dabbb542e6f158b5;hb=HEAD in the nmclient.py and nminfo.py files. Dan > -Blayde > _______________________________________________ > NetworkManager-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/networkmanager-list _______________________________________________ NetworkManager-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/networkmanager-list
