You are not logged in.
Hello, everybody
$ sudo /etc/rc.d/networkmanager restart
Password:
:: Stopping NetworkManager [DONE]
:: Starting NetworkManager [DONE]
$ nm-applet --sm-disable &
[1] 1305
$ ** Message: applet now removed from the notification area
** Message: applet now embedded in the notification area
** (nm-applet:1305): WARNING **: Failed to add/activate connection: (32) Insufficient privileges.
.xinitrc
exec ck-launch-session openbox-session
The fun part is that it brings up ethernet connection, but once I click on any of the available wireless networks, bam ( see above ) ..
What am I missing here ?
Offline
https://wiki.archlinux.org/index.php/NetworkManager
This is how I start my Openbox session:
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session openbox-session
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
https://wiki.archlinux.org/index.php/NetworkManager
This is how I start my Openbox session:
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session openbox-session
Nothing ( literally ) changed.
Offline
Yo!
Check this out ArchWiki - Set up PolicyKit Permissions
Offline
Yo!
Check this out ArchWiki - Set up PolicyKit Permissions
The part I do not understand:
This sometimes may still not be enough. You may have to manually start polkit-gnome/polkit-gnome-authentication-agent-1 for network manger to work.
Additionally, the user must either (1) run a PolicyKit authentication agent, such as the one provided by polkit-gnome, or (2) be in a group explicitly granted permissions by the system administrator.
Other than that, ConsoleKit is installed and I am already using it ( .xinitrc line in my first post ).
Offline
Are you in the wheel group?
# groups $USER
Last edited by DSpider (2012-02-21 10:17:17)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Are you in the wheel group?
# groups $USER
Yes ( + network, audio, video, storage ).
Offline
I can't find entry about that on wiki, but I'm pretty sure that you need this file
/etc/polkit-1/localauthority/50-local.d/org.freedesktop.NetworkManager.pkla
Just create it manually
Here is the content
[nm-applet]
Identity=unix-group:network
Action=org.freedesktop.NetworkManager.*
ResultAny=yes
ResultInactive=no
ResultActive=yes
Also process polkit-gnome-authentication-agent-1 needs to be running. You can check it using:
ps -ef | grep polkit-gnome
It should produce output like that:
root@r500:/etc/polkit-1/localauthority/50-local.d# ps -ef | grep polkit-gnome
pmd 1425 1 0 Feb16 ? 00:00:00 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
root 7494 6568 0 02:43 pts/3 00:00:00 grep polkit-gnome
Mine is starting by /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop. If you don't have that file just put...
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
... in your ~/.xinitrc, openbox autostart or whatever.
Check if this file (polkit-gnome-authentication-agent-1) exists, if it's not, install polkit-gnome package
Offline
I can't find entry about that on wiki, but I'm pretty sure that you need this file
/etc/polkit-1/localauthority/50-local.d/org.freedesktop.NetworkManager.pkla
Just create it manually
Here is the content
[nm-applet] Identity=unix-group:network Action=org.freedesktop.NetworkManager.* ResultAny=yes ResultInactive=no ResultActive=yes
Also process polkit-gnome-authentication-agent-1 needs to be running. You can check it using:
ps -ef | grep polkit-gnome
It should produce output like that:
root@r500:/etc/polkit-1/localauthority/50-local.d# ps -ef | grep polkit-gnome pmd 1425 1 0 Feb16 ? 00:00:00 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 root 7494 6568 0 02:43 pts/3 00:00:00 grep polkit-gnome
Mine is starting by /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop. If you don't have that file just put...
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
... in your ~/.xinitrc, openbox autostart or whatever.
Check if this file (polkit-gnome-authentication-agent-1) exists, if it's not, install polkit-gnome package
Why do all the good answers start to roll in right after you have quit trying ?
Thank you for the information and I will definitely save this for the future reference, but I have switched to wicd for now and it works just great.
Offline
Still can't get it to work. Polkit started automatically by xfce, policy in place and added to network group.
[root@host ~]# ps -ef | grep polkit
root 219 1 0 11:38 ? 00:00:00 /usr/lib/polkit-1/polkitd --no-debug
user 395 1 0 11:39 tty1 00:00:00 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
root 628 606 0 11:43 pts/0 00:00:00 grep polkit
[root@host ~]# cat /etc/polkit-1/localauthority/50-local.d/org.freedesktop.NetworkManager.pkla
[nm-applet]
Identity=unix-group:network
Action=org.freedesktop.NetworkManager.*
ResultAny=yes
ResultInactive=no
ResultActive=yes
[user@host ~]$ groups
lp wheel games network video audio optical storage scanner power users
Error:
** (nm-applet:733): WARNING **: Failed to add/activate connection: (32) Not authorized to control networking.
Edit: Changed login manager, seems to have sorted it.
Last edited by android_808 (2012-04-09 11:26:33)
Offline
Hey I have the same problems,
untill now was working great, (with the first configuration, followed arch wiki and configured everything properly and never had problems)
today just suddenly ....
# cat /etc/polkit-1/localauthority/50-local.d/org.freedesktop.NetworkManager.pkla
[nm-applet]
Identity=unix-group:network
Action=org.freedesktop.NetworkManager.*
ResultAny=yes
ResultInactive=no
ResultActive=yes
grep polkit-gnome
arditi 1651 1 0 14:25 ? 00:00:00 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
root 2157 2154 0 14:35 pts/1 00:00:00 grep polkit-gnome
$ groups
disk mail uucp log locate cron games clamav kvm network video audio optical storage scanner power users vboxusers usbmux
please somebody suggest something!
Offline
I think this have nothing to do either with how it's configured (nothing changed with my previous configuration) or how the wm is executed :
.xinitrc
exec openbox-session &
slim config:
login_cmd exec ck-launch-session /bin/bash -login ~/.xinitrc %session
Running nm-manager as root and than trying to get in the VPN this is shown:
** (nm-applet:1724): WARNING **: Could not create object for /org/freedesktop/NetworkManager/ActiveConnection/2: Method "GetAll" with signature "s" on interface "org.freedesktop.DBus.Properties" doesn't exist
and also by doing other operations it seems that this org.freedesktop.DBus.Properties doesn't really exist so this ( I think ) is also the reason of all this trouble.
Maybe some other service is conflicting :
http://ubuntuforums.org/showthread.php?t=1594566
or some related bug:
https://bugzilla.redhat.com/show_bug.cgi?id=723325
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=654874
https://bugs.launchpad.net/upstart/+bug/990636
however this is really bad
Last edited by r0b0t (2012-05-09 12:29:48)
Offline
Hi again,
now when I try to connect with my VPN (of course running nm-applet as root ) this is what happens:
http://pastie.org/3885730
I found that this is a bug:
https://bugs.launchpad.net/ubuntu/+sour … bug/985788
So why I'm posting?
it seems that one of the ubuntu guys found a solution basically it says:
-------------
$ pkill gnome-shell
$ pkill nm-applet
$ nm-applet &
[1] 9782
** Message: applet now removed from the notification area
** Message: using fallback from indicator to GtkStatusIcon
$ gnome-shell &
Now when I try to connect to the VPN, gnome-shell logs the same error(!), but now nm-applet takes over and lets me log in and connect.
-----------------
but I have running only :
ps aux | grep gnome
vak 1685 0.0 0.1 213276 7200 ? Sl 22:00 0:00 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
vak 1751 0.0 0.0 8328 724 ? S 22:00 0:00 gnome-pty-helper
vak 1769 0.0 0.0 8328 712 ? S 22:01 0:00 gnome-pty-helper
which one of them should I kill?
what to do?
Offline
if you use gnome-shell, you do not need /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 because gnome-shell has its own agent incorporated
Give what you have. To someone, it may be better than you dare to think.
Offline
Also, if you are using slim and it has recently updated you no longer need to have ck-launch-session after the exec in your .xinitrc
meh
Offline
@wonder (don't use gnome-shell) I asked just because I didn't know what to kill (in the command ps aux | grep gnome is shown everything with gnome in it running).
Thanks I found this , was crazy I never imagined slim would do something like this.
If you launch ck-list-sessions you will see th sessions not active.
By downgrading to the previous version everything was solved, the permission issues also the vpn issues.
I JUST DON'T ..... BELIEVE I spent my day on this
@chamber I'v never used it in .xinitrc , I put it in slim.conf
However to anybody to solve this just downgrade slim you can directly pacman -U http://arm.konnichi.com/extra/os/x86_64 … pkg.tar.xz
ENJOY and put slim in
IgnorePkg = (pacman.conf)
Offline
or modify your slim.conf so that it reads
login_cmd exec /bin/bash -login ~/.xinitrc %session
rather than not updating it.
From the wiki
Note: slim is also ConsoleKit capable since version 1.3.3. Unless you happen to run an old version, you must no longer include ck-launch-session from your .xinitrc or slim.conf login_cmd.
meh
Offline
I had the exact problem today when I updated my SLIM.
I can confirm that Chambers solution work great
- open up /home/$user/.xinitrc with your favourite text editor.
- on the line that says "exec ck-launch-session dbus-launch" remove the "ck-launch-session"
- save and restart your WM/DE.
Offline
Somebody should mark this a solved, thanks all.
@chamber , your solution is better thanks for head's up
Last edited by r0b0t (2012-05-10 11:26:02)
Offline
Forgot to mention that if this kind of changes are made, at least a comment during the installation should appear for not driving ppl crazy lol
Offline
I had the exact problem today when I updated my SLIM.
I can confirm that Chambers solution work great
- open up /home/$user/.xinitrc with your favourite text editor.
- on the line that says "exec ck-launch-session dbus-launch" remove the "ck-launch-session"
- save and restart your WM/DE.
Lol, been trying to solve this issue the whole day...was just about to throw the computer out the window. This solution works.
So irritating since some of the information I have read today has been to make sure "ck-launch-session" is there, and not the opposite.
Glad to see this working, thanks a bunch!
Offline