Time: about 30 min (quick) or 1–2 h (full); Cost: free; Difficulty: moderate. Install Debian Stretch using either the netinst shortcut or a full DVD setup.
Quick Install in 30 Minutes
The fast path uses the netinst ISO, a small image that pulls packages from Debian mirrors during installation. It works well when you have a reliable internet connection and do not need a custom partition layout.
- Download the
debian‑9.0.0‑amd64‑netinst.isofile from the official Debian site. - Verify the ISO checksum (SHA256) against the value provided on the download page. Use
sha256sumon Linux or a comparable tool on other OSes. - Write the ISO to a USB stick (at least 2 GB) with
dd if=debian‑9.0.0‑amd64‑netinst.iso of=/dev/sdX bs=4M status=progress && sync, replacing/dev/sdXwith your USB device identifier. - Insert the USB stick into the target computer and reboot. Enter the firmware menu (often F2, Del, or Esc) and set the USB drive as the first boot device.
- When the Debian installer starts, select “Graphical install” and choose your language, location, and keyboard layout.
- At the “Configure the network” screen, choose “Continue without network” only if you plan to install from a local repository; otherwise, let the installer obtain an IP address via DHCP.
- When prompted for partitioning, select “Guided – use entire disk” and accept the default partition scheme (root, swap, and optionally /home). The installer will create a 1 GB swap partition.
- Enter a hostname, domain name (optional), and set a root password. Create a regular user with a strong password.
- Choose the “Debian desktop environment” you prefer (GNOME, KDE, Xfce, etc.). The installer will download the selected packages from the mirror.
- Finish the installation, remove the USB stick when prompted, and let the system reboot into your new Debian Stretch desktop.
Full Installation for Custom Setup
The thorough method uses the full DVD set, allowing installation without internet access and giving you full control over partitioning, package selection, and boot loader options.
- Download the three DVD images (DVD‑1, DVD‑2, DVD‑3) for Debian 9 ”Stretch” from the official site.
- Verify each ISO’s SHA256 checksum.
- Burn the first DVD (DVD‑1) to a disc or write it to a USB stick using the same
ddcommand as above. Keep the other DVDs handy for later prompts. - Boot from the media and select “Graphical install”.
- When the installer asks for a network, you may choose “Do not configure the network at this time” if you intend to stay offline.
- At the partitioning step, choose “Manual”. Create a separate
/partition (minimum 10 GB, ext4), a/homepartition for personal files, and a swap partition sized to 1–2 × your RAM (up to 4 GB is typical). - Set the mount point for each partition and confirm the changes.
- Proceed to the “Software selection” screen. Uncheck “Debian desktop environment” if you want a minimal system, or keep it and add “standard system utilities” and any extra tasks you need.
- When the installer asks for additional media, insert DVD‑2 (or point to its location if using a USB multi‑image). Repeat for DVD‑3 if required.
- Complete user creation, set the GRUB boot loader to install to the primary drive’s MBR, and finish the installation.
- Reboot. The system will start with the configuration you defined, ready for further package installation via
apt.
When to Choose Each Approach
Use the quick netinst method if you have a fast internet connection, need a standard desktop, and want the installation done in half an hour. Choose the full DVD route when you lack reliable network access, require a custom partition layout, or need to install a minimal system without extra packages.
Before‑You‑Start Checklist
- Back up any important data on the target drive. Installation will erase existing partitions unless you choose manual resizing.
- Ensure the computer meets the minimum hardware: 1 GHz CPU, 512 MB RAM (1 GB recommended), and 10 GB free disk space for a basic desktop.
- Prepare a USB stick (2 GB) or a blank DVD. Verify that the media is functional before writing the ISO.
- Have a stable power source. If using a laptop, keep it plugged in to avoid shutdown during installation.
- Write down the root password and user credentials you plan to use.
Common Mistakes and Their Effects
- Skipping checksum verification – leads to corrupted ISO, causing installer hangs or failed package downloads.
- Using the wrong USB device name – overwrites the wrong drive, potentially destroying data on another computer.
- Choosing “Guided – use entire disk” on a multi‑boot system – erases other operating systems and their boot entries.
- Setting swap smaller than RAM on low‑memory machines – can cause the system to run out of memory during installation, leading to crashes.
Verifying the Installation
After the first reboot, log in with the user account you created. Open a terminal and run cat /etc/debian_version. The output should read 9.x, confirming you are on Stretch. Check that the boot loader works by rebooting again; GRUB should present a menu with Debian as the default entry.
Post‑Install Tips
Update the package index and install security updates immediately: sudo apt update && sudo apt upgrade -y. Install the sudo package if you need administrative rights for a regular user: sudo apt install sudo. Consider enabling automatic security updates with apt-listchanges and unattended-upgrades. Finally, create a regular backup routine using rsync or a graphical tool to protect your data.
Additional Resources for Ongoing Use
Debian’s official documentation provides a comprehensive “Debian Reference” PDF, which covers package management, system services, and advanced configuration. The man apt and man systemd pages are useful for day‑to‑day tasks. Community forums and mailing lists offer help when you encounter hardware‑specific quirks.
Related
- How to Install and Stretch Carpet
- How to Install a Stretch Belt
- How to Install a Yoga Wall (Step-by-Step Guide)
General information for everyday wellbeing, not medical advice. If something affects your health, sleep or mood for more than a short while, talk to a qualified professional. Read more
Spotted an error? Tell us and we will correct it (corrections policy).