Installing Debian could be easy or complicated depending upon the ISO you choose.
If you go with the default ISO provided by the Debian website, you’ll have a hard time installing Debian. You’ll be stuck at a screen that asks for network drivers to be installed from external removable media.
You may, of course, troubleshoot that, but it makes things unnecessarily complicated.
Don’t worry. Let me show the steps for installing Debian comfortably and easily.
The easy way of installing Debian as a desktop
Before you see the steps, please have a look at things you need.
- A USB key (pen drive) with at least 4 GB in size.
- A system with internet connection (could be the same system where it will be installed).
- A system where you’ll be installing Debian. It will wipe out everything on this system so please copy your important data on some other external disk.
What kind of system specification you should have for Debian? It depends on the desktop environment you are going to use. For example, GNOME desktop environment could work on 4 GB RAM but it will work a lot better on an 8 GB RAM. If you have 4 GB or less, try using KDE, Cinnamon or Xfce desktops.
Debian also has both 32-bit and 64-bit architecture support. You’ll have to get the Debian ISO according to your processor architecture.
Your system should have at least 25 GB of disk space to function. The more, the merrier.
In this tutorial, I am going to show the steps for installing Debian 11 Bullseye with GNOME desktop environment. The steps should be the same even if you choose some other desktop environment.
Step 1: Getting the correct Debian ISO
Half of the battle in installing Debian is choosing the correct ISO. Surprisingly, it is really difficult to navigate through its website and find that ISO which is the easiest for a new Debian user.
If you click the Download button on the homepage of Debian website, it downloads a minimal net install file which will be super complicate for a regular user. Please DO NOT use this.
Instead, you should go for the live ISO. But here is a catch, there are separate live versions with non-free software (includes drivers for your networking hardware).
You should download this non-free live ISO. Another problem here is that you won’t get it mentioned prominently on the website and there are various URLs for torrents or direct downloads for various architecture.
Let me link them here.
You’ll see several files with the of desktop environment mentioned in the filename. Choose the one with desktop environment of your choice. For direct downloads, click on the links that end with .iso.
Once you have the appropriate ISO downloaded, the rest is standard procedure that you may have experienced with other Linux distributions.
Step 2: Creating live USB of Debian
Plug in the USB into your system. It will be wise to format it just for the sake of it. It will be formatted anyway.
You can use any live USB creation tool of your choice. If you are using Windows, go with Rufus. I am going to use Etcher here because it is available for both Windows and Linux.
Download Etcher from its website.
I have a dedicated tutorial on using Etcher in Linux and thus I am not going to go in detail here. Just run the downloaded executable file, browse to the Debian ISO, make sure that correct USB is selected and then hit the Flash button.
It may take a couple of minutes to create the live USB. Once that is ready, it is time to boot from it.
Step 3: Boot from the live USB
Restart the system where you want to install Debian. When it is showing the manufacturer’s logo, press F2/F10 or F12 key to access the boot settings. You may also access the UEFI firmware settings from Windows.
Some systems do not allow booting from live USB if secure boot is enabled. If that is the case, please disable secure boot from the BIOS settings.
The screen may look different for different manufacturers.
Once you make the change, press F10 to save and exit. Your system will boot once again.
Again, press F2/F10 or F12 to access the boot settings when it shows the manufacturer’s logo. You should see the option to boot from the USB. Select it.
It takes a little bit of time and then you should see a screen like this. Go with the first option here.
Step 4: Start Debian installation
When you enter the live Debian session, it may show some welcome screen with option to choose your keyboard and language if you are using GNOME desktop. Just hit next when you see those screens.
Once you are past the welcome screen, press the Windows/Super key to bring the activity area. You should see the Debian install button here.
It opens the friendly Calamares graphical installer. Things are pretty straightforward from here.
It asks you to select your geographical location and time zone.
On the next screen, you’ll be asked to select the keyboard. Please pay attention here. Your keyboard is automatically selected based on your location. For example, I had used India as my location and it automatically set the default Indian keyboard with Hindi language. I had to change it to English India.
The next screen is about the disk partition and where you would like to install Debian. In this case, you are going to install Debian as the only operating system on your computer.
The easiest option would to go with ‘Erase disk’ option. Debian will put everything under root except the mandatory ESP partition and Swap space. In fact, it shows what your disk would like after your chosen installation method.
If you want to take matter in your hands, you may also opt for manual partitioning and choose how much you want to allot to root, home, boot or swap. Only do that when you know what you are doing.
On the next screen, you have to provide the username and password. It does not set root password and keeps it empty.
This also means that you can use sudo with the newly created user. In the ‘complicated Debian install’, you could also set root password but then you’ll have to add the normal user to sudoer list manually. See, this installation method is easier for beginners, right?
Before it goes on with the actual installation, it presents you with a summary of the choices you have made. If things look good, hit the install button.
Now it is just a matter of waiting for the installation to finish.
It takes a few minutes to complete the installation. When the installation finishes, it asks for a restart.
Restart your system and if everything goes well, you should see the grub screen with Debian.
Troubleshooting tip (if your system does not boot into Debian)
In my case, my Dell system did not recognize any operating system to boot. This was weird because I had see Debian creating an ESP partition.
If it is the same case with you, go to BIOS settings. Check the boot sequence. If you do not see anything, click on the Add boot option.
It should give you an option to add an EFI file.
Since Debian created ESP partition during installation, there is an EFI directory created with necessary files.
It should show a Debian folder along with some other folders. Select Debian folder.
In this Debian folder, you’ll find files like grubx64.efi, shimx64.efi. Select shimx64.efi.
You may give this file an appropriate name. The final screen may look like this.
Now, you should have this boot option. Since I named it Debian, it shows two Debian boot options (one of them coming from the efi file I guess). Press F10 to save and exit the BIOS settings.
When your system boots now, you should see the grub screen with Debian boot option. You can start enjoying Debian now.
Were you able to install Debian?
I hope I made things simpler here. It is not that you cannot install Debian from the default net installer ISO. It just takes (a lot) more effort.
Was this tutorial helpful for you in installing Debian? Are you still facing issues? Please let me know in the comment section and I’ll try to help you out.