LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How KDE Network manager manage the connection at boot time? (https://www.linuxquestions.org/questions/slackware-14/how-kde-network-manager-manage-the-connection-at-boot-time-4175492397/)

freakTux 01-24-2014 05:39 AM

How KDE Network manager manage the connection at boot time?
 
Hi all!I have slackware64 14.1 and I'm tryng KDE after a long time with fluxbox!
In KDE I have configured the Network manager for my internet connection...Today I decided to configure a static IP for my wireless interface (just for testing), so I have opened /etc/rc.d/rc.init1.conf but all the settings of my wlan0 are commented.
So, I am wandering how the network manager manage the connection at boot time?
There is another configuration file that I don't know?Please clarify my doubts...

Drakeo 01-24-2014 05:59 AM

well when you use network manager you make the /etc/rc.d/rc.neworkmanager executable. if you have your computer set up to dhcpcd with rc.init1 you need to make that non-executable. you really don't use both because you will run into problems.
http://docs.slackware.com/slackware:beginners_guide scroll down to the bottom here ok and you will see choose one.
and if you do use the rc.init1 and for all make sure the user has net device in users groups.
now when that user starts or logs into the desktop it will run the connection he has set up.
remember if you connect as root first then the connection is owned by root.

freakTux 01-24-2014 07:10 AM

Quote:

Originally Posted by Drakeo (Post 5104310)
well when you use network manager you make the /etc/rc.d/rc.neworkmanager executable. if you have your computer set up to dhcpcd with rc.init1 you need to make that non-executable. you really don't use both because you will run into problems.
http://docs.slackware.com/slackware:beginners_guide scroll down to the bottom here ok and you will see choose one.
and if you do use the rc.init1 and for all make sure the user has net device in users groups.
now when that user starts or logs into the desktop it will run the connection he has set up.
remember if you connect as root first then the connection is owned by root.

...It seems like I have both rc.inet1 and rc.networkmanager executable...and even rc.wicd is executable...But this should be the default configuration, because I haven't change it after installing slackware 14.1...Now I am a little bit confused...
I would know how the system set up the connection at boot time...my system execute both rc.inet1, rc.networkmanager and rc.wicd, right?...it seems strange...and then, how networkmanager stores the wifi pwd and essid?I have the /etc/wpa_supplicant.conf that has these information...but I can remember I create that file with wpa_passphrase manually...God, when I was with fluxbox I used to execute wpa_supplicant manually for the connection...now everything is so automatic and this confuse me...

Didier Spaier 01-24-2014 07:56 AM

Well, I think that the beginners guide is slightly outdated as nowadays NetworkManager can handle wifi connections as well as wired ones.

Just run netconfig as root, choose 'loopback', input your hostname and domain name, confirm and you're all set.

Then, if you don't see the NetworkManager widget, just run as regular user "nm-applet" and it will show.

BTW, this works under Fluxbox as well, I'm using it right now ;)

freakTux 01-24-2014 08:25 AM

Quote:

Originally Posted by Didier Spaier (Post 5104374)
Well, I think that the beginners guide is slightly outdated as nowadays NetworkManager can handle wifi connections as well as wired ones.

Just run netconfig as root, choose 'loopback', input your hostname and domain name, confirm and you're all set.

Then, if you don't see the NetworkManager widget, just run as regular user "nm-applet" and it will show.

BTW, this works under Fluxbox as well, I'm using it right now ;)

Yes...but my question is not about how to make connection work, but is about what files are involved when the connection is managed from NetworkManager...In what file are stored information about the pwd and essid?What file I have to edit if I would to set things like dhcp or other wireless card related options?
Anyway, thanks for the interesting suggestions

lems 01-25-2014 10:19 AM

On my laptop it's /etc/NetworkManager/system-connections, then there is a filed named after my router's SSID. No idea if editing it works.


All times are GMT -5. The time now is 06:02 AM.