How to Install Debian 12 Bookworm (with Screenshot)

The journey begins, the waiting is over, and you’re ready to install the Debian 12. This release with the codename Bookworm is the latest stable version of Debian and will be supported for the next 5 years. It comes with enhanced performance and updated packages.

For Desktop enthusiasts, the new Debian 12 ships with new versions of Desktop Environments (DE):

  • Gnome 43
  • KDE Plasma 5.27
  • Xfce 4.18
  • MATE 1.24
  • LXDE 11
  • and LXQt 1.2.0

Also, it comes with updated software packages such as:

  • Linux kernel 6.1 series
  • Nginx 1.22
  • Apache 2.4.57
  • OpenSSH 9.2p1
  • MariaDB 10.11
  • PostgreSQL 15
  • PHP 8.2
  • Python 3, 3.11.2
  • Rustc 1.63
  • BIND DNS Server 9.18
  • GIMP 2.10.34
  • LibreOffice 7.4

In this guide, we’ll walk you through how to install Debian 12 Bookworm, step-by-step with screenshots.

Without further ado, let’s dive in.

Prerequisites

Before proceeding, make sure you have a machine (bare-metal or virtual-machine) with the following:

  • 64-bit system architecture.
  • For Debian as a server: minimum 1GB of RAM with 5GB of disk.
  • For Debian as a desktop: minimum 2GB of RAM with 20GB of disk.

Downloading Debian 12 ISO

The Debian 12 comes in two ISO types:

  • netinstall: ISO file smaller – around 7xx MB, but required an internet connection to install additional packages.
  • DVD: The DVD version with bigger size and contains more packages. Suitable even without an internet connection.

Download your preferred Debian ISO file.

Creating bootable media

If you’re installing Debian on a PC/Laptop, create the USB media installation via Ventoy or Rufus. If installing as a virtual machine (VM), just create a new VM and make the Debian ISO file as default bootable media.

Booting and installing Debian

Boot up your machine with USB media installation or your VM with ISO file, then you will be presented with the following screen:

Select the installation method via Graphical install.

Installing Debian via graphical install
Installing Debian via graphical install

Selecting default language

Select your preferred language that will be used for this installation process. The default language is English, then click Continue.

Setting up the default language
Setting up the default language

Selecting country/location

Select your location (country) and click Continue. The location setting will be used as the default time zone and system locale.

Setting up country or location
Setting up country or location

Configuring keyboard layout

Now choose your preferred keyboard setting or keymap that you want to use and click Continue.

Configuring default keyboard layout
Configuring default keyboard layout

Setting up Hostname

Input the hostname for the new system and click Continue. In this example, I will use the hostname bookworm64.

Setting up hostname for new Debian system
Setting up hostname for new Debian system

Setting up the default domain

Input the domain name for your local network such as geekandnix.com or geekandnix.lan, then click Continue. This determined your new system’s FQDN (Fully Qualified Domain Name).

The FQDN = hostname + default domain = bookworkm64.geekandnix.com

Setting up default domain
Setting up default domain

Setting up a root password

Input the new root password for your Debian system and repeat the password. Be sure to use strong passwords such combination of characters, numbers, and special characters. Then, click Continue.

Creating root password
Creating root password

Adding new user

Input the Full Name for the new user and click Continue.

Setting up full name for the new user
Setting up full name for the new user

After that, input the username that will be used to log in to the new Debian machine and click Continue.

Setting up username
Setting up username

Lastly, input the new password and repeat the password, then click Continue.

Adding password for new user
Adding password for new user

Configuring time zone/clock

Select the default time zone based on your location and click Continue. You may have different list timezones, which are based on the default country or location that you have selected.

Configuring time zone or default clock/time
Configuring time zone or default clock/time

Partitioning Disks

After configuring the user, you will create a partition for the target installation disk.

The Debian installer provides 4 methods to partition the disk:

  • Guided – use entire disk
  • Guided – use entire disk and set up LVM
  • Guided – use entire disk and set up encrypted LVM
  • Manual

Note: If you’re new to Linux, use the Guided methods. But for experienced users, you can use the Manual method and customize the partition as you need.

In this case, select the Guided – use entire disk and set up, LVM, and click Continue.

