How to Install Debian 12 "Bookworm" Step by Step
Categories:
4 minute read
Debian 12 “Bookworm” is a stable and powerful Linux distribution suitable for various purposes, including desktop and server environments. This guide provides a step-by-step process to install Debian 12 on your system.
Prerequisites
Before beginning the installation, ensure you have the following:
- System Requirements:
- At least 2 GB RAM (4 GB recommended for smooth performance)
- 20 GB of free disk space (SSD preferred)
- 1 GHz dual-core processor or better
- Internet connection (optional but recommended for updates)
- Installation Media:
- A USB flash drive (8 GB or larger)
- A downloaded Debian 12 ISO file
- A tool to create a bootable USB (such as Rufus or Balena Etcher)
- Data Backup: Backup important data before proceeding.
Step 1: Download Debian 12 ISO
- Visit the official Debian website: https://www.debian.org/download
- Select the appropriate version:
- amd64 for 64-bit systems (most common)
- i386 for older 32-bit systems
- Choose between:
- Netinstall ISO (smaller download, installs packages over the internet)
- DVD ISO (larger download, contains more pre-installed packages)
- Download the ISO file.
Step 2: Create a Bootable USB Drive
To create a bootable USB drive, use one of the following methods:
Windows (Using Rufus)
- Download and install Rufus from https://rufus.ie
- Insert your USB drive and open Rufus.
- Select the downloaded Debian 12 ISO file.
- Choose GPT for UEFI or MBR for BIOS under “Partition Scheme.”
- Click Start and wait for the process to complete.
Linux (Using dd Command)
Insert the USB drive and find its name using:
lsblk
Run the following command (replace
sdX
with the correct device name):sudo dd if=/path/to/debian.iso of=/dev/sdX bs=4M status=progress
Wait for the process to complete, then safely eject the USB.
Step 3: Configure BIOS/UEFI Settings
- Insert the bootable USB drive into your system.
- Restart the computer and enter BIOS/UEFI (press F2, F12, Esc, or Del, depending on your system).
- Change the Boot Order to prioritize the USB drive.
- Disable Secure Boot (if applicable).
- Save and exit BIOS/UEFI.
Step 4: Start the Debian 12 Installation
- Boot from the USB drive.
- Select Graphical Install (recommended for ease of use).
- Choose your language, location, and keyboard layout.
Step 5: Configure Network Settings
- If connected to a wired network, Debian will automatically configure the internet.
- If using Wi-Fi, select your network and enter the password.
- Set a hostname for your system (e.g.,
debian-pc
). - Enter a domain name (optional, can be left blank).
Step 6: Set Up Users and Passwords
- Set a root password (for administrative tasks).
- Create a regular user account:
- Enter the full name.
- Set a username.
- Choose a secure password.
Step 7: Disk Partitioning
- Choose a partitioning method:
- Guided - use entire disk (recommended for beginners)
- Guided - use entire disk with LVM (recommended for better flexibility)
- Manual (for advanced users)
- Select the disk to install Debian.
- Choose a partitioning scheme:
- All files in one partition (simpler)
- Separate /home partition (better for future upgrades)
- Separate /home, /var, and /tmp partitions (recommended for advanced users)
- Confirm and apply partitioning changes.
Step 8: Install the Base System
- Debian will now install the base system.
- Wait for the installation to complete (this may take several minutes).
Step 9: Configure the Package Manager
- Select a Debian mirror near your location for faster downloads.
- If using a proxy, enter the details (otherwise, leave blank).
Step 10: Choose Software to Install
- Select the desktop environment (GNOME, KDE, Xfce, etc.).
- Choose additional packages (SSH server, web server, etc.).
- Wait for the installation to finish.
Step 11: Install the GRUB Bootloader
- When prompted, select Yes to install GRUB.
- Choose the disk where GRUB should be installed (usually
/dev/sda
).
Step 12: Finish Installation and Reboot
- Once installation is complete, remove the USB drive.
- Click Continue to restart the system.
- Debian 12 should now boot up.
Step 13: Post-Installation Setup
After installation, consider the following steps:
Update the system:
sudo apt update && sudo apt upgrade -y
Install additional software:
sudo apt install firefox vlc gimp
Enable firewall:
sudo ufw enable
Conclusion
Congratulations! You have successfully installed Debian 12 “Bookworm.” Whether using it as a personal desktop or server, Debian offers stability, security, and flexibility for various applications.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.