How do I configure systemd to run a graphical login chooser?
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do I configure systemd to run a graphical login chooser?
I just recently used apt-get dist-upgrade to upgrade my x86_64 Debian install to jessie (8.0). This means that systemd is now running the show, and I have no idea how to configure it to run a graphical login chooser. Are there any tutorials or howtos on how to accomplish this?
By graphical login chooser you mean something like kdm, gdm, xdm, etc? In case you want to use kdm, you just need to make sure it's installed and run the following command:
Code:
dpkg-reconfigure kdm
(substitute "kdm" which any login manager you want to use).
It should display a menu where you can choose which login manager to use.
Yes, that's what I am referring to. Prior to the upgrade I was using gdm as my login chooser. However, when I try to run dpkg-reconfigure on the gdm package the program errors out and says that the package is either broken or not installed, even though it is definitely installed.
Did you try executing that command on gdm3? That's the real name of the package.
I did try that and received a similar error.
As part of my troubleshooting I booted my system using the generic entry in GRUB instead of the first entry in the advanced options sub-menu of the GRUB loader screen. Booting the system like this does cause the X server to start cleanly and gdm to start up as well, but I don't get a graphical shell and I don't get a cursor. When I VT-switch and log in on a text-only console I can see all of the relevant processes running.
I ran a service gdm stop and restarted X from a non-root shell using startx, then attempted to run dpkg-reconfigure against gdm3 and got back the following error:
Code:
Job for gdm.service failed. See 'systemctl status gdm.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript gdm3, action "reload" failed.
systemctl status gdm.service says the following:
Code:
● gdm.service - GNOME Display Manager
Loaded: loaded (/lib/systemd/system/gdm.service; enabled)
Active: inactive (dead) since Fri 2015-05-01 22:01:01 EDT; 4min 26s ago
Main PID: 2217 (code=exited, status=0/SUCCESS)
May 01 22:01:01 Betelgeuse gdm3[2217]: Child process 2262 was already dead.
May 01 22:01:01 Betelgeuse gdm3[2217]: Child process 2262 was already dead.
I'm very new at systemd so I'm quite certain that using the sysvinit-style service command instead of systemctl to unload gdm3 has broken things.
Run the reconfigure command again then post the output of:
Code:
journalctl -xn
You may need to add your user to the "systemd-journal" group to use this:
Code:
# gpasswd -a <user name> systemd-journal
Log out & back in again (or maybe even reboot) to effect the change.
Thanks! After fully uninstalling and reinstalling the gdm3 package, dpkg-reconfigure did its thing and my X session immediately exited, to be replaced with the gdm3 graphical login chooser screen, without a reboot. I checked the output of journalctl -xn but I don't see anything noteworthy.
The only problem now is that XFCE doesn't properly restore my saved session data, such as window size and position.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.