Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

WOO HOO !!! Xfce 4.8 just landed in Sid.

Here you can discuss every aspect of Debian. Note: not for support requests!
Message
Author
emariz
Posts: 2901
Joined: 2008-10-17 07:59

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#61 Post by emariz »

bugsbunny wrote:libpam-ck-connector installed? If not does installing it solve the problem?
In my case, it doesn't solve the issue. It actually shows an odd behaviour: It starts a session before startx is run.

I've tried various other suggested solutions, like installing all PolicyKit and ConsoleKit recommendations and editing the ~/.xinitrc file. But, in my system, PolicyKit doesn't grant authorizations unless consolekit 0.4.1-4 is installed or a login manager is used.

User avatar
gradinaruvasile
Posts: 935
Joined: 2010-01-31 22:03
Location: Cluj, Romania
Contact:

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#62 Post by gradinaruvasile »

bugsbunny wrote:For those with the problem - instead of gpoing to an older version of consolekit (which is counterproductive in the long run, since consolekit is apparently not going to be changed) do you have libpam-ck-connector installed? If not does installing it solve the problem? (It's a recommends of consolekit, so if you don't install recommends you may not have it installed)
I had libpam-ck-connector installed all along. Never uninstalled it. And xdm/slim (or no dm) does not work with policykit > 4.1.4. It works with 4.1.4. These are the facts that i tried and tested. Now either xdm/slim/whatever and startxfce4/whatever (x startup scripts for xfce4/others) will make changes or policykit will. Or none and will have to use gdm (so much for freedom).

User avatar
gradinaruvasile
Posts: 935
Joined: 2010-01-31 22:03
Location: Cluj, Romania
Contact:

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#63 Post by gradinaruvasile »

emariz wrote:
I've tried various other suggested solutions, like installing all PolicyKit and ConsoleKit recommendations and editing the ~/.xinitrc file. But, in my system, PolicyKit doesn't grant authorizations unless consolekit 0.4.1-4 is installed or a login manager is used.
Only gdm (and oerhaps kdm?) grants authorizations with the new policykit. xdm/slim do not.

secipolla
Posts: 1127
Joined: 2010-06-21 14:20

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#64 Post by secipolla »

SLiM has been abandoned by its creator but I think the Debian maintainer has put in the past some fixes for previous problems. I have no idea if that will go on.
For the future there will be LXDM (already in other distros but not in Debian) and there's the LightDM project too that aims to be a DE independent base for display managers.

oOarthurOo
Posts: 544
Joined: 2008-10-25 12:00
Location: Canada

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#65 Post by oOarthurOo »

bugsbunny wrote:For those with the problem - instead of gpoing to an older version of consolekit (which is counterproductive in the long run, since consolekit is apparently not going to be changed) do you have libpam-ck-connector installed? If not does installing it solve the problem? (It's a recommends of consolekit, so if you don't install recommends you may not have it installed)
Thanks bugs, installing that made everything work great.

User avatar
gradinaruvasile
Posts: 935
Joined: 2010-01-31 22:03
Location: Cluj, Romania
Contact:

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#66 Post by gradinaruvasile »

oOarthurOo wrote:
bugsbunny wrote:For those with the problem - instead of gpoing to an older version of consolekit (which is counterproductive in the long run, since consolekit is apparently not going to be changed) do you have libpam-ck-connector installed? If not does installing it solve the problem? (It's a recommends of consolekit, so if you don't install recommends you may not have it installed)
Thanks bugs, installing that made everything work great.
So you have installed libpam-ck-connector version 0.4.4-1 and consolekit 0.4.4-1 + slim (or xdm but NOT GDM3) + xfce version 4.8 = working suspend/hibernate/shutdown/usb mount/etc ?

oOarthurOo
Posts: 544
Joined: 2008-10-25 12:00
Location: Canada

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#67 Post by oOarthurOo »

gradinaruvasile wrote:So you have installed libpam-ck-connector version 0.4.4-1 and consolekit 0.4.4-1 + slim (or xdm but NOT GDM3) + xfce version 4.8 = working suspend/hibernate/shutdown/usb mount/etc ?
No. I just log in from the console right now. Otherwise:
~$ aptitude show libpam-ck-connector | grep -A2 State
State: installed
Automatically installed: no
Version: 0.4.4-1

