Display managers and desktop sessions
The display manager: the graphical login screen, which service starts it, and how a machine is switched between booting to a desktop and booting to a text console.
Lesson 2 of 3 in objective 106. User interfaces and desktops, part of LPIC-1 Exam 102-500.
What a display manager is
A display manager presents the graphical login, authenticates the user and starts their session. XDM is the original and minimal one; GDM belongs to GNOME, SDDM to KDE Plasma, and LightDM is the desktop-neutral one. They differ in appearance and configuration file, not in job, and each keeps its configuration under /etc — /etc/gdm3/, /etc/lightdm/lightdm.conf and so on.
On a systemd machine the display manager is an ordinary service, so it is started, stopped and enabled with systemctl like anything else, and graphical.target is what pulls it in. Switching a machine to boot to a text console is systemctl set-default multi-user.target, and switching it back is graphical.target — the modern spelling of changing the default runlevel between 3 and 5.
Worth carrying in
- XDM / GDM / SDDM / LightDM
- Display managers: neutral, GNOME, KDE Plasma, and desktop-neutral.
- graphical.target
- The systemd target that pulls in a display manager.
- systemctl set-default multi-user.target
- Boot to a text console instead of a desktop.
- systemctl stop gdm
- A display manager is just a service.
What the exam does with this
- Boot to text is
multi-user.target, boot to desktop isgraphical.target— the old runlevels 3 and 5. - Know which display manager belongs to which desktop: GDM with GNOME, SDDM with KDE Plasma.
- Objective
- 106. User interfaces and desktops
- Share of the exam
- 6.67% (the whole objective)
- Questions in this lesson
- 6
- Signed for by a person
- 0
Partly checked. None of the 6 questions here has been read against the cited source by a person. 6 questions have been checked against their cited clause by an automated pass — which is not the same thing, and is not a signature.
Only questions a person has signed for are used in mock exams here. That is the whole difference between the two kinds of checking above.
How these questions are written — where each question comes from, what the verification ledger records, and what happens when one is found wrong.
Drill this lesson
A lesson is one sitting: the trainer draws a short run from these questions alone and spaces the ones you get wrong.
Practise Display managers and desktop sessions
Questions in this lesson
- A display manager is the program that presents the graphical login screen and starts the user's session after authentication. Which three of the following are display managers? (Choose three.) machine-checked
- From a Linux workstation you must open the graphical desktop of a Windows Server that has had no extra software installed on it. Which protocol is designed for that, and which client would you install to speak it? machine-checked
- A teaching lab is built from diskless X terminals. Each terminal runs only an X server and asks a central Linux host for a graphical login screen, and the applications then run on that central host. Which protocol carries that request, and what is the main objection to using it beyond the lab's own switch? machine-checked
- On a headless build host you start a virtual desktop with `vncserver :2`. A colleague on the same LAN asks which TCP port must be reachable so that their viewer can connect. Which port do you name? machine-checked
- A KVM guest is used as a developer's daily desktop. The developer must plug a USB debugger into their own laptop and have the guest see it, and must get working audio. Which remote display protocol is designed for that class of virtual machine console, and what distinguishes it from plain VNC here? machine-checked
- Select the THREE entries in the following list that are complete desktop environments rather than a single component of one. machine-checked
Practise Display managers and desktop sessions
The rest of objective 106
- Installing and configuring a graphical display server
- Display managers and desktop sessions — you are here
- Display managers and accessibility settings