What you need before you start
Installing Debian means replacing or sharing the operating system on your computer. Before you begin, back up any files you want to keep — the installation process will erase data on whichever drive you choose. You will also need a USB stick with at least 4 GB of space (the data on it will be erased) and another computer to create the installation media.
Check whether your computer can run Debian by looking at its processor and RAM. Debian runs on machines with as little as 512 MB of memory, though 2 GB makes the experience smoother. Most processors made in the last 15 years will work. If you are unsure, Debian's hardware compatibility list on their official website covers specific models.
Decide whether you want to replace your current operating system entirely or keep both systems on the same computer. A full replacement is simpler for beginners. Keeping both (called dual-booting) requires more disk space and careful partitioning, and you will choose which system to use each time you start the computer.
Key Takeaways
- Download the Debian installer from debian.org, then use a tool like Rufus or Etcher to write it to a USB stick on another computer.
- Insert the USB stick into your target computer, restart it, and press the key that appears on screen to boot from USB (usually Delete, F2, or F12).
- The installer will walk you through language, timezone, disk partitioning, and user account creation in a series of screens.
- After installation finishes and you restart, Debian will boot and ask you to log in with the username and password you created.
- If the installer does not start when you restart, you may need to change the boot order in your computer's BIOS or UEFI settings.
Download Debian and create installation media
Go to debian.org and find the download section. You will see options for different computer architectures — choose the one that matches your computer. Most modern computers use amd64 (which works for both AMD and Intel processors). Older 32-bit systems use i386. If you are not sure, amd64 is the safe choice for anything made in the last ten years.
Download the ISO file, which is the complete Debian system compressed into one file. The file is about 650 MB to 1 GB depending on which version you choose. Standard Debian includes a basic desktop environment; other versions include different software bundles.
On your second computer (the one you will use to prepare the USB stick), download a tool to write the ISO file to the USB stick. Rufus works on Windows, Etcher works on Windows, Mac, and Linux, and Mac users can also use the built-in Disk Utility. Insert your USB stick, open the tool, select the ISO file you downloaded, select the USB stick as the destination, and click the button to write. This takes a few minutes and will erase everything on the USB stick.
Boot from the USB stick and start the installer
Insert the USB stick into your target computer and restart it. As soon as the screen shows the manufacturer's logo or a startup message, watch for text that says "Press [key] to enter Setup" or "Press [key] to boot from USB." The key varies by manufacturer — common ones are Delete, F2, F10, F12, or Esc. Press it immediately and repeatedly until a menu appears.
If a menu appears with boot options, select the USB stick (it may be labeled as a removable drive or by the stick's brand name). If you see a different menu asking about BIOS or UEFI settings, look for a section called "Boot Order" or "Boot Priority" and move the USB stick to the top of the list, then save and exit.
The computer will restart and load the Debian installer from the USB stick. You will see a menu with options like "Graphical Install" or "Install." Choose "Graphical Install" if you want a point-and-click interface, or "Install" for a text-based version. Both do the same thing; graphical is easier to follow.
Choose language, location, and keyboard layout
The installer will ask you to select your language. This is the language the system will use during installation and afterward. Choose the one you are most comfortable reading.
Next, select your country or region. This sets your timezone and helps the system get the correct time. If you are in the United States, select your state. If you are elsewhere, find your country in the list.
Then choose your keyboard layout. If you use a standard QWERTY keyboard, select "English (US)" or the equivalent for your region. If you use a different layout (like Dvorak or AZERTY), find it in the list. You can test the layout by typing in the box that appears.
Set up your network and hostname
The installer will detect your network connection. If you are connected by ethernet cable, it will usually find it automatically. If you are using WiFi, select your network from the list and enter the password.
Next, you will choose a hostname — the name your computer will have on the network. This can be anything you want: "debian-laptop", "workstation", or your own name. It cannot contain spaces or special characters. This is just a label; it does not affect how the system works.
The installer will then ask for a domain name. If you are setting up a home computer, you can leave this blank or enter "localdomain." This field is only important if your computer is part of a business network.
Create a user account and set the root password
Debian will ask you to create a password for the root account. Root is the administrator account with full control over the system. Choose a strong password you can remember — write it down somewhere safe if you need to. You will rarely need this password on a home computer, but you will need it for system updates and installing software.
Next, create a regular user account for daily use. Enter a full name (this can be anything), then a username (this is what you will type to log in). The username should be lowercase letters and numbers only, no spaces. Then create a password for this account. This is the password you will use every day.
Partition your disk and choose what to install
The installer will show you the disks attached to your computer. If you are replacing your entire operating system, select the disk you want to use and choose "Guided - use entire disk." The installer will automatically set up the partitions (the sections of the disk that hold different parts of the system).
If you want to keep another operating system on the same computer, you will need to manually partition the disk. This is more complex — the installer will show you the current partitions and let you create new ones. Allocate at least 20 GB for Debian if you plan to install software. If you are not comfortable with this step, it is safer to use the entire disk option and reinstall your other system afterward if needed.
After partitioning, the installer will ask what software to install. You will see options like "Debian desktop environment," "web server," "SSH server," and others. For a first installation, select "Debian desktop environment" to get a graphical interface you can use with a mouse and keyboard. You can add or remove software later.
Complete the installation and restart
The installer will now copy files to your disk and set up the system. This takes 10 to 30 minutes depending on your computer's speed and internet connection. You will see a progress bar.
When the installation finishes, the installer will ask whether to install a bootloader. A bootloader is the program that starts your computer and lets you choose which operating system to run. Select "Yes" and choose the disk where you want it installed (usually the main disk). If you are dual-booting, the installer will detect your other operating system and add it to the boot menu automatically.
The installer will then ask you to remove the USB stick and restart the computer. Do this — take out the USB stick and press Enter. The computer will restart and boot into Debian for the first time. You will see a login screen asking for your username and password. Enter the regular user account you created earlier (not the root account).
Frequently Asked Questions
What if the installer does not start when I restart the computer?
The computer is booting from your main disk instead of the USB stick. Restart again and press the boot menu key (Delete, F2, F12, or Esc) more quickly and repeatedly. If that does not work, restart and enter the BIOS or UEFI settings instead, find the boot order section, and move the USB stick to the top of the list.
Can I install Debian alongside Windows or Mac?
Yes, but you will need to manually partition your disk during installation to make room for both systems. This requires understanding disk space and partition types. If you are new to this, install Debian on the entire disk first, then reinstall your other system on a separate drive or in a virtual machine later.
What do I do if I forget the root password?
You can reset it by restarting the computer, interrupting the boot process, and entering single-user mode. This is technical and varies by system. It is easier to prevent this by writing down the root password when you create it.
Do I need an internet connection during installation?
You do not need one, but having one speeds up the process. The installer can download updates and additional software while it runs. If you do not have internet during installation, you can add it later through the system settings.
How much disk space does Debian need?
The base system takes about 2 to 3 GB. If you install the desktop environment and common software, plan for 15 to 20 GB. For a comfortable setup with room to grow, allocate 50 GB or more.