The officially official Devuan Forum!

You are not logged in.

#1 2018-08-04 08:27:18

fred43
Member
Registered: 2018-08-03
Posts: 4  

HOWTO: lightdm (with libpam-elogind) + xfce4 (ASCII/Stable)

Preamble:

IMHO, using "elogind and friends" has the potential of making life a
little bit easier for the Devuan nosystemd-DE developers/maintainers.

Have you swapped out 'slim' for 'lightdm' (with libpam-elogind) and
consequently the reboot and shutdown does not work as advertised?

Don't despair, it can be fixed in 3 easy steps.

-----
Do the following as Root

Step 1:
Check that
   libpam-elogind, elogind, libelogind0, libpolkit-backend-elogind-1-0,
   libpolkit-gobject-elogind-1-0 and policykit-1
is *installed*.

and make sure that
   consolekit, libpolkit-backend-consolekit-1-0,
   libpolkit-gobject-consolekit-1-0, libck-connector0 and
   libpam-ck-connector
is *uninstalled*

Step 2:
Then go to /etc/pam.d/ and edit the file lightdm-greeter to look thus:

   #added '#'
   #session   optional pam_systemd.so
   #added a new line
   session   optional pam_elogind.so

Step 3:
Reboot the system
-----

You can now reboot or shutdown from the Lighdm or from the Xfce4 DE just
like in the olden days but now with "elogind and friends" in place. BTW,
the command 'who' is also working correctly.

Offline

#2 2018-08-04 09:18:04

golinux
Administrator
Registered: 2016-11-25
Posts: 1,183  

Re: HOWTO: lightdm (with libpam-elogind) + xfce4 (ASCII/Stable)

Very nice first post!  Thank you.  I imagine that quite a few users will get sent here to sort things out.

Hope you don't mind that I played a bit with the formatting to make it easier to read.

Offline

#3 2018-08-04 13:04:08

fred43
Member
Registered: 2018-08-03
Posts: 4  

Re: HOWTO: lightdm (with libpam-elogind) + xfce4 (ASCII/Stable)

I don't mind at all. Thank you.

Offline

#4 2018-08-04 18:43:12

dxrobertson
Member
Registered: 2017-05-04
Posts: 55  

Re: HOWTO: lightdm (with libpam-elogind) + xfce4 (ASCII/Stable)

I can verify this as I just performed a LightDM with XFCE install myself.  I first installed LightDM and then the xfce4 package.  Had the normal permission problems associated with libpolkit, I then replaced consolkit with elogind and all is well. 

I have tested both LightDM + elogind with KDE as well as XFCE and both work.  I wonder if LightDM + elogind works with MATE, anyone test it?  From looking at the release notes, it appears slim is who likes consolekit.  It would be nice to completely replace consolekit with elogind.

Offline

#5 2018-08-05 11:09:45

fred43
Member
Registered: 2018-08-03
Posts: 4  

Re: HOWTO: lightdm (with libpam-elogind) + xfce4 (ASCII/Stable)

Thanks for the feedback.

Yes, it would be nice and helpful if a MATE user could verify that the outlined procedure also works for that environment.

Offline

#6 2018-08-09 20:13:28

Andre4freedom
Member
Registered: 2017-11-15
Posts: 16  

Re: HOWTO: lightdm (with libpam-elogind) + xfce4 (ASCII/Stable)

Hello fred43 and all
fred43, you are a genius, your solution works perfectly well on a fresh ascii-install. I tested it with Cinnamon and OpenRC. I'm delighted the lightdm is the display manager by default now.
Thank you, well done!

Offline

#7 2018-08-09 21:24:17

golinux
Administrator
Registered: 2016-11-25
Posts: 1,183  

Re: HOWTO: lightdm (with libpam-elogind) + xfce4 (ASCII/Stable)

Andre4freedom wrote:

Hello fred43 and all
fred43, you are a genius, your solution works perfectly well on a fresh ascii-install. I tested it with Cinnamon and OpenRC. I'm delighted the lightdm is the display manager by default now.
Thank you, well done!

It is the default for Cinnamon.  Xfce uses slim etc.

Offline

Board footer