~$ aptitude show consolekit | grep -A2 State
State: installed
Automatically installed: no
Version: 0.4.4-1

~$ aptitude show xfce4-session | grep -A2 State
State: installed
Automatically installed: no
Version: 4.8.1-2

User avatar
bohu
Posts: 83
Joined: 2005-12-27 22:35
Location: Southwest Missouri, near Branson
Contact:

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#68 Post by bohu »

So you have installed libpam-ck-connector version 0.4.4-1 and consolekit 0.4.4-1 + slim (or xdm but NOT GDM3) + xfce version 4.8 = working suspend/hibernate/shutdown/usb mount/etc ?

yes.

libpam-ck-connector version 0.4.4-1 + consolekit 0.4.4-1 + slim + xfce4.8 = working shutdown/reboot buttons. Don't know about suspend/hibernate. I never use those functions.
---------- NRA certified pistol instructor, linux advocate, bookworm, pitbull enthusiast ----------

User avatar
gradinaruvasile
Posts: 935
Joined: 2010-01-31 22:03
Location: Cluj, Romania
Contact:

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#69 Post by gradinaruvasile »

bohu wrote:
So you have installed libpam-ck-connector version 0.4.4-1 and consolekit 0.4.4-1 + slim (or xdm but NOT GDM3) + xfce version 4.8 = working suspend/hibernate/shutdown/usb mount/etc ?

yes.

libpam-ck-connector version 0.4.4-1 + consolekit 0.4.4-1 + slim + xfce4.8 = working shutdown/reboot buttons. Don't know about suspend/hibernate. I never use those functions.
Test by right-clicking on the power manager icon to see if the suspend and hibernate options are available (not greyed out).

User avatar
gradinaruvasile
Posts: 935
Joined: 2010-01-31 22:03
Location: Cluj, Romania
Contact:

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#70 Post by gradinaruvasile »

gradinaruvasile wrote:
bohu wrote:
So you have installed libpam-ck-connector version 0.4.4-1 and consolekit 0.4.4-1 + slim (or xdm but NOT GDM3) + xfce version 4.8 = working suspend/hibernate/shutdown/usb mount/etc ?
yes.

libpam-ck-connector version 0.4.4-1 + consolekit 0.4.4-1 + slim + xfce4.8 = working shutdown/reboot buttons. Don't know about suspend/hibernate. I never use those functions.
Test by right-clicking on the power manager icon to see if the suspend and hibernate options are available (not greyed out).
Did you modify anything else - like .xinitrc or something?

UPDATE

I just tried out the consolekit 0.4.4-1 version (with libpam-ck-connector installed). Result:

The authentication does NOT work (policykit denies every single request). Neither with Slim nor Xdm. I have Debian Testing installed with xfce 4.8 from unstable. I restarted the computer at every test.

Even runtime if i stopped xdm, then downgraded consolekit, logged out and in from tty1, started xdm again, i had working shutdown/etc buttons. I stopped xdm, upgraded consolekit, logged out and back from tty1, started xdm, i had no working buttons.

ck-list-sessions output with working suspend/hibernate/whatever with consolekit 0.4.1-4 (from Squeeze):

Code: Select all

$ ck-list-sessions 
Session1:
	unix-user = '1000'
	realname = 'Kertesz Laszlo'
	seat = 'Seat1'
	session-type = ''
	active = TRUE
	x11-display = ':0'
	x11-display-device = '/dev/tty7'
	display-device = ''
	remote-host-name = ''
	is-local = TRUE
	on-since = '2011-04-29T09:24:31.115251Z'
	login-session-id = ''
Session2:
	unix-user = '0'
	realname = 'root'
	seat = 'Seat1'
	session-type = ''
	active = FALSE
	x11-display = ''
	x11-display-device = ''
	display-device = '/dev/pts/0'
	remote-host-name = ''
	is-local = TRUE
	on-since = '2011-04-29T09:25:03.417932Z'
	login-session-id = ''
ck-list-sessions output with non-working suspend/hibernate/whatever with consolekit 0.4.4-1 (Testing/Sid):

Code: Select all

 ck-list-sessions 
Session5:
	unix-user = '0'
	realname = 'root'
	seat = 'Seat1'
	session-type = ''
	active = FALSE
	x11-display = ''
	x11-display-device = ''
	display-device = '/dev/pts/0'
	remote-host-name = ''
	is-local = TRUE
	on-since = '2011-04-29T08:34:29.760003Z'
	login-session-id = ''
Session1:
	unix-user = '1000'
	realname = 'Kertesz Laszlo'
	seat = 'Seat2'
	session-type = ''
	active = FALSE
	x11-display = ':0'
	x11-display-device = '/dev/tty7'
	display-device = ''
	remote-host-name = ''
	is-local = FALSE
	on-since = '2011-04-29T08:17:31.656858Z'
	login-session-id = ''
Note the "is-local = FALSE" whereas it should be TRUE (as it is with the Squeeze version of consolekit).

oOarthurOo
Posts: 544
Joined: 2008-10-25 12:00
Location: Canada

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#71 Post by oOarthurOo »

Have you ruled out it being slim, as opposed to consolekit? Or something else...

Either disabled or remove your dm, then Put this in your ~/.xinitrc

Code: Select all

exec ck-launch-session dbus-launch --exit-with-session startxfce4
Then startx. If it works, try pulling slim from sid.

User avatar
gradinaruvasile
Posts: 935
Joined: 2010-01-31 22:03
Location: Cluj, Romania
Contact:

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#72 Post by gradinaruvasile »

oOarthurOo wrote:Have you ruled out it being slim, as opposed to consolekit? Or something else...

Either disabled or remove your dm, then Put this in your ~/.xinitrc

Code: Select all

exec ck-launch-session dbus-launch --exit-with-session startxfce4
Then startx. If it works, try pulling slim from sid.
Tried that too. Slim has no newer version.

tuxcrafter
Posts: 2
Joined: 2011-06-01 15:19

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#73 Post by tuxcrafter »

After upgrading Thunar in debian testing i am unable to open my trash and mass-storage devices any more.

It seems my ck-list-sessions returns active = FALSE and this is bad!? How can I fix my environment?

Code: Select all

$ dpkg -l nodm policykit consolekit libpam-ck-connector thunar
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  consolekit     0.4.5-1        framework for defining and tracking users, s
ii  libpam-ck-conn 0.4.5-1        ConsoleKit PAM module
ii  nodm           0.7-1.1        automatic display manager
rc  policykit      0.9-4          framework for managing administrative polici
ii  thunar         1.2.1-6        File Manager for Xfce

Code: Select all

$ ck-list-sessions 
Session1:
	unix-user = '1000'
	realname = 'Jelle de Jong'
	seat = 'Seat1'
	session-type = ''
	active = FALSE
	x11-display = ''
	x11-display-device = ''
	display-device = '/dev/???'
	remote-host-name = ''
	is-local = TRUE
	on-since = '2011-06-01T14:55:09.009115Z'
	login-session-id = ''
Session2:
	unix-user = '1000'
	realname = 'Jelle de Jong'
	seat = 'Seat2'
	session-type = ''
	active = FALSE
	x11-display = ':0'
	x11-display-device = '/dev/tty7'
	display-device = ''
	remote-host-name = ''
	is-local = FALSE
	on-since = '2011-06-01T14:55:09.301259Z'
	login-session-id = ''

Code: Select all

$ ps auxwww | egrep "ck|dbus|gvfs"
root        30  0.0  0.0      0     0 ?        S    16:55   0:00 [kblockd/0]
root        31  0.0  0.0      0     0 ?        S    16:55   0:00 [kblockd/1]
root        32  0.0  0.0      0     0 ?        S    16:55   0:00 [kblockd/2]
root        33  0.0  0.0      0     0 ?        S    16:55   0:00 [kblockd/3]
102       1405  0.0  0.0   3100  1316 ?        Ss   16:55   0:00 /usr/bin/dbus-daemon --system
jelle     1680  0.0  0.0   3752  1020 ?        S    16:55   0:00 /usr/bin/ck-launch-session /usr/bin/dbus-launch --exit-with-session x-session-manager
jelle     1737  0.0  0.0   3428   568 ?        S    16:55   0:00 /usr/bin/dbus-launch --exit-with-session x-session-manager
jelle     1745  0.0  0.0   3964  1468 ?        Ss   16:55   0:00 /usr/bin/dbus-daemon --fork --print-pid 6 --print-address 8 --session
jelle     1764  0.0  0.0   7816  2440 ?        S    16:55   0:00 /usr/lib/gvfs/gvfsd
jelle     1769  0.0  0.0  30836  2072 ?        Ssl  16:55   0:00 /usr/lib/gvfs//gvfs-fuse-daemon /home/jelle/.gvfs
jelle     1798  0.0  0.1   8612  3432 ?        S    16:55   0:00 /usr/lib/gvfs/gvfs-gdu-volume-monitor
jelle     1804  0.0  0.0  17636  2224 ?        Sl   16:55   0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
jelle     1807  0.0  0.0   7824  2144 ?        S    16:55   0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
jelle     1809  0.0  0.1   8176  3248 ?        S    16:55   0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.9 /org/gtk/gvfs/exec_spaw/0
jelle     1811  0.0  0.1   8836  3588 ?        S    16:55   0:00 /usr/lib/gvfs/gvfsd-network --spawner :1.9 /org/gtk/gvfs/exec_spaw/1
jelle     1885  0.0  0.0   7976  2688 ?        S    16:56   0:00 /usr/lib/gvfs/gvfsd-dnssd --spawner :1.9 /org/gtk/gvfs/exec_spaw/3
jelle     3125  0.0  0.0   7036  2072 ?        S    17:28   0:00 /usr/lib/gvfs/gvfsd-metadata
jelle     3339  0.0  0.0   3436   736 pts/3    S+   17:53   0:00 egrep ck|dbus|gvfs

tuxcrafter
Posts: 2
Joined: 2011-06-01 15:19

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#74 Post by tuxcrafter »

I did the below and now I can mount my mass storage devices again.

Code: Select all

sudo apt-get purge consoleki

Code: Select all

sudo apt-get install consolekit/stable

Code: Select all

sudo shutdown -r now
Is this a bug in the nodm package? Somebody made a bug report?

User avatar
gradinaruvasile
Posts: 935
Joined: 2010-01-31 22:03
Location: Cluj, Romania
Contact:

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#75 Post by gradinaruvasile »

Found a solution. And it works!

So:

1. edit the /etc/pam.d/common-session file (root rights, of course)
2.
After the

Code: Select all

session	required	pam_unix.so
line insert the following line:

Code: Select all

session optional        pam_loginuid.so
logout then log in.

I have:

Code: Select all

$ apt-cache policy consolekit libpam-ck-connector 
consolekit:
  Installed: 0.4.5-1
  Candidate: 0.4.5-1
  Version table:
 *** 0.4.5-1 0
        500 http://ftp.debian.org/debian/ testing/main i386 Packages
          1 http://ftp.debian.org/debian/ unstable/main i386 Packages
        100 /var/lib/dpkg/status
     0.4.1-4 0
        500 http://ftp.debian.org/debian/ squeeze/main i386 Packages
libpam-ck-connector:
  Installed: 0.4.5-1
  Candidate: 0.4.5-1
  Version table:
 *** 0.4.5-1 0
        500 http://ftp.debian.org/debian/ testing/main i386 Packages
          1 http://ftp.debian.org/debian/ unstable/main i386 Packages
        100 /var/lib/dpkg/status
     0.4.1-4 0
        500 http://ftp.debian.org/debian/ squeeze/main i386 Packages
installed (so both the consolekit and libpam-ck-connector are at version 0.4.5-1) + i use xdm/xfce4.8 and now i have working suspend/restart/etc buttons.
Previously with version > 0.4.1-4 of consolekit it did not work for me.

Also ck-list-sessions now reports the sessions local:

Code: Select all

~$ ck-list-sessions 
Session6:
	unix-user = '1000'
	realname = 'Kertesz Laszlo'
	seat = 'Seat1'
	session-type = ''
	active = TRUE
	x11-display = ':0'
	x11-display-device = '/dev/tty7'
	display-device = ''
	remote-host-name = ''
	is-local = TRUE
	on-since = '2011-06-01T16:54:39.756110Z'
	login-session-id = '3'
Session8:
	unix-user = '0'
	realname = 'root'
	seat = 'Seat1'
	session-type = ''
	active = FALSE
	x11-display = ''
	x11-display-device = ''
	display-device = '/dev/pts/0'
	remote-host-name = ''
	is-local = TRUE
	on-since = '2011-06-01T16:55:10.288959Z'
	login-session-id = '5'
	idle-since-hint = '2011-06-01T16:58:00.393002Z'

User avatar
gradinaruvasile
Posts: 935
Joined: 2010-01-31 22:03
Location: Cluj, Romania
Contact:

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#76 Post by gradinaruvasile »

Dammit... I dont know what happened, but i had to reboot because of a read/write error (caused, it seems, by the power management deatures i used for the SATA controller) and since then this didnt work anymore. So, back to downgrading consolekit (which works)....

Edit: I upgraded consolekit again and it is working even after reboots.
Last edited by gradinaruvasile on 2011-06-12 13:42, edited 1 time in total.

cynwulf

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#77 Post by cynwulf »

Tried every method so far except for downgrading consolekit - all that works for me is installing gdm3. xdm and slim make no difference.

Tried this as well: http://forum.xfce.org/viewtopic.php?id=6007

emariz
Posts: 2901
Joined: 2008-10-17 07:59

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#78 Post by emariz »

gradinaruvasile wrote:Found a solution. And it works!
1. edit the /etc/pam.d/common-session file (root rights, of course)
2. After the

Code: Select all

session	required	pam_unix.so
line insert the following line:

Code: Select all

session optional        pam_loginuid.so
logout then log in.
I had also seen the solution here: http://bugs.debian.org/cgi-bin/bugrepor ... =597937#71
Anyway, thanks for posting it here. I tried it last night in a new Testing installation and it solved this annoying ConsoleKit's bug. I had lost my faith and thought that I would need to continue using the version from Squeeze or to install GDM.

jeffreyC
Posts: 13
Joined: 2010-10-15 17:43

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#79 Post by jeffreyC »

Still does not work for me, only consolekit from stable.
Edited the /etc/pam.d/common-session file, upgraded to consolekit 0.4.5-1 after reboot could not mount USB and no shutdown or reboot only logout.
Reverted to consolekit 0.4.1-4, USBs mount, shutdown and reboot work.
You must learn from the mistakes of others. You can't possibly live long enough to make them all yourself.
Sam Levenson

User avatar
gradinaruvasile
Posts: 935
Joined: 2010-01-31 22:03
Location: Cluj, Romania
Contact:

Re: WOO HOO !!! Xfce 4.8 just landed in Sid.

#80 Post by gradinaruvasile »

There is another workaround to this issue:

in the

Code: Select all

/usr/share/polkit-1/actions
folder you have the consolekit (reboot etc rights), udisks (mount/unmount/filesystems) etc policy files.
The idea is that in the udisks policy file you have sections related to certain actions. For example:

Code: Select all

<action id="org.freedesktop.udisks.drive-set-spindown">
    <description>Set drive spindown timeout</description>
    <description xml:lang="de">Laufwerks-Zeitabschaltung setzen</description>
    <message>Authentication is required to configure drive spindown timeout</message>
    <message xml:lang="de">Zugriffsrechte werden benötigt um die Laufwerks-Zeitabschaltung zu konfigurieren</message>
    <defaults>
      <allow_any>yes</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>
Now here you see the allow_ lines - those specify what status has the user that can do that action - by default only the active users are allowed to do stuff.
For some reason on my comp (xfce, xdm) i can see my user as active, but it has still denied the rights to mount stuff despite the fact that udisks from terminal works.
So i modified the allow_any values to the EXACT value of the allow_active ones (the value is the one between the >< signs, it can be yes, no, auth_admin, auth_admin_keep). Now everything works.
After the changes are saved, you have to kill the /usr/lib/policykit-1/polkitd process with

Code: Select all

killall /usr/lib/policykit-1/polkitd
All modifications and process killing is done with root privileges of course.
I have the latest consolekit installed and no modification in the /etc/pam.d/common-session file (that workaround was kinda iffy, sometimes it worked sometimes not).

Post Reply