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.
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/).
Step 2: Start Installing
Plug the USB Installer into the computer, and boot into the ISO.
Choose your preferred Language, Location, and Keyboard layout, and click Continue.
Give your machine a Hostname, and the network Domain name if you have a domain setup.
Set the root user password and continue. The root user is the user that have access to everything and anything on a Linux OS.
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.
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.
Select Guided – use entire disk to install Debian 11 on the entire drive.
Choose All files in one partition. This method is the most beginner friendly as it allows for easy file navigation.
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.
Choose Finish partitioning and write changes to disk, and Yes to confirm writing to the disk.
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.
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.
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.
For a headless (no graphical user interface) install, check only the SSH Server and standard systems utilities.
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.
Once you click continue, the system will finish up the installation and reboot.
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
Sudo can then be installed via the follow command:
apt install sudo -y
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
That’s it!