LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Disable NetworkManager (https://www.linuxquestions.org/questions/linux-networking-3/disable-networkmanager-598907/)

keith2045 11-11-2007 08:08 PM

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.

koen plessers 11-12-2007 01:15 PM

Hello

What I did in Ubuntu was uninstalling it.

Bye

Koen Plessers

keith2045 11-12-2007 01:37 PM

I tried to do a apt-get remove networkmanager but it couldnt find it, what should i try?

linux-goot 11-12-2007 06:06 PM

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/

koen plessers 11-13-2007 12:57 PM

Quote:

Originally Posted by keith2045 (Post 2956521)
I tried to do a apt-get remove networkmanager but it couldnt find it, what should i try?

Hello

I think it is apt-get remove network-manager. The - makes the difference :-)

Koen Plessers

virtbiz 04-09-2008 05:56 PM

If you are wanting to remove NetworkManager from a Fedora install:
# yum remove NetworkManager

It's the best thing I've done all day!

j.smith1981 02-20-2009 07:01 AM

Uninstall stop service Network Manager, but getting a connection stops
 
Quote:

Originally Posted by virtbiz (Post 3116257)
If you are wanting to remove NetworkManager from a Fedora install:
# yum remove NetworkManager

It's the best thing I've done all day!

When ive disabled network manager, yes it doesnt connect to the web but does anyone know where to set config files to get on the web again?

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

jjcf89 12-05-2009 10:59 AM

Quote:

Originally Posted by j.smith1981 (Post 3450966)
When ive disabled network manager, yes it doesnt connect to the web but does anyone know where to set config files to get on the web again?

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

This might be a bit late but if you uninstall NetworkManager you need to make sure to turn on the Network service because I don't think it will do it automatically. To do this in fedora run:
#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.

lwasserm 12-05-2009 11:59 AM

On a sysv init system recent versions of Network Manager can be stopped by

Code:

# /etc/init.d/NetworkManager stop
If your system has the "service" command you can also use "service 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
/etc/dbus-1/event.d/26NetworkManagerDispatcher stop

Replace "stop" with "start" in the same commands to restart NM.

FYI, using your gui desktop/preferences/session menu likely just stops the NM applet that appears in your system tray, not NetworkManager itself.

scunning 01-27-2010 11:33 PM

Disable Network Manager
 
Quote:

Originally Posted by jjcf89 (Post 3780966)
This might be a bit late but if you uninstall NetworkManager you need to make sure to turn on the Network service because I don't think it will do it automatically. To do this in fedora run:
#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.

In Fedora 11 ( and other RedHats) there is an easier way
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 !

dsaint63 10-17-2012 09:43 AM

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.