LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-29-2015, 09:59 PM   #1
TheOneKEA
Member
 
Registered: Oct 2003
Distribution: Debian GNU/Linux 11 (amd64) w/kernel 6.0.15
Posts: 299

Rep: Reputation: 30
Post 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?
 
Old 04-29-2015, 10:40 PM   #2
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Hi,

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.
 
Old 04-30-2015, 06:17 AM   #3
TheOneKEA
Member
 
Registered: Oct 2003
Distribution: Debian GNU/Linux 11 (amd64) w/kernel 6.0.15
Posts: 299

Original Poster
Rep: Reputation: 30
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.
 
Old 04-30-2015, 08:19 PM   #4
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Did you try executing that command on gdm3? That's the real name of the package.
 
Old 05-01-2015, 09:06 PM   #5
TheOneKEA
Member
 
Registered: Oct 2003
Distribution: Debian GNU/Linux 11 (amd64) w/kernel 6.0.15
Posts: 299

Original Poster
Rep: Reputation: 30
Exclamation

Quote:
Originally Posted by odiseo77 View Post
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.
 
Old 05-02-2015, 12:00 AM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I don't think that on upgrade that systemd-sysv is installed, please check.
 
Old 05-02-2015, 07:55 AM   #7
TheOneKEA
Member
 
Registered: Oct 2003
Distribution: Debian GNU/Linux 11 (amd64) w/kernel 6.0.15
Posts: 299

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by EDDY1 View Post
I don't think that on upgrade that systemd-sysv is installed, please check.
Yes, it is present and installed.
 
Old 05-02-2015, 10:54 AM   #8
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
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.
 
Old 05-05-2015, 08:33 PM   #9
TheOneKEA
Member
 
Registered: Oct 2003
Distribution: Debian GNU/Linux 11 (amd64) w/kernel 6.0.15
Posts: 299

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Head_on_a_Stick View Post
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.
 
  


Reply

Tags
gdm, login, systemd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xdm login chooser Seedhom Linux - General 0 11-04-2009 10:29 AM
Run script after auto login on graphical system Lieve Linux - Newbie 5 10-09-2009 04:59 AM
Configure Redhat 8 from text base login to graphical mode without setup upgradation taremohan Linux - Desktop 1 05-29-2007 09:38 AM
How to configure KDM for login chooser nrodolfich Linux - Desktop 1 04-25-2007 07:33 AM
configure graphical login j-charles Linux - General 1 10-26-2001 08:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration