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

Here you can discuss every aspect of Debian. Note: not for support requests!

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

Postby emariz » 2011-04-27 18:03

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.
emariz
 
Posts: 2916
Joined: 2008-10-17 07:59

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

Postby gradinaruvasile » 2011-04-27 19:31

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

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

Postby gradinaruvasile » 2011-04-27 19:34

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.
User avatar
gradinaruvasile
 
Posts: 935
Joined: 2010-01-31 22:03
Location: Cluj, Romania

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

Postby secipolla » 2011-04-27 23:05

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.
secipolla
 
Posts: 1127
Joined: 2010-06-21 14:20

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

Postby oOarthurOo » 2011-04-28 18:17

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.
oOarthurOo
 
Posts: 545
Joined: 2008-10-25 12:00
Location: Canada

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

Postby gradinaruvasile » 2011-04-28 22:24

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 ?
User avatar
gradinaruvasile
 
Posts: 935
Joined: 2010-01-31 22:03
Location: Cluj, Romania

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

Postby oOarthurOo » 2011-04-29 04:37

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
oOarthurOo
 
Posts: 545
Joined: 2008-10-25 12:00
Location: Canada

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

Postby bohu » 2011-04-29 05:16

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
bohu
 
Posts: 83
Joined: 2005-12-27 22:35
Location: Southwest Missouri, near Branson

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

Postby gradinaruvasile » 2011-04-29 06:59

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

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

Postby gradinaruvasile » 2011-04-29 07:01

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).
User avatar
gradinaruvasile
 
Posts: 935
Joined: 2010-01-31 22:03
Location: Cluj, Romania

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

Postby oOarthurOo » 2011-04-29 12:31

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.
oOarthurOo
 
Posts: 545
Joined: 2008-10-25 12:00
Location: Canada

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

Postby gradinaruvasile » 2011-04-29 14:29

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.
User avatar
gradinaruvasile
 
Posts: 935
Joined: 2010-01-31 22:03
Location: Cluj, Romania

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

Postby tuxcrafter » 2011-06-01 15:56

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.

Postby tuxcrafter » 2011-06-01 16:12

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?
tuxcrafter
 
Posts: 2
Joined: 2011-06-01 15:19

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

Postby gradinaruvasile » 2011-06-01 17:03

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

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable