You are not logged in.

#1 2015-04-15 20:35:00

AlexanderHolmgaard
Member
Registered: 2014-11-18
Posts: 57

[SOLVED] Disable/remove NetworkManager, and use netctl

Hello!
I just installed arch linux and gnome shell with only few applications. I was using netctl-auto, which I enabled using systemctl during the installation. Everything was worked fine, until I installed the packages tlp and tlp-rdw. They pulled in NetworkManager as a dependency and now I can only use this and not netctl. When I try to uninstall NetworkManager it doesn't allow me, because of some applications that depend on it. One of them is "telepathy-mission-control" and appearantly gnome-shell is depending on that... I have no idea why this complication suddenly occurs, since everything was working fine until I installed tlp, tlp-rdw and its dependencies.
Can anyone tell me how to disable or preferably completely remove NetworkManager in favor of netctl, so we can be re-united and live happily in netctl-auto-harmony once again?

Last edited by AlexanderHolmgaard (2015-04-16 12:27:16)

Offline

#2 2015-04-15 20:49:06

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Disable/remove NetworkManager, and use netctl

# systemctl stop NetworkManager.service
# systemctl disable NetworkManager.service

The capitalisation is important wink


Jin, Jîyan, Azadî

Offline

#3 2015-04-15 20:56:49

AlexanderHolmgaard
Member
Registered: 2014-11-18
Posts: 57

Re: [SOLVED] Disable/remove NetworkManager, and use netctl

Perfect, thanks a lot! Netctl-auto is working again now. I absolutely love netctl..
Do you have any idea if I in any way can remove NetworkManager too? I realize that it is pretty much without significance, I just don't really like the idea of having redundant stuff like that lying around tongue

Offline

#4 2015-04-15 21:02:09

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Disable/remove NetworkManager, and use netctl

AlexanderHolmgaard wrote:

Do you have any idea if I in any way can remove NetworkManager too?

You could try rebuilding tlp & tlp-rdw using the ABS and remove the dependency.

I don't know if that would actually work but it's the only option I can think of.


Jin, Jîyan, Azadî

Offline

#5 2015-04-15 21:04:35

AlexanderHolmgaard
Member
Registered: 2014-11-18
Posts: 57

Re: [SOLVED] Disable/remove NetworkManager, and use netctl

Alright, thanks for the suggestion! I think I'm just gonna stick with having it lying around, it can't take up that much memory anyway. Netctl is working like a charm again, so thats what matters smile

Offline

#6 2015-04-15 21:47:12

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,721

Re: [SOLVED] Disable/remove NetworkManager, and use netctl

My personal configuration is to use netctl and to keep NetworkManager around in a dormant state.  Occasionally I find myself in a hotel or business that have strange networks that are difficult to connect to using netctl.  It can be done, but for short stays it is easier just to turn off netctl and use NetworkManager.  It is nice to have an extra tool when needed.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#7 2015-04-15 22:28:08

AlexanderHolmgaard
Member
Registered: 2014-11-18
Posts: 57

Re: [SOLVED] Disable/remove NetworkManager, and use netctl

True. I never thought about it that way. Never came across a network I couldn't connect to using netctl. But right you are, good to have a backup! Thanks smile

Offline

#8 2015-04-16 08:43:52

AlexanderHolmgaard
Member
Registered: 2014-11-18
Posts: 57

Re: [SOLVED] Disable/remove NetworkManager, and use netctl

Okay, so a problem has occured again.. After a reboot it would seem that NetworkManager is enabled again. And this time the only way I could get access to the internet through either one of them, was with netctl when I stopped and disabled NetworkManager AND, for some reason, I also had to delete the filed in /etc/netctl/ that contains the info for the network I was using, and connect to it from wifi-menu again...
Any suggestions how I can make NetworkManager not do this, when I reboot again? Would be nice if I didn't have to do this every time, I turn my computer back on smile

Offline

#9 2015-04-16 12:26:58

AlexanderHolmgaard
Member
Registered: 2014-11-18
Posts: 57

Re: [SOLVED] Disable/remove NetworkManager, and use netctl

Okay, I figured it out now. Had to mask it with systemctl to make it now start up after a reboot. I used following commands:

sudo systemctl mask NetworkManager
sudo systemctl mask NetworkManager-dispatcher

Gonna mark this as solved.

Offline

#10 2015-04-16 12:44:13

kenwong
Member
Registered: 2015-04-06
Posts: 21

Re: [SOLVED] Disable/remove NetworkManager, and use netctl

But is nm-applet still running in the background?

Offline

#11 2015-04-16 13:33:28

AlexanderHolmgaard
Member
Registered: 2014-11-18
Posts: 57

Re: [SOLVED] Disable/remove NetworkManager, and use netctl

Yes, unfortunately it is. But it is not disturbing the functionality anymore. Do you know how I can disable it?

Offline

#12 2015-04-16 13:54:39

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] Disable/remove NetworkManager, and use netctl

kenwong wrote:

But is nm-applet still running in the background?

AlexanderHolmgaard wrote:

Yes, unfortunately it is. But it is not disturbing the functionality anymore. Do you know how I can disable it?

/etc/xdg/autostart/nm-applet.desktop starts it automatically with most desktops. Simplest way to disable it would be removing the file, and adding it to NoExtract in your pacman.conf

It's not even required in gnome since networking has been integrated to the shell, so you could just disable it even if you were using networkmanager with gnome

Offline

#13 2015-04-16 14:44:16

kenwong
Member
Registered: 2015-04-06
Posts: 21

Re: [SOLVED] Disable/remove NetworkManager, and use netctl

ooo wrote:

and adding it to NoExtract in your pacman.conf

Do you mean that in the pacman.conf file I make it like this?

NoExtract=/etc/xdg/autostart/nm-applet.desktop

Offline

#14 2015-04-16 14:54:17

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] Disable/remove NetworkManager, and use netctl

kenwong wrote:
ooo wrote:

and adding it to NoExtract in your pacman.conf

Do you mean that in the pacman.conf file I make it like this?

NoExtract=/etc/xdg/autostart/nm-applet.desktop

yes. see 'man pacman.conf' for details.

EDIT: actually it looks like that can't have that first /, so this should work better:

NoExtract=etc/xdg/autostart/nm-applet.desktop

Last edited by ooo (2015-04-16 15:05:18)

Offline

#15 2015-04-16 20:33:29

linrunner
Member
Registered: 2013-04-21
Posts: 56

Re: [SOLVED] Disable/remove NetworkManager, and use netctl

Hi,

just for the record: only the package tlp-rdw depends on NetworkManager. You may happily use tlp alone.

Last edited by linrunner (2015-04-16 20:34:55)

Offline

#16 2015-08-14 02:42:48

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [SOLVED] Disable/remove NetworkManager, and use netctl

linrunner wrote:

Hi,

just for the record: only the package tlp-rdw depends on NetworkManager. You may happily use tlp alone.

Not entirely accurate, because if you enable tlp.service it will automatically pull in NetworkManager in any case. Just hit this myself. Which is why masking works above.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB