Re: Write to network interfaces and wpa_supplicant?
On Tue, 2006-09-19 at 18:27 -0400, withayanda wrote: > I really do enjoy the fact that this "just works". It's much easier > than having to configure everything by hand. > > But I've run into a bit of a snag on one particular laptop. Something > needs my wireless interface's config written to the usual > /etc/network/interfaces and the wpa configuration (for the default > wifi network in the office) written to the usual Out of curiosity, what needs this? I'm interested to know; a config tool of some sort? Something that reports network status or configuration? Anyway, NetworkManager doesn't write stuff out to text files. If you need this information, you can use NetworkManagerDispatcher to run a script to pull the information out of NetworkManager via D-Bus and write it to those files as you wish. Using Python would be even easier. The standard way to get information about your network is to use the NetworkManager D-Bus interface, not text files. > /etc/wpa_supplicant.conf. On this particular laptop, I can't seem to > be able to get this working correctly "the hard way" by writing out > the config to those 2 files. Yet, I'm able to connect flawlessly via > the applet. > > Is there any way to look at the configuration that NM is using once > it's connected to a network so that I might be able to write those 2 > config files correctly? Thanks. Yup! D-Bus :) If you need pointers on the D-Bus interface or how to talk to it via Python or something, just let me know and I'd be happy to help. Dan > ___ > NetworkManager-list mailing list > NetworkManager-list@gnome.org > http://mail.gnome.org/mailman/listinfo/networkmanager-list ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Write to network interfaces and wpa_supplicant?
On 9/19/06, withayanda <[EMAIL PROTECTED]> wrote: > Is there any way to look at the configuration that NM is using once > it's connected to a network so that I might be able to write those 2 > config files correctly? Thanks. Not that I know of but if you post the settings you use in NM (Without the key and SSID of course) I can post an example wpa_supplicant.conf ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Write to network interfaces and wpa_supplicant?
I really do enjoy the fact that this "just works". It's much easier than having to configure everything by hand. But I've run into a bit of a snag on one particular laptop. Something needs my wireless interface's config written to the usual /etc/network/interfaces and the wpa configuration (for the default wifi network in the office) written to the usual /etc/wpa_supplicant.conf. On this particular laptop, I can't seem to be able to get this working correctly "the hard way" by writing out the config to those 2 files. Yet, I'm able to connect flawlessly via the applet. Is there any way to look at the configuration that NM is using once it's connected to a network so that I might be able to write those 2 config files correctly? Thanks. ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: netowork manager doesn't know it has connected
Does your system actually use DHCP or static IP? If DHCP, something isnot getting to NetworkManager. Be sure you have the correct 'dbus-send' magic at the top of the dhclient script (possiblyin /sbin/dhclient-script). The fact that NM is attempting to do autoiphere means that DHCP is clearly not succeeding, and that NM is told thatthe interface requires static IP configuration. Ah, great!This was the pointer I needed! Located dhclient-script in /etc/dhclient3 and tracked the problem down to a rogue whereami exit-hook script that broke the dhclient exit... Now works like a charm! Thanks! anze ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list