Skip to main content

How to install Debian 11 Bullseye

Debian Stable is a great OS base to use for a homelab. It’s compatible and supported by many software out there.

In this guide, I will walk you through how to install Debian. The current version of Debian Stable as of 2022-03-06 is Debian 11 Bullseye.

Step 1: Download and Prepare Installation Media

You can download the installation ISO from the official website at https://www.debian.org/distrib/.

Choose the appropriate image according to your CPU’s architecture. This installation image will require an internet connection in order to work as it is a net-install image.

Screenshot 2022-03-06 225319.png

Screenshot 2022-03-06 225417.png

Screenshot 2022-03-06 225430.png

Once the file is downloaded, you can burn it to a USB Flash drive using Rufus (https://rufus.ie/en_US/) or Etcher (https://www.balena.io/etcher/).

Screenshot 2022-03-06 231638.png

Screenshot 2022-03-06 231820.png

Screenshot 2021-05-11 004613.png

Screenshot 2022-03-06 231741.png

Screenshot 2022-03-06 231949.png

Screenshot 2022-03-06 232016.png

Screenshot 2022-03-06 232041.png

Screenshot 2022-03-06 232242.png

Step 2: Start Installing

Plug the USB Installer into the computer, and boot into the ISO.

Screenshot 2022-03-06 003508.png

Choose your preferred Language, Location, and Keyboard layout, and click Continue.

Screenshot 2022-03-06 003548.png

Screenshot 2022-03-06 003609.png

Screenshot 2022-03-06 003627.png

Screenshot 2022-03-06 003640.png

Screenshot 2022-03-06 003652.png

Give your machine a Hostname, and the network Domain name if you have a domain setup.

Screenshot 2022-03-06 003709.png

Screenshot 2022-03-06 003737.png

Set the root user password and continue. The root user is the user that have access to everything and anything on a Linux OS.

Screenshot 2022-03-06 004136.png

Set a name for the standard user account. The standard user account can be use instead of root for regular day to day activities. Set the password for the standard user and continue.

Screenshot 2022-03-06 004153.png

Screenshot 2022-03-06 004216.png

Screenshot 2022-03-06 004301.png

Screenshot 2022-03-06 004321.png

Screenshot 2022-03-06 004346.png

If your machine is set to UEFI boot, and you are installing over an existing drive, you may see the following prompt. Select Yes to continue on with UEFI installation.

Screenshot 2022-03-06 004402.png

Select Guided – use entire disk to install Debian 11 on the entire drive.

Screenshot 2022-03-06 004426.png

Screenshot 2022-03-06 004514.png

Choose All files in one partition. This method is the most beginner friendly as it allows for easy file navigation.

Screenshot 2022-03-06 004547.png

If your current drive have per-existing partitions on it, select Yes to wipe the existing partitions so that Debian 11 can be install over a fresh drive.

Screenshot 2022-03-06 004617.png

Choose Finish partitioning and write changes to disk, and Yes to confirm writing to the disk.

Screenshot 2022-03-06 004656.png

Screenshot 2022-03-06 004740.png

Screenshot 2022-03-06 004754.png

For scanning more media, select No and Continue to continue the installation. As this is a net-install, you will get the latest package updates straight from the source in the next few steps.

Screenshot 2022-03-06 004919.png

Choose a location that is closest to you, and choose a package manager mirror to use. deb.debian.org is a good choice to use. Leave the HTTP proxy blank unless you have a proxy setup.

Screenshot 2022-03-06 004934.png

Screenshot 2022-03-06 004948.png

Screenshot 2022-03-06 005004.png

Screenshot 2022-03-06 005021.png

You can choose if you want to anonymously send statistical data to the developers. On Linux, you have the freedom to choose, and the freedom to do anything and everything you want to the OS.

Screenshot 2022-03-06 005047.png

For a headless (no graphical user interface) install, check only the SSH Server and standard systems utilities.

Screenshot 2022-03-06 005120.png

If you need a GUI (graphical user interface), you can also check the Debian desktop environment, and one of the desktop environment option. Xfce is one of my go-to desktop environment as it is very lightweight, and designed to use as little system resource as possible. It’s a great desktop environment option for low spec systems.

Screenshot 2022-03-06 005151.png

Once you click continue, the system will finish up the installation and reboot.

Screenshot 2022-03-06 005244.png

Screenshot 2022-03-06 005258.png

Screenshot 2022-03-06 123627.png

Screenshot 2022-09-16 232115.png

That’s it! You have successfully finished installing Debian 11 Bullseye on your computer.

One reason that Debian is very stable and reliable is that it does not come with a lot of tools and utilities per-installed. One of the major package that it does not come with in the headless install is sudo, a package that allows a standard user to temporary run commands as with root privileges.

Install Sudo

Sudo is a package that allows you to temporary allow the standard user to run a command with root permission. This can reduce the chance of accidental bad command execution, and increase security of the system. Generally, you do not want to login as the root user since the root user have access to everything on the system, and can do anything.

Login to the system as root. Run the following command to update the system first:

apt update && apt upgrade -y

Screenshot 2022-09-16 232206.png

Sudo can then be installed via the follow command:

apt install sudo -y

Screenshot 2022-09-16 232352.png

Once sudo is installed, you will need to add your standard user to the sudo group in order for your standard user to use the sudo command.

You can add your standard user to sudo via the following command:

usermod -aG sudo your_standard_user_name

Screenshot 2022-09-16 232518.png

That’s it!