What you need before you start

Installing Debian requires three things: a computer or virtual machine, a way to load Debian onto a USB drive or DVD, and about 30 minutes to an hour depending on your internet speed. You do not need to erase your existing operating system first — Debian can run alongside Windows or macOS if you set up your disk correctly, though most people choose to replace what they have.

Download Debian from debian.org. The site offers different versions for different computer types: AMD64 for most modern computers, i386 for older 32-bit machines, and ARM versions for Raspberry Pi and similar devices. If you are unsure which one fits your computer, AMD64 is the safe choice for anything made in the last ten years.

You will also need a USB drive with at least 2 GB of space, or a blank DVD. The installation files are about 650 MB, so a small USB drive works fine. If you plan to install Debian offline (without internet during setup), download the larger "DVD" version instead of the smaller "netinst" version — the netinst version downloads packages during installation.

Key Takeaways

  • Download Debian from debian.org and choose the version that matches your computer type, usually AMD64 for modern machines.
  • Write the Debian image to a USB drive using Balena Etcher, Rufus, or dd, depending on whether you use Windows, macOS, or Linux.
  • Boot from the USB drive by restarting your computer and pressing the boot menu key — usually F12, Esc, or Del — during startup.
  • During installation, you will choose your language, timezone, disk layout, and whether to keep or replace your existing operating system.
  • After installation finishes, your computer restarts and boots into Debian, where you can install additional software through the package manager.

Writing Debian to a USB drive

The file you download from debian.org is an ISO image — a single file that contains the entire operating system. You cannot simply copy it to a USB drive like a regular file. Instead, you need to write it in a way that makes the USB drive bootable.

On Windows, use Balena Etcher (balena.io/etcher) or Rufus (rufus.ie). Both are free. Open the program, select the Debian ISO file you downloaded, select your USB drive from the list, and click the button to write. The process takes a few minutes. On macOS, Balena Etcher works the same way. On Linux, you can use Balena Etcher or the command line tool dd if you are comfortable with the terminal.

Do not unplug the USB drive until the program says it is finished. When it is done, your USB drive is ready to boot.

Booting from the USB drive

Plug the USB drive into your computer and restart it. As soon as the computer turns on, before the operating system loads, press the boot menu key repeatedly. This key varies by computer manufacturer: F12 is common on Dell and Lenovo machines, Esc on HP, and Del on some others. If you are unsure, restart and try F12 first — if nothing happens, restart again and try the next one.

A menu will appear showing devices you can boot from. Select your USB drive — it may be labeled as a USB device or by the drive's brand name. The computer will load Debian from the USB drive and show you the installer.

If you do not see a boot menu, your computer may have Secure Boot enabled. Restart, enter the BIOS or UEFI settings (usually by pressing F2, F10, or Del during startup), and look for a Secure Boot option. Disable it, save, and restart. Then try the boot menu key again.

Walking through the Debian installer

The installer presents a series of screens asking for information about your setup. You can navigate using arrow keys and Tab, and press Enter to select. The first screens ask for your language and timezone — choose the ones that match your location.

When the installer asks about your disk, this is the most important step. If you want Debian to be the only operating system on this computer, select "Erase disk and install Debian." If you want to keep Windows or another operating system, select "Manual" and create a new partition for Debian. The manual option requires more care — you are telling the installer exactly where to write files — but it preserves your existing system.

Next, the installer asks for a hostname (a name for your computer on a network) and your user account details. Choose a hostname you will remember. Create a user account with a password you can type reliably — you will need it every time you log in.

The installer then downloads and installs packages. If you chose the netinst version, this step requires an internet connection. If you chose the DVD version, most packages are already on the USB drive. This step takes 10 to 30 minutes depending on your internet speed and how many packages Debian needs to install.

After installation: your first boot

When installation finishes, the installer asks you to remove the USB drive and restart. Do that. Your computer will boot into Debian for the first time. You will see a login screen asking for your username and password — use the account you created during installation.

After you log in, you will see the desktop. Debian comes with a basic set of programs: a file manager, a text editor, and a web browser. To install additional software, open the application menu and search for "Software" or "Synaptic." This opens the package manager, where you can search for and install thousands of free programs.

If you prefer the command line, you can install software by opening a terminal and typing sudo apt install [program name]. The package manager handles downloading and setting up everything for you.

Troubleshooting common problems

If your computer does not boot from the USB drive, the image may not have written correctly. Rewrite it using Balena Etcher or Rufus, making sure to select the correct USB drive. If the installer crashes or freezes, try the "Safe Graphics" option from the boot menu — some computers have graphics card compatibility issues that this option works around.

If you chose to keep an existing operating system and the installer seems to have erased it, do not panic yet. Restart your computer and check the boot menu — you may be able to boot into your old system. If the old system is truly gone, you can reinstall it later, or you can continue with Debian alone.

If you get stuck at any point during installation, you can restart the computer and begin again. The installer does not make permanent changes until you confirm the disk layout, so restarting early in the process is safe.

What to do after Debian is running

Your Debian system is now ready to use. Before you start relying on it, consider backing up any important files to an external drive or cloud storage. Debian itself is stable, but like any computer, hardware can fail.

To keep your system secure and up to date, open a terminal and run sudo apt update followed by sudo apt upgrade once a week or once a month. This downloads and installs security patches and updates to the programs you have installed.

If you want to customize your desktop, change the wallpaper, or install a different desktop environment, you can do that through the Settings application or the package manager. Debian is flexible — you can make it look and work however you prefer.

Frequently Asked Questions

Can I install Debian without erasing Windows?

Yes. During installation, choose "Manual" when the installer asks about your disk. Create a new partition for Debian separate from your Windows partition. After installation, your boot menu will show both operating systems, and you can choose which one to start each time you restart. This requires some care during the partitioning step, so take your time and do not rush.

What if the installer asks for a network mirror and I do not have internet?

If you downloaded the netinst version and do not have internet during installation, the installer will fail when it tries to download packages. Download the DVD version instead — it contains most packages on the USB drive itself and does not require internet. You can add internet later after Debian is installed.

How do I go back to Windows if I change my mind?

If you kept Windows on a separate partition, restart your computer and select Windows from the boot menu. If you erased Windows to install Debian, you can reinstall Windows using a Windows installation USB drive, the same way you installed Debian. You will need a Windows license key or installation media.

Do I need to do anything special if my computer uses UEFI instead of BIOS?

No. Modern Debian installers detect UEFI automatically and handle it correctly. The process is the same — boot from USB, run the installer, and choose your disk layout. UEFI is the newer standard, and Debian supports it without extra steps.

What happens if I make a mistake during installation?

If you make a mistake before the installer writes to your disk, restart your computer and begin again. The installer does not make permanent changes until you confirm the disk layout on the final screens. If you realize the mistake after installation is complete, you can reinstall Debian from the USB drive and start over.