Disable NetworkManager
I need to disable networkmanager from starting up when my debian system boots up, but cant figure out how to. I've gone into desktop-> preferences -> session and removed it from there (actually just disabled), but when i do a ps -A it is still running. How do i stop it from starting up completely? I'm trying to run aireplay-ng but it keeps locking up and they suggested removing networkmanager.
|
Hello
What I did in Ubuntu was uninstalling it. Bye Koen Plessers |
I tried to do a apt-get remove networkmanager but it couldnt find it, what should i try?
|
I'm not familiar with Debian-based operating systems, but in Fedora you can go into services and stop network manager from running at startup. Root around in your system preferences and see if you can find a utility for setting your service preferences.
Okay, late note: looks like there is a Debian services control panel app you could use (may have to install). Here's one web site with some info: http://davidasorey.net/static/debian-srv-cp/ |
Quote:
I think it is apt-get remove network-manager. The - makes the difference :-) Koen Plessers |
If you are wanting to remove NetworkManager from a Fedora install:
# yum remove NetworkManager It's the best thing I've done all day! |
Uninstall stop service Network Manager, but getting a connection stops
Quote:
I want to completely remove it due to me wanting to setup a live web apache server and various services that fit into apache, and the /etc/hosts file just keeps getting cluttered up with rubbish every time i would try and restart the network manager service due to it not connecting when I cleared the IP tables out of my router. Its really annoying network manager and yes I was just wondering how to setup the configs so I can get on the web, please could you keep it as simple as you possibly can? I'm still getting used to Linux but finding it quite enjoyable (dispite this little problem), and doing some quite advanced things with it which I am really pleased with. Thanks, Jez |
Quote:
#chkconfig network on #service network start [EDIT] I tested this out on fedora 12 and to get it to work I had to edit the file /etc/sysconfig/network-scripts/ifcfg-eth1 and set onboot to yes. Note: you replace eth1 with your network adapter. |
On a sysv init system recent versions of Network Manager can be stopped by
Code:
# /etc/init.d/NetworkManager stop To prevent NM from running at startup you can remove the link to /etc/init.d/NetworkManager from your default runlevel etc/rcX.d directory. Some older versions of NM were started/stopped by the dbus init script, e.g on ubuntu 8.04 these commands were needed: Code:
/etc/dbus-1/event.d/25NetworkManager stop FYI, using your gui desktop/preferences/session menu likely just stops the NM applet that appears in your system tray, not NetworkManager itself. |
Disable Network Manager
Quote:
System >> Administration>> Network this opens up system-config-network choose your Ethernet interface and hit EDIT there is a tick box to manage with NetworkManager untick this box then activate the interface this will set-up your interface correctly and it will look like this : /etc/sysconfig/network-scripts/ [root@loge-2 network-scripts]# more ifcfg-eth0 # Networking Interface DEVICE=eth0 HWADDR=00:13:20:4F:21:76 BOOTPROTO=dhcp <<<<<<<< You want this too probably TYPE=Ethernet NM_CONTROLLED=no ONBOOT=yes <<<<<<This is what you want !! USERCTL=yes PEERDNS=yes IPV6INIT=no You will still have NetworkManager in your computer but in an inactive state. Although un installing it does feel better ! |
Debian is using upstart
I think only Debian is using a new startup directory for some services at /etc/init and network-manager is one of them.
1. Edit the file: /etc/init/network-manager.conf 2. Comment out the the stop and start lines by preceeding them with a # # start on (local-filesystems # and started dbus) # stop on stopping dbus Who is John Galt anyway? |
All times are GMT -5. The time now is 11:25 AM. |