LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Network manager needs to be root/superuser (fluxbox startup doesnt work) (https://www.linuxquestions.org/questions/slackware-14/network-manager-needs-to-be-root-superuser-fluxbox-startup-doesnt-work-898060/)

Grisnak 08-18-2011 07:57 AM

Network manager needs to be root/superuser (fluxbox startup doesnt work)
 
Trying to get networkmanager with nm-applet to work in fluxbox.
Added Networkmanager & nm-applet to .fluxbox/startup.

But NetworkManager needs to be run as root, so nm-applet wont start.

Cant find any good info on how to start NetworkManager from the fluxbox startup file.

So... How do I do this?

yuuko 08-18-2011 08:14 AM

Quote:

You will also need to start rc.networkmanager during boot - you can use
rc.local, or perhaps you'll want to edit rc.M's call to rc.wicd... :-)
You also need to be a member of 'netdev' to use nm-applet.

Grisnak 08-18-2011 08:25 AM

I added rc.networkmanager to rc.d/rc.local, and it said during startup that the networkmanager daemon was started.
I also added my user to netdev, but when I try to launch nm-applet I get:


** (nm-applet:2604): WARNING **: <WARN> request_name(): Could not acquire the NetworkManagerUserSettings service.
Error: (9) Connection ":1.20" is not allowed to own the service "org.freedesktop.NetworkManagerUserSettings" due to security policies in the configuration file

Grisnak 08-18-2011 08:46 AM

I tried rebooting with the new usergroup, and this time the applet actually started.

It say's that Im disconnected, and when I click eth0 I get a popup saying disconnected too. Why is this?

beder 08-18-2011 11:19 AM

Where did you installed NetworkManager and nm-applet from?

I installed it from SlackBuilds, building the proper dependencies whenever something screamed while installing, and works fine. If you want to try it, I recommend you download SboPkg to make things easier: http://sbopkg.org/

cwizardone 08-18-2011 05:31 PM

Mr. Workman's packages work just fine,

http://connie.slackware.com/~rworkma...packages/i486/

or

http://connie.slackware.com/~rworkma...ckages/x86_64/

piratesmack 08-18-2011 07:25 PM

If I remember right, I had to launch DBUS to get NetworkManager working right in fluxbox.

Try this in your startup file:
Code:

# test for an existing bus daemon, just to be safe
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
  # if not found, launch a new one
  eval `dbus-launch --sh-syntax --exit-with-session`
fi
nm-applet &


frankbell 08-18-2011 09:25 PM

You can put nm-applet in your ~/.fluxbox/startup file, like this:

Code:

nm-applet &
I ran it like that just fine until I switched to wicd. The "&" ensures that it will keep running after the startup.


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