LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-06-2016, 09:11 PM   #31
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225

It is difficult to understand what you are trying to do and why you are doing it.
I cannot think of a normal use case where you would need to restart the NetworkManager daemon to fix a wireless (or other) connectivity problem.

There is an applet on the task bar for KDE that handles the user's view of the NetworkManager as well as a connection editor which you would use to manage your networking connections. You use the applet to manage the NetworkManager connections versus starting/stopping the NetworkManager daemon.
 
Old 03-06-2016, 09:53 PM   #32
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Quote:
In other hand , have , if use sudo AS ROOT , the services working...

why? ..im root , no need sudo to stop/start/restart
My best guess is that this is introducing some sort of a delay.
 
Old 03-19-2016, 08:39 PM   #33
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Regarding the vindication you express in this post, it would be helpful if you could report whether this change makes a difference.
 
Old 03-21-2016, 02:52 AM   #34
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Original Poster
Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
Today install new updates ...

/etc/rc.d/rc.networkmanager stop

Aparently is stop , but if i open the browser i can use net perfectly .. (non stoped then)

In to kde , ksysguard i use to monitoring net services ..

NetworkManager appears running ..

Last edited by USUARIONUEVO; 03-21-2016 at 02:55 AM.
 
Old 03-22-2016, 10:41 AM   #35
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by USUARIONUEVO View Post
Today install new updates ...

/etc/rc.d/rc.networkmanager stop

Aparently is stop , but if i open the browser i can use net perfectly .. (non stoped then)

In to kde , ksysguard i use to monitoring net services ..

NetworkManager appears running ..
Why do you think that stopping the daemon that configures and brings connections up should bring the connections down when you stop it? Why would that be a good thing?

I can stop sshd, for example, but any ssh connections that I have at the time will stay up. I just cannot make new ones.
 
Old 03-22-2016, 12:34 PM   #36
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
Quote:
Originally Posted by Richard Cranium View Post
Why do you think that stopping the daemon that configures and brings connections up should bring the connections down when you stop it? Why would that be a good thing?
WPA goes through wpa_supplicant
if you stop wpa_supplicant the link to the AP will be useless


edit:
nvm i was at fault
wpa is also a kernel thing
just tested it with SIGKILL and the connection still works
that wpa_supplicant will de-configure when sent a SIGINT still stands


WEP is in the kernel so it doesn't need anything userspace

a network manager can leave wpa_supplicant running but wpa_supplicant does more then just decrypt/encript things

when you stop wpa_supplicant it de-configures the connection to the AP

if you try to configure the interface to something else that wpa_supplicant will probably fight you

so yea, it's not that simple

Last edited by genss; 03-22-2016 at 01:00 PM.
 
Old 03-22-2016, 02:38 PM   #37
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
To extent that this is a problem, then it appears to be an upstream problem versus a Slackware one, doesn't it? AFAIK, Slackware doesn't patch NetworkManager in any way.
 
Old 03-22-2016, 04:32 PM   #38
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Original Poster
Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
pss , incredible , ... then what the porpouse of stop a service ?

stop is STOP

I switch time ago to wicd ...when stop wicd, network is down.

STOP = STOP or not ?

If you need use your network cards for others tasks , need stop the network , for example if you put a wireless card in to monitor , the NetworkManager are all the time trying to manage the card , then have 2 ways , stop the service or edit a config to blacklist card to unmanaged in networkmanager.conf



in the networkmanager.conf can add this

[keyfile]
unmanaged-devices=interface-name:*mon*;


and all cards

monX or wlanXmon

are unmanaged for networkmanager at this point.

_______________________

ever , yes i say EVER , networkmanager service working perfcetly on slack 14.0 and 14.1 , stop is stop ... restart is restart.

but now , that service is broken at some point , im not a pro , im not have idea whats wrong, but im totally sure, something not working as espected.


airmon-ng check kill

kill the networkmanager service ... for example ...and this is a litle example.
 
Old 03-22-2016, 08:39 PM   #39
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Well, Slackware 14.1 used NetworkManager-0.9.8.8. -current uses NetworkManager-1.0.10.

There's been a rather large set of changes between the two and what you are complaining about may be due to Slackware being one of the few remaining non-systemd distros.

https://cgit.freedesktop.org/Network.../NEWS?h=1.0.10
 
Old 03-22-2016, 09:01 PM   #40
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by genss View Post
WPA goes through wpa_supplicant
if you stop wpa_supplicant the link to the AP will be useless


edit:
nvm i was at fault
wpa is also a kernel thing
just tested it with SIGKILL and the connection still works
that wpa_supplicant will de-configure when sent a SIGINT still stands


WEP is in the kernel so it doesn't need anything userspace

a network manager can leave wpa_supplicant running but wpa_supplicant does more then just decrypt/encript things

when you stop wpa_supplicant it de-configures the connection to the AP

if you try to configure the interface to something else that wpa_supplicant will probably fight you

so yea, it's not that simple
So would a patch to /etc/rc.d/rc.networkmanager to change
Code:
kill $(cat $file)
to
Code:
kill -9 $(cat $file)
fix the problem of not stopping wpa_supplicant?
 
Old 03-22-2016, 09:43 PM   #41
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
Quote:
Originally Posted by Richard Cranium View Post
So would a patch to /etc/rc.d/rc.networkmanager to change
Code:
kill $(cat $file)
to
Code:
kill -9 $(cat $file)
fix the problem of not stopping wpa_supplicant?
it would stop either way
SIGTERM and SIGINT make it de-configure the interface, while SIGKILL-ed it wouldn't
(disconnect, clean up passwords and such and bring it "admin" down)
note i only tested with SIGINT

it occurred to me i don't know why i am talking about WPA
must have mixed up this topic with the other one



USUARIONUEVOs problem seems to be that NM itself continues running
i have no idea why that would be

as for monitors, as in the virtual devices in monitor mode
(created via airmon-ng start or iw; although i remember vaguely that the main device can be changed to a monitor as well)

they should work when the main device is connected, and even if it is not in the "admin up" mode

only problem would be that the monitor device would be stuck on the specific channel if connected

at least on my computer

Last edited by genss; 03-22-2016 at 09:45 PM.
 
Old 03-23-2016, 01:20 AM   #42
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Hmm. I walked downstairs and ran
Code:
/etc/rc.d/rc.networkmanager stop
as root on my laptop that is running Slackware64-current. I'm also running gkrellm on that machine.

My wlan0 device removed itself from the gkrellm display. Running
Code:
/etc/rc.d/rc.networkmanager start
as root made it show up again.

So
  1. So, there appears to be a difference between my setup and USUARIONUEVO's
  2. I do not know if USUARIONUEVO can articulate what may be unusual about his setup.

USUARIONUEVO, that is not meant as an insult to you. I have studied a couple of languages in my life and I would be absolutely unable to give a technical discussion on computer hardware, software, or operating systems in either of them.
 
Old 04-22-2016, 09:01 AM   #43
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
i understand now what USUARIONUEVO was talking about (i'm slow)

NM when told to kill itself would bring down all the interfaces.
problem is that it would take down monitor interfaces as well.

i remember reading a changelog for some new version that it won't do that any more, although i can't find it in the 1.2 version changelog

another thing is that rc.networkmanager stop does not stop ModemManager, so that should be added
 
Old 04-22-2016, 10:34 AM   #44
blancamolinos
Member
 
Registered: Mar 2011
Distribution: Slackware
Posts: 109

Rep: Reputation: 70
Networkmanager is a evil thing. I do not understand why slackware includes this complex shit.
 
1 members found this post helpful.
Old 04-22-2016, 10:43 AM   #45
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
Quote:
Originally Posted by blancamolinos View Post
Networkmanager is a evil thing.
That's your (based on what?) opinion. I don't share it
Quote:
I do not understand why slackware includes this complex shit.
Don't worry. Others do.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to connect to wireless on Slackware Current (25-11-2015) moesasji Slackware 13 12-08-2015 06:21 AM
[SOLVED] slackware current networkmanager restart = no more wireless USUARIONUEVO Slackware 7 12-04-2015 03:21 PM
[SOLVED] NetworkManager broken after -current upgrade; GSM wireless fix sought textillis Slackware 6 07-03-2013 09:58 AM
[SOLVED] NetworkManager broken in current yenn Slackware 16 07-03-2013 03:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration