102-500 · Question #197
How is a display manager started?
The correct answer is B. It is started like any other system service by the init system. A display manager (like GDM, LightDM, or SDDM) is a system service that manages graphical login screens, so it follows the standard init system lifecycle - it has a service unit file (systemd) or init script that starts it automatically at the appropriate runlevel/target during…
Question
Options
- AIt is started by a user using the command startx.
- BIt is started like any other system service by the init system.
- CIt is started by inetd when a remote hosts connects to the X11 port.
- DIt is started automatically when a X11 user logs in to the system console.
How the community answered
(29 responses)- A7% (2)
- B79% (23)
- C10% (3)
- D3% (1)
Explanation
A display manager (like GDM, LightDM, or SDDM) is a system service that manages graphical login screens, so it follows the standard init system lifecycle - it has a service unit file (systemd) or init script that starts it automatically at the appropriate runlevel/target during boot. Option A is wrong because startx launches a raw X session for the current user, bypassing the display manager entirely. Option C is wrong because XDMCP (X11's remote protocol) is an optional feature of the display manager, not what starts it - and inetd is not involved in modern setups. Option D is wrong because the display manager presents the login screen before any user logs in; it doesn't wait for a user to authenticate first.
Memory tip: Think of a display manager like sshd or nginx - it's a daemon waiting for connections (logins), so naturally it's managed the same way: as a service by your init system.
Topics
Community Discussion
No community discussion yet for this question.