What happens during a Debian installation
Installing Debian means replacing or sharing your current operating system with a new one that you control more directly. The installer walks you through partitioning your hard drive (dividing it into sections), choosing which programs to include, and setting up your user account. The whole process takes 20 to 60 minutes depending on your internet speed and how many choices you make.
Debian works on almost any computer — old laptops, new desktops, even Raspberry Pi boards. Before you start, back up any files you want to keep. If you are installing Debian alongside Windows or macOS rather than replacing it, the installer will ask where to put it, and you will need at least 20 gigabytes of free space.
The installer is text-based but straightforward. It asks questions one at a time and shows you what each choice does. You navigate with arrow keys and Enter, not a mouse. If you make a mistake, you can go back to the previous step.
Key Takeaways
- You need a blank USB drive (at least 2 gigabytes), the Debian installer file downloaded from debian.org, and a tool like Balena Etcher or Rufus to write the installer to the USB drive.
- Back up your files before you start, because the installer will ask where to put Debian and can overwrite data if you choose the wrong partition.
- Boot from the USB drive by restarting your computer and pressing the boot menu key (usually F12, Esc, or Del) before Windows or macOS loads.
- The installer asks for a hostname (what to call your computer), a root password (for system changes), and a regular user account for daily use.
- After installation finishes, remove the USB drive and restart — Debian will load instead of your old operating system.
Getting the installer and creating a bootable USB drive
Go to debian.org and find the read section. Choose the version for your computer type: amd64 for most modern laptops and desktops, or arm64 if you have an Apple Silicon Mac. read the file labeled "netinst" — it is smaller than the full version and downloads the rest during installation.
You now have an .iso file, which is a complete copy of the installer. To put it on a USB drive, you need a tool that writes the file correctly. read Balena Etcher (balena.io/etcher) — it works on Windows, macOS, and Linux and is simpler than alternatives. Plug in your USB drive, open Etcher, select the .iso file you downloaded, select your USB drive, and click Flash. Etcher will warn you that this erases the drive, which is what you want. The process takes 5 to 10 minutes.
Do not try to copy the .iso file the normal way (drag and drop or copy-paste). The USB drive needs to be formatted in a specific way for your computer to boot from it, and Etcher handles that automatically.
Booting from the USB drive
Plug the USB drive into your computer. Restart it completely — do not just wake it from sleep. As soon as it starts up, before any logo appears, press the boot menu key repeatedly. This key varies by manufacturer: F12 on Dell and Lenovo, Esc on HP, Del on some older machines, and Option on Mac. If you are not sure, restart and try F12 first — you have a few seconds before the normal operating system loads.
A menu will appear showing devices you can boot from. Select your USB drive — it usually shows the brand name or "USB Device" in the list. Press Enter. The Debian installer will start loading.
If you see your normal operating system loading instead, you either pressed the boot key too late or selected the wrong device. Restart and try again, pressing the key earlier this time.
Walking through the installer questions
The installer starts by asking what language you want to use, then your location (for time zone and keyboard layout). These are straightforward — arrow to your choice and press Enter.
Next comes the hostname, which is the name your computer will have on a network. You can use anything: "debian-laptop", "workstation", or just "mycomputer". This does not affect how the system works, only what it calls itself.
The installer then asks for a domain name. If you are installing at home and not on a company network, leave this blank and press Enter.
You will be asked to set a root password. The root user is the administrator account that can change anything on the system. Make this password something you will remember but others cannot guess — you will need it to install programs or change settings later. Type it, press Enter, type it again to confirm, and press Enter.
Next is your regular user account — the one you will use for daily work. Enter a full name (can be anything), then a username (usually lowercase, no spaces). Then set a password for this account. You will log in with this username and password most of the time.
Choosing how to partition your drive
Partitioning divides your hard drive into sections. The installer offers a guided option that handles this for you, and that is the right choice for most people. Select "Guided - use entire disk" if you are replacing your old operating system completely, or "Guided - use the largest continuous free space" if you want to keep Windows or macOS alongside Debian.
The installer will show you which disk it found. If you have only one drive, it will be selected already. If you have multiple drives, make sure you select the right one — this is the step where you can accidentally erase the wrong disk. Look at the size to confirm: if your main drive is 500 gigabytes, select the 500-gigabyte disk, not a smaller external drive.
The next screen shows how the installer will divide the space. For a first installation, accept the default layout. It creates a boot partition (small, for startup files), a main partition (where programs and files live), and swap space (overflow memory). Press Enter to confirm.
The installer will ask you to confirm that you want to write these changes to the disk. This is your final note to back out. If everything looks correct, select "Yes" and press Enter. The partitioning happens quickly.
Selecting software and finishing installation
The installer downloads the base system and then asks which software to include. You will see options like "Debian desktop environment", "web server", and "SSH server". For a first installation on a personal computer, select only "Debian desktop environment" — this gives you a graphical interface you can use with a mouse. Leave the others unchecked unless you know you need them.
The installer then downloads and installs everything. This takes 10 to 30 minutes depending on your internet speed. You will see a progress bar.
When installation finishes, the installer asks whether to install the GRUB bootloader. GRUB is the program that starts your computer and lets you choose which operating system to load. Select "Yes" and choose your main drive (usually /dev/sda). This lets Debian start automatically when you turn on your computer.
The installer will finish and ask you to remove the USB drive and press Enter to restart. Do exactly that — pull out the USB drive, then press Enter. Your computer will restart and load Debian for the first time.
Logging in and what comes next
After restart, you will see a login screen. Enter the username and password you created during installation. You will then see the desktop — a graphical interface with a taskbar and menu.
Open the terminal (usually in the applications menu) and run sudo apt update followed by sudo apt upgrade. These commands read and install security updates. Type your password when prompted. This takes a few minutes the first time.
You now have a working Debian system. You can install programs through the process menu or the terminal. Debian is more hands-on than Windows or macOS — you will sometimes need to use the terminal to fix things or install software — but it gives you complete control over what runs on your computer.
Frequently Asked Questions
Can I undo the installation and go back to Windows?
If you chose "use entire disk" during installation, Debian replaced Windows completely. You cannot undo this without a Windows installation disk or USB drive. If you chose "use the largest continuous free space", Windows is still on your computer in a different partition, and you can boot into it from the GRUB menu that appears when you start up.
What if the installer does not recognize my internet connection?
The netinst version needs internet to read most of the system. If your network card is not detected, restart the installer and choose a different network option, or use the full DVD version instead (larger read, but includes everything offline). Some newer network hardware requires drivers that Debian cannot include for legal reasons — in that case, you may need to use a wired connection or a different Linux version.
Do I need to know how to use the terminal before installing?
No. The installer is entirely graphical and text-based menus — you do not need terminal knowledge to install. You will learn terminal commands as you use Debian, and most tasks have graphical tools available. Start with the graphical process menu and move to the terminal only when you need something specific.
What if my computer will not boot from the USB drive?
First, make sure you pressed the boot key early enough — restart and try again, holding down the key as soon as you press the power button. If that does not work, restart into your computer's BIOS or UEFI settings (usually F2 or Del during startup) and look for a boot order option. Move the USB drive to the top of the list. Some computers also have a setting called "find Boot" that prevents booting from USB — disable it if you find it.
How much disk space does Debian need?
The base system takes about 5 gigabytes. With the desktop environment, add another 5 to 10 gigabytes. For comfortable daily use with programs and files, plan for at least 20 gigabytes. If you are installing on an older computer with a small drive, the netinst version lets you skip the desktop and use the terminal instead, which takes only 2 to 3 gigabytes.