How to install Debian 12 Bookworm netinst in text mode for servers

Debian 12 Bookworm netinst text-mode server installation Step-by-step text-mode Debian 12 Bookworm server installation guide.

This guide walks through a minimal Debian 12 “Bookworm” installation in text mode using the netinst image. The goal is a clean server base with no desktop environment, working networking, current APT repositories, and a system ready for console or SSH administration.

The original Universo Digital article was published on April 13, 2023, before Debian 12 became stable on June 10, 2023. The screenshots therefore come from the Bookworm installer during its pre-release period, although the overall installation flow remained essentially the same throughout Debian 12.

Debian 12 Bookworm netinst text-mode server installation
A minimal Debian 12 Bookworm installation intended for servers and terminal administration.

For background on the operating system itself, see our GNU/Linux introduction.

Debian 12 support status in 2026

Debian 12.0 was released on June 10, 2023. The final point release in the branch is Debian 12.15, published on July 11, 2026.

Regular Debian security support ended in July 2026 and responsibility moved to the Debian LTS team. Bookworm is scheduled to receive LTS security support until June 30, 2028 for amd64, i386, arm64, armhf, and ppc64el.

Debian 12 therefore remains a valid platform for existing servers that need to stay on Bookworm, but a new deployment without a specific dependency will generally be better served by Debian 13 “Trixie.” This article remains specifically about Debian 12.

Download Debian 12.15 netinst

The old 2023 link must not point at Debian’s current directory anymore because that directory now contains Debian 13. To reproduce a Bookworm installation, use Debian’s official archive.

Official amd64 image:
debian-12.15.0-amd64-netinst.iso

SHA-256:

cd4462c06aa8892e692c0c4b9c17802f38c8ab8690e85cbfb5ccaa5956e9af17

Verify the checksum after downloading. On physical hardware, write the ISO to a USB drive using a proper image-writing tool. Our bootable USB tools guide compares several options, and we also maintain a dedicated balenaEtcher guide.

Hardware requirements

The Debian 12 amd64 installer can operate with very modest hardware. Debian’s Bookworm documentation states that a normal installation needs roughly 780 MB of RAM and 1.16 GB of disk space, while its recommended-minimum table for a no-desktop system lists 256 MB RAM minimum, 512 MB recommended, and 4 GB of disk.

Those figures are installation minimums, not realistic server sizing guidance. CPU, memory, storage, IOPS, and network capacity must be chosen for the actual workload.

For a small server, a more practical baseline might be one or two vCPUs, 1–2 GB RAM, and 20 GB or more of storage. Databases, mail systems, containers, and larger web services may require substantially more.

Netinst means networking matters

The netinst image contains enough software to install a base Debian system but is designed to retrieve additional packages from network repositories.

The original tutorial recommended disconnecting the network temporarily. That is not good general advice for a normal netinst installation. Keep networking available when possible, especially if you want to use a Debian mirror during installation, install OpenSSH through tasksel, and obtain current packages.

The original screenshots show a case where automatic configuration failed and IPv4 was configured manually. That remains useful for servers with static addressing.

1. Start the text-mode installer

Debian 12 Bookworm installer boot menu
Select Install for the text-mode Debian Installer.

Graphical install uses the same installer with a graphical front end. For a server, the text installer is lightweight and makes it clear that no desktop environment is being installed.

2. Choose language, location, and keyboard

Language selection in the Debian 12 installer
Choose the language used during installation.
Geographic location selection in Debian 12
Location influences locale, time zone, and initial mirror choices.
Keyboard layout selection in Debian 12
Select the keyboard mapping that matches the physical keyboard.
Debian 12 installer loading components
Debian Installer loads the components required for the next stages.

3. Configure networking

Debian normally attempts automatic IPv4 configuration through DHCP and also supports IPv6 through SLAAC/NDP and DHCPv6.

Automatic network configuration failure in Debian 12
Automatic network configuration failed in this particular lab.
Network configuration options after DHCP failure in Debian 12
The installer can retry DHCP or switch to manual configuration.
Manual network configuration in Debian 12 Bookworm
For a server with a fixed address, manual configuration is appropriate.

Use an address valid for your own network rather than copying the values shown in screenshots. A static configuration needs an address/prefix, gateway, and reachable DNS resolver.

Network mask configuration during Debian 12 installation
IPv4 prefix or network mask.
IPv4 gateway configuration in Debian 12
The default gateway provides connectivity outside the local subnet.
DNS resolver configuration during Debian 12 installation
DNS resolvers used by the installer and later by the server.

Public resolvers are not always the right choice. Servers integrated with Active Directory, LDAP, internal service discovery, or private DNS zones may require organizational DNS servers.

4. Hostname and domain

Domain configuration during Debian 12 installation
Choose a hostname and domain that fit your DNS design.

For servers, define a stable hostname from the beginning and ensure forward and reverse DNS are coherent when required by the services you plan to run.

5. Root account and administrative user

Root password configuration in Debian 12
The installer can enable root by assigning a password.
Root password confirmation in Debian 12
Root password confirmation in the original flow.

Debian supports two models. If you set a root password, the root account remains enabled. If you leave the root password blank, Debian disables direct root login, installs sudo, and allows the first normal user to perform administrative tasks with sudo.

For many modern server deployments, the second model is preferable because day-to-day work happens under a named account and privileges are elevated only when needed.

Creating a normal user during Debian 12 installation
Create the first non-root user.
Login name selection for a Debian 12 user
Choose the short login name.
Normal user password configuration in Debian 12
Set the user’s password.
Normal user password confirmation in Debian 12 Bookworm
Confirm the user’s password.

6. Time zone

Time-zone selection in Debian 12 Bookworm
The initial time zone is based on the location selected earlier.

Accurate time is essential on servers because it affects logs, TLS, Kerberos, scheduled jobs, and incident correlation.

7. Partition the disk

Partitioning methods in Debian 12 Bookworm
The original lab used guided partitioning across the entire disk.

Guided partitioning is reasonable for a VM or simple server. Production systems may instead require LVM, encryption, RAID, separate application data, or dedicated filesystems for logs and databases.

Selecting the disk to partition in Debian 12
Verify the disk model and capacity before choosing it.
Guided partition layout in Debian 12
Keeping all files in one partition is simple, though not always ideal for larger servers.
Debian 12 partition summary before writing changes
Review the final layout before committing it.
Disk partition write confirmation in Debian 12
This confirmation writes destructive changes to the selected disk.

8. Additional media and network mirror

Additional installation media prompt in Debian 12
A single netinst image normally requires no additional installation media.

The original walkthrough then continued without a network mirror. That results in a very small installation and requires APT repository setup afterward.

Continuing without a network mirror in Debian 12
Historical no-mirror path. For a normal netinst deployment, using a Debian mirror is recommended.

When network connectivity is available, select a Debian mirror. This lets tasksel retrieve services such as OpenSSH and install up-to-date packages during the installation process.

9. Popularity contest and software selection

Debian popularity contest prompt during Bookworm installation
Participation in Debian’s anonymous package-usage survey is optional.
Software selection for a minimal Debian 12 server
For a minimal server, avoid graphical desktop tasks and keep standard system utilities.

With a mirror configured, you can also select SSH server. Debian’s task installs openssh-server for remote administration.

10. Install GRUB and reboot

GRUB installation during Debian 12 setup
Installing the boot loader.
Selecting a GRUB target device in Debian 12
BIOS installations may ask which disk should receive GRUB.
Main disk selected for GRUB in Debian 12
The example uses /dev/sda; NVMe and other systems use different device names.

UEFI systems can follow a different path because GRUB is installed into the EFI System Partition.

Debian 12 Bookworm installation completed
Installation is complete and the system is ready to reboot.
Console login after installing Debian 12 Bookworm
First console login on the newly installed system.

11. Verify the installed release

cat /etc/os-release
Debian 12 Bookworm /etc/os-release output
Distribution information reported by the installed system.

12. Test IP connectivity and DNS

ping -c 4 1.1.1.1
Network connectivity test from Debian 12
An IP-level connectivity test after installation.

Then test DNS separately:

getent hosts debian.org

Being able to ping an IP address does not prove that name resolution works.

13. Configure Bookworm APT repositories

Editing sources.list on Debian 12
The original guide edited /etc/apt/sources.list manually.

On Debian 12, the traditional one-line sources.list format remains supported. If the installer already created correct repository entries, review them rather than deleting the file blindly.

A simple configuration using Debian’s CDN is:

deb https://deb.debian.org/debian bookworm main non-free-firmware
deb https://deb.debian.org/debian bookworm-updates main non-free-firmware
deb https://security.debian.org/debian-security bookworm-security main non-free-firmware

Add contrib or non-free only when you actually require software from those components.

Historical Debian 12 APT repository configuration
Historical repository screenshot. The text above now uses the recommended Debian CDN and security endpoints.
sudo apt update
apt update running on Debian 12 Bookworm
APT downloads repository metadata.

14. Fully update the server

This is particularly important in 2026 because an installation image can contain packages older than the current Bookworm LTS updates.

sudo apt update
sudo apt full-upgrade

Reboot when a kernel update requires it and verify the active kernel with uname -r.

15. Install OpenSSH and basic administration tools

sudo apt install openssh-server mc byobu wget curl htop btop iotop nload
Installing server administration tools on Debian 12
Installing common troubleshooting and administration utilities.
sudo systemctl enable --now ssh
sudo systemctl status ssh

For real servers, prefer SSH keys and a normal administrative user over routine direct root logins. Do not expose SSH publicly without an appropriate firewall, VPN, access-control policy, and patching strategy.

16. Monitor resources with htop

htop running on Debian 12 Bookworm
htop provides a convenient interactive view of processes, CPU, and memory use.

For deeper server troubleshooting, also become familiar with free, vmstat, iostat, ss, and journalctl.

17. Basic server hardening after installation

A reasonable baseline is to fully patch the system, install only necessary services, use individual administrative accounts, configure SSH keys, review SSH settings, apply an appropriate firewall policy, maintain accurate time, configure backups, monitor disk usage and logs, and document the server’s addressing and services.

Debian starts from a comparatively clean base; hardening should then reflect the server’s actual role rather than a generic checklist copied to every host.

Debian 12 LTS in 2026

Bookworm is no longer in its regular support phase. The Debian LTS team took over security maintenance in July 2026 and plans to continue through June 2028 for the supported architectures.

That does not require an immediate reinstall of every working Bookworm server. A stable, fully updated system with certified dependencies can remain on Debian 12 during LTS, but planning the migration to Debian 13 is wise before software vendors and third-party repositories stop supporting Bookworm.

Upgrading to Debian 13 is different from installing Debian 13

This page will remain a Debian 12 guide. An in-place upgrade to Debian 13 should follow Debian’s official release notes: back up the system, remove obsolete packages, ensure sufficient free space, review third-party repositories, and follow the supported repository transition.

Do not simply replace bookworm with trixie everywhere and run an upgrade without reading the migration documentation first.

Related guides

Official sources

Skip to content