[SOLVED] How to switch from net_applet to NetworkManager

[SOLVED] How to switch from net_applet to NetworkManager

Postby fraterlinux » Aug 11th, '13, 18:05

I would like to ask the technical positive aspects and negative aspects: net_applet | NetworkManager

In Mageia 3 net_applet is too buggy. I would like to switch to NetworkManager. I wonder how I should proceed and tips for this.
Last edited by fraterlinux on Aug 18th, '13, 01:03, edited 2 times in total.
fraterlinux
 
Posts: 131
Joined: Jun 21st, '12, 13:15

Re: net_applet or NetworkManager :-(

Postby doktor5000 » Aug 11th, '13, 19:05

Switching to networkmanager should be quite easy:

Make sure that for every connection "Allow interface to be controlled by Network Manager" is enabled -> http://doc.mageia.org/mcc/3/en/content/ ... onnect-end
( can also be easily changed for all interfaces via
Code: Select all
sed -i 's/NM_CONTROLLED=no/NM_CONTROLLED=yes/' /etc/sysconfig/network-scripts/ifcfg-*
as root )

Install networkmanager including networkmanager-applet, enable automatic startup as root via
Code: Select all
systemctl enable NetworkManager.service
(at this point your connection will break, if you need it again you may need to
Code: Select all
systemctl stop NetworkManager.service
and it will work again for some minutes.

Then disable net_applet autostart (can be done via right-click -> Settings or by putting AUTOSTART=FALSE into ~/.net-applet ) and on next boot networkmanager should be in charge. Depending on your setup you may need to kill an additional wpa_supplicant process, which may still be running, as networkmanager spawns its own instance.

Just tried it, and it works as expected.
Last edited by doktor5000 on Jan 19th, '14, 16:44, edited 1 time in total.
Reason: added code tags, to improve on clarity
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 14495
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to switch from net_applet to NetworkManager

Postby docBeeJay » Aug 17th, '13, 03:38

doctor5000 writes:
Then disable net_applet autostart (can be done via right-click -> Settings or by putting AUTOSTART=FALSE into ~/.net-applet ) and on next boot networkmanager should be in charge. Depending on your setup you may need to kill an additional wpa_supplicant process, which may still be running, as networkmanager spawns its own instance.

Just tried it, and it works as expected.


I don't get it! Right-click where? (Am running GnomeClassic until I can get wifi up.) In system settings there is no option for disabling net_applet. Also, the file .net-applet goes in what directory? I put it in my home directory but the net_applet still appears after reboot and login and network will not connect.

I am at my wits end to get my new laptop to work with Mageia 3. Never had a problem before with Mandrake/Mandriva before, were always the best distributions out of the box.

Have tried uninstalling networkmanager, which sort of solves the problem, I can connect to wifi, but on the other hand Gnome goes to pots and so does ethernet. How does one get rid of, kill, smash, bury deep into the ground, that hellish net_applet? From what I've understood the Intel Centrino Advanced-N 6235 network card I have does not like having both programs competing for its attention. Result: I can see the network but cannot connect. Please help!

dBJ
docBeeJay
 
Posts: 1
Joined: Aug 17th, '13, 03:03

Re: How to switch from net_applet to NetworkManager

Postby doktor5000 » Aug 17th, '13, 11:04

For net_applet, under Gnome 3 it appears in the lower right corner, and it only appears when you move the mouse there.
For gnome classic i've no clue, probably it will located in the systray, so right-click on the icon, and there you have the setting.

For the file you mentioned, it's ~/.net-applet
That means it's a hidden file in your /home/username.
Code: Select all
[doktor5000@Mageia3 ~]$ pwd
/home/doktor5000
[doktor5000@Mageia3 ~]$ cat ~/.net_applet
AUTOSTART=FALSE
[doktor5000@Mageia3 ~]$



If you have issues with wireless in general, please create a separate thread, and at least provide the following information:
Which media did you use to install Mageia, and which desktop environment are you using? Do you use net_applet or NetworkManager?
And please provide the output of the following commands:

Code: Select all
lspcidrake -v | grep NET
ps -ef | grep -ie net -e wpa


and, as root:
Code: Select all
journalctl -b -u network --no-pager
systemctl status network.service
journalctl -b | grep -i firmwarel
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 14495
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to switch from net_applet to NetworkManager

Postby fraterlinux » Aug 17th, '13, 12:44

How do I uninstall net_applet without uninstall drakconf?
fraterlinux
 
Posts: 131
Joined: Jun 21st, '12, 13:15

Re: How to switch from net_applet to NetworkManager

Postby doktor5000 » Aug 17th, '13, 15:03

Code: Select all
rpm -e --nodeps drakx-net-applet


But why do you want to uninstall it?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 14495
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to switch from net_applet to NetworkManager

Postby fraterlinux » Aug 17th, '13, 15:12

I'll only use NetworkManager!
fraterlinux
 
Posts: 131
Joined: Jun 21st, '12, 13:15

Re: How to switch from net_applet to NetworkManager

Postby doktor5000 » Aug 17th, '13, 15:19

And? What if networkmanager doesn't work, and you need an alternative to initiate a network connection, but net_applet is uninstalled then?
If net_applet doesn't start with the system and is not in control, there's no need to uninstall it.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 14495
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to switch from net_applet to NetworkManager

Postby fraterlinux » Aug 17th, '13, 16:05

It's something to think about, but everything is working perfect. I'll think about it calmly.
fraterlinux
 
Posts: 131
Joined: Jun 21st, '12, 13:15

Re: How to switch from net_applet to NetworkManager

Postby doktor5000 » Aug 17th, '13, 16:39

Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 14495
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to switch from net_applet to NetworkManager

Postby tlmiller » Dec 20th, '14, 07:30

doktor5000 wrote:
Code: Select all
rpm -e --nodeps drakx-net-applet


But why do you want to uninstall it?


This thread actually assisted me also. My reason for uninstalling net applet was very simple actually. While it was GREAT at managing a single wireless connection, ANY further network connection I would connect to AFTER the first (I have 2 smartphones and a hotspot in addition to my home wireless) it will only connect to once in a while, disconnect every 5 minutes, then be completely unable to even SEE the connection anymore until I restart the hotspot AND the the net applet. IMO, it's a very poorly written piece of software that is about as useful as having nothing, so I uninstalled after switching to networkmanager (still not my favorite manager, I prefer wicd, but not available in Mageia).
User avatar
tlmiller
 
Posts: 58
Joined: Apr 11th, '11, 20:45
Location: Mesa, Arizona

Re: [SOLVED] How to switch from net_applet to NetworkManager

Postby pmithrandir » Jun 21st, '15, 16:10

Hi,

Just to know if this process is still valid.

I don't find the applet for plasma. (there is gnome, but no KDE)

I really don't like the defaut mageia net applet, too limited, in particular for defining IP and switching from one network to another.
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 403
Joined: May 4th, '11, 19:30

Re: [SOLVED] How to switch from net_applet to NetworkManager

Postby doktor5000 » Jun 21st, '15, 16:34

Yes it is, but feel free to proofread it on a fresh installation. You would only need to prevent net_applet from autostarting,
and install the plasma applet, it's called plasma-applet-nm and then add it either to systray by right-clicking the systray,
"settings for systray area of control panel" ( or whatever that's called in english) and on the right side in "additional elements" select network management.

According to my notes, this should do it:

Code: Select all
echo "AUTOSTART=FALSE" > ~/.net_applet
killall net_applet

sudo urpmi networkmanager-applet plasma-applet-nm
sudo systemctl start NetworkManager.service; sudo systemctl enable NetworkManager.service
systemctl disable NetworkManager-wait-online.service
sudo systemctl status NetworkManager.service
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 14495
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest