Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tips and tricks for ConsoleKit, PolicyKit, and udev helpers
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, ... 14, 15, 16  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Fenril
Apprentice
Apprentice


Joined: 16 May 2009
Posts: 209

PostPosted: Wed Jan 19, 2011 3:18 pm    Post subject: Reply with quote

Hello,

I use Xfce 4.8 and i scrupulously respect what it was said in this sticky. I still can't have an active session despite many reinstallations of Xfce's core packages and udev, dbus etc.

Code:
Session8:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = FALSE
   x11-display = ''
   x11-display-device = ''
   display-device = '/dev/tty1'
   remote-host-name = ''
   is-local = TRUE
   on-since = '2011-01-19T12:34:07.903414Z'
   login-session-id = '8'
   idle-since-hint = '2011-01-19T12:34:48.010500Z'
Session9:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = FALSE
   x11-display = ''
   x11-display-device = ''
   display-device = '/dev/tty1'
   remote-host-name = ''
   is-local = TRUE
   on-since = '2011-01-19T12:34:18.383576Z'
   login-session-id = '8'
   idle-since-hint = '2011-01-19T12:34:49.000430Z'


So i can't neither reboot nor shutdown, and can't mount/unmount any devices. I'm running stable branch for all listed packages, like obo68 who is succeeded to run, so i don't think it's the problem. I don't use anything else Xfce, and i haven't DM for login (I previously used an autologin script found here but i have temporarily disabled it while i haven't managed to solve problem).
Thanks for your help.

Edit : partially solved ! I just run depclean, i haven't remove hal, before i have just remove hal deamon from init.d, it was not sufficient, because some packages require hal to start, sorry for not so "scrupulously" respect the protocol :oops: . Now i can shutdown, but still have problem for mount/unmount usb disks. It strangely mounts itself (maybe cause of thunar-volman), i can see arborescence of /media/usbhd-sdc1 in console, but i can't browse it in thunar (no error is shown), and can't eject it ("not authorized" message).
Back to top
View user's profile Send private message
aramis_qc
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2006
Posts: 106
Location: Québec - Canada

PostPosted: Thu Jan 20, 2011 1:31 pm    Post subject: Reply with quote

@Fenril

I've just completed installation of Xfce4 4.8 stable version. I didn't run it yet but I note that lxpolkit is still in testing ant it's supposed to be a requirement as per suominen's tip. So maybe your problem is a policies one that is you need permissions handled by lxpolkit.

Thunar is part of xfce4-meta installation but not thunar-volman.

:!: I really don't understand why people move something to stable while some requirements as it is the case here (lxpolkit) remain in testing.
_________________
Profil et systèmes
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3182

PostPosted: Thu Jan 20, 2011 2:06 pm    Post subject: Reply with quote

Thank you ssuominen. This was very helpful!
_________________
emerge --quiet redefined | E17 vids: I, II
Back to top
View user's profile Send private message
Fenril
Apprentice
Apprentice


Joined: 16 May 2009
Posts: 209

PostPosted: Thu Jan 20, 2011 2:27 pm    Post subject: Reply with quote

aramis_qc > i don't use lxpolkit, i use polkit-gnome... which is in stable branch.
Back to top
View user's profile Send private message
vincent-
Developer
Developer


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Thu Jan 20, 2011 3:54 pm    Post subject: Reply with quote

Please, add this for fluxbox in the first post:

Code:
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session startfluxbox
Back to top
View user's profile Send private message
aramis_qc
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2006
Posts: 106
Location: Québec - Canada

PostPosted: Thu Jan 20, 2011 6:37 pm    Post subject: Reply with quote

Fenril wrote:
aramis_qc > i don't use lxpolkit, i use polkit-gnome... which is in stable branch.


Oh ! ssuominen mentionned to install lxpolkit with xfce4, didn't he ?
_________________
Profil et systèmes
Back to top
View user's profile Send private message
Condex
Tux's lil' helper
Tux's lil' helper


Joined: 08 Nov 2005
Posts: 95
Location: 42'24ºN/8'74ºW - Sol III - Sol System

PostPosted: Thu Jan 20, 2011 7:15 pm    Post subject: Reply with quote

About xfce-session and ck-launch-session...

In order to get it working with SLiM, besides installing the apps posted, I had to edit the file: /etc/X11/Sessions/Xfce4 and replace the contents with:
Code:
ck-launch-session startxfce4

This way, I get the "active=true" in the ck-list-sessions. Mount seems to work ok (NTFS partition), it asks for the root password though. XFCE's logout dialog displays the «Reboot» and «Shutdown» buttons properly.

BTW, thanks for the tips ssuominen! 8)
_________________
Carpe diem quam minimum credula postero.
Back to top
View user's profile Send private message
CaptainBlood
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 294

PostPosted: Fri Jan 21, 2011 1:29 pm    Post subject: Reply with quote

Very interesting sticky indeed :lol:.
Although I still fear to make the jump, expecting the following issues :

rffkill seems to be supported by hal (only?)
pcmanfm automount also seems to be in the same situation.
availability of Suspend/Hibernate features at logoff

Any experience in this respect?

Any information regarding such a migration in a Lxde environment are welcomed.

Thanks for your attention.


Last edited by CaptainBlood on Fri Jan 21, 2011 1:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
vincent-
Developer
Developer


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Fri Jan 21, 2011 1:40 pm    Post subject: Reply with quote

CaptainBlood wrote:
pcmanfm automount also seems to be in the same situation.

You have two options (in both options you need a consolekit session).

The first one is to use x11-misc/pcmanfm-9999, which can mount removable devices if you have a policykit agent.
Code:
echo 'x11-libs/libfm **' >> /etc/portage/package.keywords
echo 'x11-misc/pcmanfm **' >> /etc/portage/package.keywords
emerge pcmanfm polkit-gnome

And run this at the beggining of your session:
Code:
/usr/libexec/polkit-gnome-authentication-agent-1 &


The second option is to use the stable version of x11-misc/pcmanfm (0.9.7-r2), which can mount removable devices if you have installed gvfs with gdu USE flag active.
Code:
emerge pcmanfm gvfs
Back to top
View user's profile Send private message
CaptainBlood
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 294

PostPosted: Fri Jan 21, 2011 1:56 pm    Post subject: Reply with quote

Thanks for your extensive reply :D

So I was doing it wrong from the start :lol: (automouting with pcmanfm activated hal use flag).
As rfkill may remain a issue for a while, I'm thinking of migrating anyhow but keeping hal for what remains unsupported elsewhere.
That would be at least a step forward to a hal free environment.

Thanks for your attention, interest and support.

Edit : should read automouting with gvfs activated hal use flag


Last edited by CaptainBlood on Fri Jan 21, 2011 3:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2101
Location: Dallas area

PostPosted: Fri Jan 21, 2011 2:01 pm    Post subject: Reply with quote

I'm using pcmanfm-0.9.8 without hal, polkit agents or gvfs and it mounts removable or disk partitions just fine.

I disable automounting (my choice), but it has no problem with it, AFAIK.

It seems to be using udisks and it's daemon.
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.9.1-zen, eudev
glibc-2.17, gcc-4.7.3-r1, xorg-server-1.15, lxde, nouveau, oss4
Back to top
View user's profile Send private message
vincent-
Developer
Developer


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Fri Jan 21, 2011 2:05 pm    Post subject: Reply with quote

Anon-E-moose wrote:
I'm using pcmanfm-0.9.8 without hal, polkit agents or gvfs and it mounts removable or disk partitions just fine.

If I try to mount a removable device without any polkit agent running, it says "You don't have permission".
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2101
Location: Dallas area

PostPosted: Fri Jan 21, 2011 2:13 pm    Post subject: Reply with quote

polkitd is running, but I'm not running anything like polkit-gnome-authentication-agent-1

Code:
polkitd[5452]: started daemon version 0.96 using authority implementation `local' version `0.96'


it's autostarted during boot (on my system)


Might be some hints here "man pklocalauthority"
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.9.1-zen, eudev
glibc-2.17, gcc-4.7.3-r1, xorg-server-1.15, lxde, nouveau, oss4


Last edited by Anon-E-moose on Fri Jan 21, 2011 2:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
vincent-
Developer
Developer


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Fri Jan 21, 2011 2:14 pm    Post subject: Reply with quote

Anon-E-moose wrote:
polkitd is running, but I'm not running anything like polkit-gnome-authentication-agent-1

Code:
polkitd[5452]: started daemon version 0.96 using authority implementation `local' version `0.96'


it's autostarted during boot (on my system)


What desktop environment are you using?
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3182

PostPosted: Fri Jan 21, 2011 2:15 pm    Post subject: Reply with quote

I don't remember who gave me this advice, but I got it on #gentoo. If you create the following files then you will be able to mount/unmount removable drives using udisks.
/etc/polkit-1/localauthority.conf.d/50-localauthority.conf
Code:
[Configuration]
AdminIdentities=unix-group:wheel
/etc/polkit-1/localauthority/50-local.d/11-my-polkit-udisks.pkla
Code:
[udisks full access]
Identity=unix-user:<your username>
Action=org.freedesktop.udisks.*
ResultAny=yes

_________________
emerge --quiet redefined | E17 vids: I, II
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2101
Location: Dallas area

PostPosted: Fri Jan 21, 2011 2:16 pm    Post subject: Reply with quote

peratu wrote:
Anon-E-moose wrote:
polkitd is running, but I'm not running anything like polkit-gnome-authentication-agent-1

Code:
polkitd[5452]: started daemon version 0.96 using authority implementation `local' version `0.96'


it's autostarted during boot (on my system)


What desktop environment are you using?


The latest lxde


Edit to add: "man pklocalauthority"
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.9.1-zen, eudev
glibc-2.17, gcc-4.7.3-r1, xorg-server-1.15, lxde, nouveau, oss4


Last edited by Anon-E-moose on Fri Jan 21, 2011 2:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
vincent-
Developer
Developer


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Fri Jan 21, 2011 2:18 pm    Post subject: Reply with quote

Anon-E-moose wrote:
The latest lxde

Have you installed lxde-base/lxpolkit ?
Code:
qlist -Ie lxpolkit

If you have it, try to remove it, restart lxde session and check if pcmanfm can mount removable devices.
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2101
Location: Dallas area

PostPosted: Fri Jan 21, 2011 2:19 pm    Post subject: Reply with quote

peratu wrote:
Anon-E-moose wrote:
The latest lxde

Have you installed lxde-base/lxpolkit ?
Code:
qlist -Ie lxpolkit

If you have it, try to remove it, restart lxde session and check if pcmanfm can mount removable devices.


I do not run lxpolkit, or gnome/kde versions. Not even installed.

Look at the previous posts, there are some hints for configuration.
_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.9.1-zen, eudev
glibc-2.17, gcc-4.7.3-r1, xorg-server-1.15, lxde, nouveau, oss4
Back to top
View user's profile Send private message
vincent-
Developer
Developer


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Fri Jan 21, 2011 2:25 pm    Post subject: Reply with quote

Anon-E-moose wrote:
peratu wrote:
Anon-E-moose wrote:
The latest lxde

Have you installed lxde-base/lxpolkit ?
Code:
qlist -Ie lxpolkit

If you have it, try to remove it, restart lxde session and check if pcmanfm can mount removable devices.


I do not run lxpolkit, or gnome/kde versions. Not even installed.

Look at the previous posts, there are some hints for configuration.


I'm not using LXDE (I use fluxbox) and I need to use a policykit agent if I want pcmanfm mount my removable devices. I don't know how it works for you, but I imagine that something of lxde is doing the trick.
So..., good for you :-)
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 2101
Location: Dallas area

PostPosted: Fri Jan 21, 2011 2:31 pm    Post subject: Reply with quote

peratu wrote:
Anon-E-moose wrote:
peratu wrote:
Anon-E-moose wrote:
The latest lxde

Have you installed lxde-base/lxpolkit ?
Code:
qlist -Ie lxpolkit

If you have it, try to remove it, restart lxde session and check if pcmanfm can mount removable devices.


I do not run lxpolkit, or gnome/kde versions. Not even installed.

Look at the previous posts, there are some hints for configuration.


I'm not using LXDE (I use fluxbox) and I need to use a policykit agent if I want pcmanfm mount my removable devices. I don't know how it works for you, but I imagine that something of lxde is doing the trick.
So..., good for you :-)


I think if you add your user to polkit's authentication section
and you have set pcmanfm config properly set
it should work, no matter which wm is used.

There were hints above by ppurka for polkit
and for pcmanfm check ~/.config/pcmanfm/default/pcmanfm.conf
Code:
[volume]
mount_on_startup=0
mount_removable=1
autorun=1

_________________
Asus m5a99fx, FX 8320 - amd64-multilib, 3.9.1-zen, eudev
glibc-2.17, gcc-4.7.3-r1, xorg-server-1.15, lxde, nouveau, oss4
Back to top
View user's profile Send private message
nichocouk
Guru
Guru


Joined: 10 Mar 2005
Posts: 563
Location: Glasgow

PostPosted: Fri Jan 21, 2011 2:58 pm    Post subject: Reply with quote

Thanks for all the tips ssuominen. It's working on a LXDE box and a XFCE box for me.
_________________
nichoco
Back to top
View user's profile Send private message
vincent-
Developer
Developer


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Fri Jan 21, 2011 3:04 pm    Post subject: Reply with quote

Anon-E-moose wrote:
I think if you add your user to polkit's authentication section [...]

There were hints above by ppurka for polkit [...]

Yeah, thanks!

I don't need any polkit agent anymore. I have created a file under /etc/polkit-1/localauthority/50-local.d/ with .pkla extension.

Code:
Identity=unix-group:users
Action=org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.filesystem-mount
ResultAny=yes
Back to top
View user's profile Send private message
CaptainBlood
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 294

PostPosted: Fri Jan 21, 2011 9:47 pm    Post subject: Reply with quote

I gave it a try. But in the end to complicated in my environment :cry:
I may be not clever enough :oops:

I will wait the hal free track to get more mature :roll:

Good luck to everyone

Thanks for your attention.
Back to top
View user's profile Send private message
while true
Guru
Guru


Joined: 07 Apr 2010
Posts: 346
Location: Ljubljana, Slovenia

PostPosted: Sat Jan 22, 2011 2:59 pm    Post subject: Reply with quote

Ola

I am newbie.

I updated gentoo couple of days ago, and I had to uninstall a bunch of apps in order to get update.
For update I use:
Code:
emerge --sync
emerge --update --deep --newuse --keep-going --ask world
revdep-rebuild


So I have updated gentoo, but I can not shut it down, nor can i mount usb flash drive or usb hard disk as user.
As root I shutdown -h now or mount usb stuff, but I can not change permission for user to use it.

I followed steps in first post of this thread, and I came to login screen,
but as I entered username and password, I got error that it could not be started.
(also, that part for emerging new stuff, I could not put emerge >=stuff.x but only = stuff.x)
I am sorry, but I do not remember exact error. I ctrl+alt+F1 to get to shell and restored files and reemerged hal.

Now I am somewhere as I were after update, no shutdown option and usb mount problem.

I have xfce desktop, and use slim for logging in.
I am only user on my laptop and I have two cats.
I do not know what to post, but I can post everything you guys ask me to post.

Thank you
_________________
Kind regards, Goran Mitic

alive
while true
kick ass
Back to top
View user's profile Send private message
Hammett
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jan 2005
Posts: 144
Location: Barcelona, Catalonia

PostPosted: Sat Jan 22, 2011 3:45 pm    Post subject: Reply with quote

Hi guys!

I have followed the sticky to the letter and I can't enable reboot and shutdown buttons...
In fact, I am not able to get 2 sessions on ck-list-session

Code:


[hammett][/home/hammett] $ ck-list-sessions
Session2:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat3'
   session-type = ''
   active = FALSE
   x11-display = ':0'
   x11-display-device = '/dev/tty7'
   display-device = ''
   remote-host-name = ''
   is-local = FALSE
   on-since = '2011-01-22T15:42:22.526023Z'
   login-session-id = '4294967295'


I use xdm as session manager and use .xsession file to manage it

Code:

[hammett][/home/hammett] $ cat .xsession
#exec ck-launch-session dbus-launch --sh-syntax --exit-with-session xfce4-session
exec ck-launch-session xfce4-session

Tried both lines and none of those work

I do not know what might be the issue, but I'm starting to get out of ideas

I run 2.6.35-r5 kernel with the requirements compiled and as well as the packeges.
I don't have any trace of hal on my system either.

Thanks for your help!
_________________
I don't fear the people. I fear the demon inside them.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2, 3, ... 14, 15, 16  Next
Page 2 of 16

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum