LinuxQuestions.org
Review your favorite Linux distribution.
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, 02:54 PM   #16
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
rc.networkmanager kills dhcp and dhcpcd ...


pff ,thats incredible...come on.

connect via wireless , and restart networkmanager ... its easy


if use the rc.networkmanager script with sudo , all works well, but not working if not sudo.
You appear to be the only person on the planet who needs to do that to get networkmanager to work.
 
Old 03-06-2016, 03:44 PM   #17
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Original Poster
Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
No one understand, ok.

My networkmanager works at system start , thats not the problem.

The problem is manually stop the service, and try to start again.

i get that if try to start dhcpcd manually.

dev: loaded udev
eth0: adding address fe80::6835:6817:c443:8549
if_addaddress6: Permission denied
wlan0: adding address fe80::486c:3a33:4040:fb7
if_addaddress6: Permission denied
no interfaces have a carrier


dev: loaded udev
eth0: adding address fe80::6835:6817:c443:8549
if_addaddress6: Permission denied
DUID 00:01:00:01:1e:6e:57:32:e4:d5:3d:ab:35:63
wlan0: IAID 3d:ab:35:63
eth0: waiting for carrier
wlan0: soliciting an IPv6 router
wlan0: rebinding lease of 192.168.1.106
wlan0: leased 192.168.1.106 for infinity
wlan0: adding route to 192.168.1.0/24
wlan0: adding default route via 192.168.1.1
forked to background, child pid 10208

Last edited by USUARIONUEVO; 03-06-2016 at 03:45 PM.
 
Old 03-06-2016, 03:58 PM   #18
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's nice that you are providing the output of some random commands, but perhaps you should:
  • Tell us if you are logged in as root or not (the output of the command "id" would help).
  • Show the commands that you are running to create that output.
 
Old 03-06-2016, 03:58 PM   #19
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Your problem is that you try to use together NM plus other network tools. This is useless and completely unsupported.

So, run "netconfig" as root then when asked (after having entered you hostname and domain name), chose NetworkManager, confirm and you are all set.

Do not use dhcp or dhclient anymore, all your connections will be managed by NetworkManager. Else you are sure to generate self-made problems that nobody will be able to solve.

Also, I am not sure if you do, but you should not run a desktop as root.

Last edited by Didier Spaier; 03-06-2016 at 04:17 PM.
 
Old 03-06-2016, 04:31 PM   #20
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Original Poster
Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
One million times, im on root acount.


id

uid=0(root) gid=0(root) grupos=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)


some times i grep NetworkManager and cant kill

ps ax | grep NetworkManager


5348 ? Ssl 0:01 /usr/sbin/NetworkManager
5357 ? S 0:00 /sbin/dhclient -d -q -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-wlan0.pid -lf /var/lib/NetworkManager/dhclient-102fc991-43e4-447e-a4c3-d87a2b29e9cd-wlan0.lease -cf /var/lib/NetworkManager/dhclient-wlan0.conf wlan0
10423 pts/0 S+ 0:00 grep NetworkManage



i think , to reinstall again , and start , but problem is here ever "clean install" as "ROOT"

# I switch from wicd some time ago , but i prefer if networkmanager works as spected.

when some time win and kill NetworkManager process , if try to execute on terminal

NetworkManager --> he no start
sudo /usr/sbin/NetworkManager --> then start , why ? ho god why ? IM ROOT , no need sudo to run it, but he no start without.



user --> root
desktop --> kde
runlevel --> init 4
linux --> big-smp-4.4.4

Last edited by USUARIONUEVO; 03-06-2016 at 04:36 PM.
 
Old 03-06-2016, 04:36 PM   #21
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
As the problem is reported to be occurring with three systems, it could be that the problem is with the access point hardware.
Quote:
wlan0: leased 192.168.1.106 for infinity
The AP is providing DHCP leases for an infinite period. Perhaps the AP needs the wireless signal to be lost (as would happen during a reboot) before a new connection is initiated and a new lease is requested.
 
Old 03-06-2016, 04:40 PM   #22
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by USUARIONUEVO View Post
One million times, im on root account.
It could be one of the triggers of the issue. What happens if you run KDE as a regular user (as you should anyway)?
 
Old 03-06-2016, 04:53 PM   #23
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Original Poster
Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
Quote:
Originally Posted by Didier Spaier View Post
It could be one of the triggers of the issue. What happens if you run KDE as a regular user (as you should anyway)?
im not test that ,i try...but im not sure, i think slackware installs as root by default.




@allend

if no networkmanager no nothing to do.
the inifinite message i get when connect and working all.

Last edited by USUARIONUEVO; 03-06-2016 at 04:55 PM.
 
Old 03-06-2016, 04:55 PM   #24
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
One million times, im on root acount.


id

uid=0(root) gid=0(root) grupos=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)


some times i grep NetworkManager and cant kill

ps ax | grep NetworkManager


