nerdexam
CompTIA

LX0-104 · Question #285

An administrator has just set up the X Display Manager as the default display manager. Which of the following files should be edited to change the default background for it?

The correct answer is A. /etc/X11/xdm/Xsetup. To change the default background for the X Display Manager (XDM), the administrator should edit the /etc/X11/xdm/Xsetup script.

User Interfaces and Desktops

Question

An administrator has just set up the X Display Manager as the default display manager. Which of the following files should be edited to change the default background for it?

Options

  • A/etc/X11/xdm/Xsetup
  • B/etc/X11/prefdm
  • C/etc/X11/xorg.conf
  • D/etc/X11/xdm.conf

How the community answered

(29 responses)
  • A
    93% (27)
  • B
    3% (1)
  • C
    3% (1)

Why each option

To change the default background for the X Display Manager (XDM), the administrator should edit the `/etc/X11/xdm/Xsetup` script.

A/etc/X11/xdm/XsetupCorrect

The `/etc/X11/xdm/Xsetup` script is executed by `xdm` at server startup (before the login screen appears) on the console display. This script is the appropriate place to include commands, such as `xsetroot` or `xloadimage`, to set the background of the X display.

B/etc/X11/prefdm

`/etc/X11/prefdm` is typically a script used to choose which display manager to run, not to configure its visual appearance or background.

C/etc/X11/xorg.conf

`/etc/X11/xorg.conf` configures the X server itself (e.g., input devices, display resolution, drivers), not the visual appearance or background of the display manager.

D/etc/X11/xdm.conf

`/etc/X11/xdm.conf` (or often `/etc/X11/xdm/xdm-config`) contains `xdm`'s main configuration directives, but the `Xsetup` script is where specific visual commands like background setting are placed.

Concept tested: XDM configuration files and background settings

Source: https://man7.org/linux/man-pages/man1/xdm.1.html

Topics

#X Display Manager#xdm#desktop environment#configuration files

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice