You are not logged in.
Hello Arch forums. I have Network Manager as my erm...network manager and this is the first time I've taken my laptop out with me. When I go to the nm-applet and try to connect to a network I get this error
Failed to add/activate connection [32] Insufficient privilegesSo I followed the Arch wiki. My .xinitrc contains: ck-launch-session dbus-launch openbox-session. I have my user added to the group wheel and network. I also created the file:
/etc/polkit-1/localauthority/50-local.d/org.freedesktop.NetworkManager.pkla and put this in it:
[nm-applet]
Identity=unix-group:network
Action=org.freedesktop.NetworkManager.*
ResultAny=yes
ResultInactive=no
ResultActive=yesStill it spits out the same error. It says that with SLiM(which I have) it will take care of the consolekit automatically so I'm not sure why this won't work
Last edited by xworld (2012-07-22 02:15:56)
Offline
Hi, xworld.
It says that with SLiM(which I have) it will take care of the consolekit automatically so I'm not sure why this won't work
SLiM will take care of the consolekit automatically so that IS why it won't work. A tidbit I have forgotten many times. I just dealt with a terrible console kit experience, so I feel ya. My understanding is that if you ck-launch-session in your ~/.xinitrc when using slim, it actually BREAKS consolekit.
Here's my 2-cents.
1. Back up your slim.conf, .xinitrc, and inittab
sudo cp /etc/inittab /etc/inittab.bak
sudo cp /etc/slim.conf /etc/slim.conf.bak
cp ~/.xinitrc ~/.xinitrc.bak2. If you have inittab launching slim into run-level 5, change it back to run-level 3 (terminal)
## Only one of the following two lines can be uncommented!
# Boot to console
#id:3:initdefault:
# Boot to X11
id:5:initdefault:becomes
## Only one of the following two lines can be uncommented!
# Boot to console
id:3:initdefault:
# Boot to X11
#id:5:initdefault:3. If you have slim in your rc.conf daemon array, remove it
4. Remove your slim.conf and xinitrc, reinstall consolekit and slim, reinstall networkmanager and network-manager-applet, and I'd recommend installing polkit-gnome as well
sudo rm /etc/slim.conf
sudo rm ~/.xinitrc
sudo pacman -Syuu slim consolekit networkmanager network-manager-applet polkit-gnome5. Make sure your rc.conf daemons have dbus before networkmanager, and (despite the wiki saying to !network) just remove it entirely, i.e.
DAEMONS=(... network ...)becomes
DAEMONS=(... dbus networkmanager ...)6. Create the simplest possible scenario in .xinitrc to test, e.g.
My .xinitrc looks like this for my working session:
#!/bin/sh
#
# ~/.xinitrc
#
if [-d /etc/X11//xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
fi
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources &
xset r rate 250 60 &
xset +fp /usr/share/fonts/local
xset fp rehash
exec openbox-session & wmpid=$!
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
thunar --daemon &
urxvtd -q -o -f &
blueman-applet &
parcellite &
volwheel &
nitrogen --restore &
unclutter -idle 5 -jitter 2 -reset -root &
if which tint2 >/dev/null 2>&1; then
(sleep 2 && xcompmgr -Cc) &
(sleep 2 && tint2) &
fi
pytyle3 &
wait $wmpidThat setup depends on slim. If I were using startx (as you should for the simple test) and to simplify the boot process, I'd do this:
#!/bin/sh
#
# ~/.xinitrc
#
# launch my window manager with consolekit and dbus, assign the process id to a variable
exec ck-launch-session dbus-launch openbox-session & wmpid=$!
# startup polkit authentication
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
# manually start up nm-applet since I'm not using slim
(sleep 3 && nm-applet --sm-disable) &
# restore my wallpaper to retain a little vanity
nitrogen --restore &
# start up my task bar so I can see the applet
if which tint2 >/dev/null 2>&1; then
(sleep 2 && xcompmgr -Cc) &
(sleep 2 && tint2) & fi
#wait for the session to end
wait $wmpid7. reboot
8. Now, you should be at the tty login prompt. Log in and run:
ck-list-sessionsIf you get something along these lines...
Session 1:
unix-user = '1000'
realname = 'your user'
seat = 'Seat 1'
... etc
You're looking good.
9. Type startx, and your .xinitrc should execute. tryout the applet.
10. If it doesn't work, open a terminal (or switch to a tty) and issue the ck-list-sessions command again. You should see two sessions, with the first one 'inactive' if things are working well.
If everything is copacetic after that, you can switch back to slim. Configure slim to your liking, and remove the ck-launch-session dbus-launch part from .xinitrc
The post is getting rather long, so I'll end there. If you're still having problems, post back -- I'm pretty sure I can get you sorted out on this one.
Last edited by productninja (2012-07-04 06:08:18)
myLets=new AppletArray(volwheel,nm-applet,blueman-applet); myPnl=new panel.tint2(myLets);
myDtop=new Openbox(myPnl,back.nitrogen,stats.conky,tiler.pytyle3,trans.xcompmgr,term.urxvt,ide.vim);
myArch=new ArchLinux(video.nouveau,audio.alsa,net.networkmanager,dispmgr.slim,deskenv.null,myDtop);
DELL E6400 | Intel C2D@2.26 | 8G DDR2@800 ||| 650 packs | 258M RAM@boot | 4.8Sec Boot Time
Offline
I just thought to mention, too...
I don't know if it's of any consequence - shouldn't be, but SLiM has
login_cmd exec /bin/sh -login ~/.xinitrc %sessionas the default login command.
I use
login_cmd exec /bin/bash -login ~/.xinitrcI don't put the %session because I use openbox, and only openbox -- so that probably doesn't matter. It would most likely work with a session array and cases in the .xinitrc.
I changed /bin/sh to /bin/bash for some reason, and I don't recall why. Again, that shouldn't be significant, but thought I'd mention it.
You can see most of my config files (related to this) here
myLets=new AppletArray(volwheel,nm-applet,blueman-applet); myPnl=new panel.tint2(myLets);
myDtop=new Openbox(myPnl,back.nitrogen,stats.conky,tiler.pytyle3,trans.xcompmgr,term.urxvt,ide.vim);
myArch=new ArchLinux(video.nouveau,audio.alsa,net.networkmanager,dispmgr.slim,deskenv.null,myDtop);
DELL E6400 | Intel C2D@2.26 | 8G DDR2@800 ||| 650 packs | 258M RAM@boot | 4.8Sec Boot Time
Offline
I would have responded sooner but I have been traveling across country. Thanks for the huge amount of info. I started to do as you say but I realized that I can't download anything because I don't have an internet connection. Which is the root of the problem. I guess I should have thought of that. It doesn't make sense to me because when I first installed Arch I installed networkmanager and obviously had no problem configuring the original network. The nm-applet works fine using the home connection. However it is no longer my home connection because I moved. Perhaps would reinstalling network manager do the trick? Then from there I could continue with the process of fixing this problem.
EDIT: So far I have done everything that you said to do and everything seemed to go fine.
Here's the output of ck-list-sessions
Session1:
unix-user = '1000'
realname = ''
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = '/dev/tty1'
remote-host-name = ''
is-local = TRUE
on-since = '2012-07-09T01:57:18.835959Z'
login-session-id = '1'
idle-since-hint = '2012-07-09T06:58:19.556838Z'
Session2:
unix-user = '1000'
realname = ''
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = '/dev/tty1'
remote-host-name = ''
is-local = TRUE
on-since = '2012-07-09T06:57:51.396656Z'
login-session-id = '1'However the nm-applet stills gives me the same error.
Last edited by xworld (2012-07-09 07:06:04)
Offline
I suppose I should also post my .xinitrc:
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources &
xset r rate 250 60 &
xset +fp /usr/share/fonts/local
xset fp rehash
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
exec ck-launch-session dbus-launch openbox-session & wmpid=$!
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
#wait for the session to end
wait $wmpidI also tried without having ck-launch-sessions dbus-launch in there as well. Still no dice
EDIT: Strangely enough when I woke up this morning and tried the nm-applet it worked! For some reason though even though it shows that I am connected to the network it is unbelievably slow. So slow that the connection times out and I still really can't use the internet. I would normally chalk this up to a poor network but when I boot into windows it works fine. Is this a problem with networkmanager still?
Last edited by xworld (2012-07-09 15:31:38)
Offline