Partition method to guided with entire disk and use LVM (Logical Volume Management)
Partition method to guided with entire disk and use LVM (Logical Volume Management)

Then select your disk for the target installation and click Continue.

Selecting disk for installation
Selecting disk for installation

Next, choose the partition schema that is suitable for you. The following example uses All files in one partition, which puts both / (root) and /home in one partition, then click Continue again.

Configuring partition schema for new system
Configuring partition schema for new system

Now select Yes to write the new partition table and format the disk, then click Continue.

Confirm format disk and setup new partition table and LVM
Confirm format disk and setup new partition table and LVM

Input the disk size such as 21GB or percentage 100% that will be used for the installation ( or the LVM volume group) and click Continue.

Configuring disk size for Debian installation
Configuring disk size for Debian installation

Lastly, double-check the partition table that you will be creating, then select Yes to confirm and click Continue to proceed with the installation.

Double-check partition schema and confirm formatting disk
Double-check partition schema and confirm formatting disk

Debian installation begins

Now the Debian installation of the base system should begin.

Installing Debian 12.5
Installing Debian 12.5

After installation is finished, select No when asked to scan another installation media and click Continue.

No additional media for the installation
No additional media for the installation

Configuring Mirror Repository

Next, select Yes and click Continue to configure the mirror repository for your new system.

Select the country nearest your location and click Continue. Using the nearest mirror will improve speed during the installation of packages.

Configuring country for mirror Debian repository
Configuring country for mirror Debian repository

Select the specific Debian archive mirror that you want to use and click Continue.

Selecting mirror for Debian repository
Selecting mirror for Debian repository

For the HTTP proxy, leave it blank to disable it, then click Continue.

Leave HTTP proxy blank to disable it
Leave HTTP proxy blank to disable it

Select No again when asked to participate in the server usage and click Continue.

No participate to survey
No participate to survey

Installing software (server or desktop)

Now select which software you want to install in your new Debian machine. Below are some conditional most people used Debian for:

  • If you want to install the Debian Server, select the SSH Server and standard system utilities.
  • For the Debian Desktop users, select your preferred Desktop Environment (DE) and also select the standard system utilities.

Then click Continue to proceed to the installation.

Installing basic software for Debian server or Desktop
Installing basic software for Debian server or Desktop

Installing GRUB boot loader

After the software packages are installed, select Yes to install the GRUB boot loader and click Continue.

Installing GRUB bootloader
Installing GRUB bootloader

Select the device where GRUB will be installed and click Continue to the installation.

Selecting disk location for GRUB bootloader installation
Selecting disk location for GRUB bootloader installation

Once the GRUB bootloader is installed, everything is completed. Click Continue to reboot, then remove the USB installation media or ISO file if you’re using a virtual machine.

Installation of Debian 12 Bookworm completed
Installation of Debian 12 Bookworm completed

Logging into Debian

After the system rebooted, you will be displayed the Debian GRUB screen.

Select Debian GNU/Linux and press ENTER.

GRUB bootloader for Debian
GRUB bootloader for Debian

Once the boot process is complete, you will be prompted with the login screen:

  • The graphical login screen if you’ve installed the Debian Desktop.
  • CLI-based login screen if you’ve installed Debian Server, which is the case for this example.

Input your username and password, then press ENTER to log in.

Once logged in, run the su command to log in as the root user and input your root password (not a normal user password).

Now, run the following command to check the Debian version.

lsb_release -a

You will notice that you’ve installed Debian 12 codename Bookworm.

Logging in and checking Debian version
Logging in and checking Debian version

Updating the repository and installing text editors

Lastly, enter the following command to update your Debian package index and get the latest version of package information. Then, install vim and nano text editors via the apt command below.

apt update
apt install nano vim -y
Updating Debian repository and install text editors (vim and nano)
Updating Debian repository and install text editors (vim and nano)

Conclusion

That’s it! You completed the installation Debian 12 server. As for the next, you may follow this path:

System administrator and devops enthusiast, leveraging over 10+ years of Linux expertise to optimize operations. Proficient in FreeBSD, VMWare, KVM, Proxmox, PfSense, Ansible, Docker, and Kubernetes.

Leave a Reply

Your email address will not be published. Required fields are marked *

Read Also: