Chapter 4. Desktop Environments and Personal Hardware
A Debian desktop is assembled from several independent layers. A display manager presents a login prompt, a session manager starts the user's desktop, a display server or Wayland compositor draws windows, a kernel graphics driver programs the display hardware, and separate services provide audio, printing, power management, secret storage, and removable-media handling. None of those layers is the desktop by itself, and a failure in one of them can look like a failure in another.
This chapter follows that stack from installation choices to a repeatable
workstation baseline. The commands were captured on the Debian 13 (trixie)
amd64 system named trixie that was installed in
Chapter 2, working as the ordinary account john with
home directory /home/john. Administration on that machine goes through
sudo from john's account, which belongs to the sudo group - the
arrangement a standard Debian installation creates when the first user
accepts the offer of administrative access. A standard installation asks
for john's password on each elevated command; the example guest carries one
additional passwordless rule used for unattended work, which is noted where
it affects a capture (Section 4.6.2). Device names, addresses, session
identifiers, module indices, and job numbers on another machine will
differ.
Commands entered in an ordinary user's shell begin with $, and commands
entered in a root shell begin with #. A command shown as
$ sudo command starts from an ordinary shell and elevates that one
invocation. The prompt marker is documentation, not part of the command.
Each command's own output follows it in the same block; where an excerpt of
longer output is shown, it is labeled "Selected output" and the omission is
described.
The example machine is a QEMU/KVM guest. Its display is an emulated Cirrus Logic adapter, and it has no sound card, webcam, Bluetooth radio, printer, scanner, or USB peripheral. Where a procedure in this chapter needs such hardware, it uses a clearly labeled software substitute - a PipeWire null sink for audio, a loop-backed disk image for removable media, a virtual IPP Everywhere printer, SANE's test backend for scanning, and emulated Bluetooth controllers - and the text states what each substitute does and does not establish. Steps that require physical devices are described from their documentation without invented terminal captures.
The examples keep their files in one workspace under john's home directory.
Create it now and work there for the rest of the chapter; the mkdir and
cd commands produce no terminal output:
$ mkdir -p /home/john/debian-handbook/desktop-baseline
$ cd /home/john/debian-handbook/desktop-baseline
$ pwd
/home/john/debian-handbook/desktop-baseline
The diagnostic tools used below come with the desktop tasks or with small
separate packages: xrandr from x11-xserver-utils, xinput from xinput,
glxinfo from mesa-utils, pactl and paplay from pulseaudio-utils,
aplay and arecord from alsa-utils, v4l2-ctl from v4l-utils,
lsusb from usbutils, udisksctl from udisks2, the CUPS clients from
cups-client, pdfinfo from poppler-utils, scanimage from
sane-utils, and nmcli from network-manager. Install any that are
missing with sudo apt install and the package names.
Chapter 6 covers package operations in depth.
Figure 4.1. Conceptual Debian desktop layers. A display manager starts a session, but applications draw through the session's display server or compositor and the kernel's DRM/KMS driver. XWayland is a compatibility path inside a Wayland session, not a separate desktop.