5348 ? Ssl 0:01 /usr/sbin/NetworkManager
5357 ? S 0:00 /sbin/dhclient -d -q -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-wlan0.pid -lf /var/lib/NetworkManager/dhclient-102fc991-43e4-447e-a4c3-d87a2b29e9cd-wlan0.lease -cf /var/lib/NetworkManager/dhclient-wlan0.conf wlan0
10423 pts/0 S+ 0:00 grep NetworkManage



i think , to reinstall again , and start , but problem is here ever "clean install" as "ROOT"

# I switch from wicd some time ago , but i prefer if networkmanager works as spected.

when some time win and kill NetworkManager process , if try to execute on terminal

NetworkManager --> he no start
sudo /usr/sbin/NetworkManager --> then start , why ? ho god why ? IM ROOT , no need sudo to run it, but he no start without.



user --> root
desktop --> kde
runlevel --> init 4
linux --> big-smp-4.4.4
Right.

My laptop is running Slackware64-current. It's sitting downstairs while I write this, using wireless to connect to my LAN. I've used ssh to log into it from upstairs.

Code:
$ ps -ef | grep NetworkManager
root      1183     1  0 Mar05 ?        00:00:42 /usr/sbin/NetworkManager
me       17525 17504  0 16:42 pts/0    00:00:00 grep NetworkManager
Hmm.

Code:
$ ps -ef | grep dnsm
nobody    1289     1  0 Mar05 ?        00:00:00 /usr/sbin/dnsmasq
me       17576 17504  0 16:45 pts/0    00:00:00 grep dnsm
Hmm. What's in your /etc/rc.d/rc.inet1.conf file?

(FWIW, I'm running XFCE on that laptop.)

Last edited by Richard Cranium; 03-06-2016 at 04:56 PM.
 
Old 03-06-2016, 04:55 PM   #25
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
ifconfig eth0 down then igconfig the eth0 up.
it will not ask for a new pid you are stoping the networkmanager
and the pid for dhcpcd is still there.
Think about it your asking the networkmanager to create a pid that is already running.
If you use the program gui like it is made you would be doing the same thing when you disconnect
and reconnect from networkmanager.

Last edited by Drakeo; 03-06-2016 at 04:59 PM.
 
Old 03-06-2016, 05:01 PM   #26
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by USUARIONUEVO View Post
im not test that ,i try...but im not sure, i think slackware installs as root by default.
No. During installation only a root account is created but then it's up to you to create accounts for regular users. Just run "adduser" in a terminal.

Last edited by Didier Spaier; 03-06-2016 at 05:05 PM.
 
Old 03-06-2016, 05:56 PM   #27
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 Didier Spaier View Post
It could be one of the triggers of the issue. What happens if you run KDE as a regular user (as you should anyway)?
I walked downstairs and logged into my Slackware64-current laptop as root using KDE. (I actually re-booted and logged in as root.) NetworkManager worked just as if I had logged in as my normal account.
 
Old 03-06-2016, 07:24 PM   #28
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Original Poster
Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
image better than a million of words.

normal user , cant stop networkmanager

http://subefotos.com/ver/?5a4dd3c311...391629694o.png


/etc/rc.d/rc.networkamanger stop


and status say is not running , but see in system monitor, process still up , and right side ..panel see wireless signals, then IS RUNNING.


1 - start as a regular user
2 - /etc/rc.d/rc.networkmanager stop
3 - open task manager and see HOW PROCESS NOT KILLED
4 - ENJOY !


Then i think when im using a restart process it fails ... because never stopped.

Last edited by USUARIONUEVO; 03-06-2016 at 07:31 PM.
 
Old 03-06-2016, 07:42 PM   #29
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
Random users aren't allowed to stop system daemons. The script doesn't bother to check if you have the permissions to run the script or not, so everything that it does fails but nonetheless reports "stopped". (It's a good argument that perhaps scripts in /etc/rc.d should not have global execute privileges.) /etc/rc.d/rc.networkmanager status reports that it isn't running because the random user isn't allowed to cat the pidfile, which the rest of the program interprets to mean that NetworkManager isn't running.

At this point, I'd like to know what you are trying to accomplish by running /etc/rc.d/rc.networkmanager as non-root.
 
Old 03-06-2016, 07:59 PM   #30
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Original Poster
Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
Some say try to test as a normal user , and try.


Problem is using a root user conected via wireless

/etc/rc.d/rc.networkmanager restart

lost wireless connection

hard to understand this ?


if execute second time --> /etc/rc.d/rc.networkmanager restart

then lost ethernet connection

no ethernet , no wireless, no nothing.


ROOT , can STOP , START RESTART , but not working as spected.


In other hand , have , if use sudo AS ROOT , the services working...

why? ..im root , no need sudo to stop/start/restart

Last edited by USUARIONUEVO; 03-06-2016 at 08:00 PM.
 
  


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 05:54 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