[tips] networkmanager perpetual un-connect

This forum is dedicated to testing early releases and cauldron : Howtos, tips, tricks and user global feedback and thoughts...

Helpful tip :
For bugs tracking we use : https://bugs.mageia.org = The Mageia Bug Tracker
In this bug tracker you'll find already reported bugs and you'll be able to report those you have found....

[tips] networkmanager perpetual un-connect

Postby charcler » May 7th, '11, 12:42

If you ve allready try to use NetworkManager, and see the perpetual unconnect trouble, simply :
sed -i 's/ifcfg\-mdv\,//g' /etc/NetworkManager/NetworkManager.conf
/etc/init.d/networkmanager restart
it's works




If you want to use NetworkManager on Mageia :

0) install it :
urpmi networkmanager-openvpn networkmanager-common networkmanager

1) install tools for Kde :
urpmi knetworkmanager-openvpn knetworkmanager

2) configure it :
add the good lines into network configuration files :
/etc/sysconfig/network-scripts/ifcfg-wlan0 (example, for wifi)
NM_CONTROLLED=yes

3) start it :
/etc/init.d/networkmanager start

-> BUG : it's works now, today, but unconnect perpetually
4) edit the NetworkManager configuration file, and remove the *mdv-plugin* from its conf :
/etc/NetworkManager/NetworkManager.conf :
plugins=keyfile

It's work now, without problem...
Now, remove the net_applet from boot, and have fun with the good kde applet for network...
rm /etx/xdg/autostart/net_applet.desktop

Enjoy
charcler
 
Posts: 25
Joined: May 4th, '11, 00:38

Re: [tips] networkmanager perpetual un-connect

Postby Sfiet_Konstantin » May 7th, '11, 12:46

Thanks for the tuto
One question : if I use your configuration, are the WPA credentials stored in a global settings file or in KDE (or GNOME) passeword management ?
Sfiet_Konstantin
 
Posts: 157
Joined: Apr 1st, '11, 19:59

Re: [tips] networkmanager perpetual un-connect

Postby charcler » May 7th, '11, 13:02

i dont know (not using this feature)
charcler
 
Posts: 25
Joined: May 4th, '11, 00:38

Re: [tips] networkmanager perpetual un-connect

Postby charcler » May 7th, '11, 13:38

I was tried : yes it s work (on kde)

there is a bug into knetworkmanager plasma : the essid choosen, with 'map', does not automaticly in the essid box : must be enter essid name by hand. That's all.
second : thinking about dns and hostname fix settings.

Yes, it's works with kwallet too.
charcler
 
Posts: 25
Joined: May 4th, '11, 00:38

Re: [tips] networkmanager perpetual un-connect

Postby Sfiet_Konstantin » May 7th, '11, 14:01

It is because I'm searching for a globally managed networkmanager
(see thihs post http://lamarque-lvs.blogspot.com/2011/0 ... r-462.html)

EDIT : I want to have all my accouts be able to connect to wifi without saving them in different kwallets.
Last edited by Sfiet_Konstantin on May 7th, '11, 14:05, edited 1 time in total.
Sfiet_Konstantin
 
Posts: 157
Joined: Apr 1st, '11, 19:59

Re: [tips] networkmanager perpetual un-connect

Postby charcler » May 7th, '11, 14:03

video on "it's works with kwallet too" :
http://www.youtube.com/watch?v=LsNtgotnFXM
charcler
 
Posts: 25
Joined: May 4th, '11, 00:38

Re: [tips] networkmanager perpetual un-connect

Postby charcler » May 7th, '11, 14:09

Sfiet_Konstantin wrote:It is because I'm searching for a globally managed networkmanager
(see thihs post http://lamarque-lvs.blogspot.com/2011/0 ... r-462.html)


Some trouble in integration, but very minors :
0) libnm-settings-plugin-ifcfg-mdv.so (bigbuggy)
1) hostname (trouble between dhcp attribution and local configuration, by default. fix is easy)
2) dns (dont know. fix is easy)

All seems to be Mandriva problem, not NM (i dont have any problem on my Fedora righ now, with NM and Knm, since 14)
charcler
 
Posts: 25
Joined: May 4th, '11, 00:38

Re: [tips] networkmanager perpetual un-connect

Postby charcler » May 7th, '11, 14:16

So, for me not networkmanager nor Knetworkmanager are in cause.
There are just, and only, mandriva problems.

And thanks for all ! :)
charcler
 
Posts: 25
Joined: May 4th, '11, 00:38

Re: [tips] networkmanager perpetual un-connect

Postby charcler » May 7th, '11, 21:15

CORRECTIONS :

0) Install NM :
urpmi networkmanager-openvpn networkmanager-common networkmanager

1) Edit NM central config file :
/etc/NetworkManager/NetworkManager.conf
erase the ifcfg-mdv reference, line simple as :
plugins=keyfile
add another paragraph for this plugin :
[keyfile]
hostname=your_hostname

(replace your_hostname by the hostname of your machine.)
The first correction, remove ifcfg-mdv to prevent bug into this plugin (and, additonnally, could manage openvpn into knetworkmanager applet). The second correction, fix hostname, to prevent machin renaming with data from dhcp server (and, additonnally, prevent console ownership loosing)

2) Adjust pm-utils :
mv /usr/lib/pm-utils/sleep.d/10network /root
This correction to prevent multiples connection attempts when back from suspend-to-ram.

3) Adjust selected services :
remove : network + network-auth + network-up from boot.
add : networkmanager at boot.

That's all.

Additonnally, you could remove the hackish into /etc/sysconfig/network-scripts/ifup-wireless : this part of this file is no longer useful. Last, you could create a dhclient.conf into /etc with send host-name "your_hostname"; directive, but useless now (?)

NetworkManager and it's Kde applet now works great on my (your?) Mageia.
charcler
 
Posts: 25
Joined: May 4th, '11, 00:38

Re: [tips] networkmanager perpetual un-connect

Postby charcler » May 7th, '11, 22:21

Sfiet_Konstantin wrote:It is because I'm searching for a globally managed networkmanager
(see thihs post http://lamarque-lvs.blogspot.com/2011/0 ... r-462.html)

EDIT : I want to have all my accouts be able to connect to wifi without saving them in different kwallets.


1) I dont have possibility on my phone to manage a connection trough the BT. So, i can't do any tests for you :(

2) For the Kwallet : i have (without modifications) severals wifi connection into one wallet.
charcler
 
Posts: 25
Joined: May 4th, '11, 00:38


Return to Testing : Alpha, Beta, RC and Cauldron

Who is online

Users browsing this forum: No registered users and 1 guest

cron