Chapter 2. Installing Debian and Completing First Boot

An installation turns a machine into a Debian system by making a series of choices: which image to boot, which firmware mode the machine uses, how the installer reaches the network, which account will administer the system, how the disk is divided, which software tasks are installed, and where the boot loader is written. The order matters because later steps depend on earlier ones. A machine that boots in UEFI mode needs an EFI system partition; a server that will grow needs a storage layout that can grow; an account that will administer the system needs a working privilege path before remote access is exposed.

This chapter follows that sequence from installation media to the first boot checks. Commands entered in an ordinary user's shell begin with $, commands entered in a root shell with #, and a command entered by an ordinary user who elevates one command with sudo begins with $ sudo. The marker is not typed; Chapter 3 explains the shell and Chapter 1 the full command conventions. The examples run as john, an ordinary account with sudo membership, on a Debian 13.7 amd64 system named trixie at 192.168.121.39/24: one 100 GiB virtio disk, a DOS/MBR partition table, a single ext4 partition, and BIOS firmware. That machine is a preinstalled virtual machine, so the installer screens are presented from the official Debian Installation Guide rather than captured, and every procedure that needs hardware the machine lacks - writing a USB stick, UEFI boot entries, guided LVM or encryption - is labeled as the documented procedure it is. Everything that can be checked on an installed system was run on that machine, and the output shown is its actual output.

In this section