I do not want NetworkManager to list or manipulate my wireless card. Can I hide its interface from NetworkManager somehow?

I have tried adding this in /etc/network/interfaces,

iface wlan0 inet static
    address 192.168.1.101
    netmask 255.255.255.0
    gateway 192.168.1.1
    wireless-essid Synaptotagmin
    pre-up wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
    post-down killall -q wpa_supplicant

and this in /etc/NetworkManager/nm-system-settings.conf,

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false

[keyfile]
unmanaged-devices=/org/freedesktop/Hal/devices/net_00_19_e0_57_86_af

but NetworkManager Applet still lists and allows me to connect to wireless networks.

link|improve this question

80% accept rate
Do you want other applications to be able to see your wireless card? Are you just trying to manually control the settings via your interfaces file or some non-NetworkManager mechanism? I assume a modprobe blacklist is more than you want? – belacqua Jan 18 '11 at 3:20
That's correct, I still want to be able to manually control the network interface outside of NetworkManager. – ændrük Jan 18 '11 at 4:19
feedback

4 Answers

Use the following /etc/NetworkManager/nm-system-settings.conf:

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false

This way your interfaces from /etc/network/interfaces will be unmanaged by Network Manager, i.e. it will not try to do anything with them.

link|improve this answer
Thanks, but the file already contains these settings. I've updated my question to include this. – ændrük Jan 17 '11 at 19:47
feedback
up vote 2 down vote accepted

According to this documentation, the syntax in /etc/NetworkManager/nm-system-settings.conf is different than what I'd read elsewhere. It should be:

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false

[keyfile]
unmanaged-devices=mac:00:19:e0:57:86:af

This configuration makes NetworkManager oblivious to the existence of my wireless card, but still allows me to control it using other methods.

link|improve this answer
the conf files seem to have changed in later releases im using oneiric. i did the same change but in the file /etc/NetWorkManager/NetworkManager.conf – tomodachi Apr 16 at 22:36
feedback

I assume you're on Ubuntu Desktop; if that's the case, right-click on nm-applet (I think on Natty you just click) and uncheck 'Enable wireless'. The only caveat is that you'll have to do that every time you log in.

link|improve this answer
feedback

just create a .sh file with killall -q wpa_supplicant and execute it using cron when you login .

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.