How to Install Debian 9 Stretch – Step by Step Tutorial with Screenshots
Debian 9 (“Stretch“) is the latest and the current version of popular server operating system from Debian team (Debian Security team and Debian LTS team). Debian 9 has been released on 17 June 2017, and you get Long Term Support for five years.
Debian team has dedicated this version (Debian 9) to the project’s founder Ian Murdock, who passed away on 2015.
Let’s check, what is new in the Debian 9
- MariaDB replaces MySQL variants (MySQL 5.5 or 5.6)
- Both Firefox and Thunderbird are back to Debian and replace their debranded versions Iceweasel and Icedove which were present in Debian for more than ten years.
- X display system no longer requires root privileges to run.
This Debian release includes lots of updated software packages, such as:
This guide helps you to do the fresh installation of Debian 9 (Meaning that all your previous installation/data will be wiped out from hard disk)
You can also go for upgrading Debian to retain the data and configurations.
Download Debian 9 DVD from here, put the OS burned DVD into the DVD-ROM drive, change the boot sequence of your system so that it boots from DVD-ROM drive.
After booting DVD, choose “Graphic Install” to begin the Debian Installation in graphical mode.
Select a language you like to use during the installation of Debian.
Select your location.
Configure your keyboard.
Configure the network:
Set the hostname for your system. Here, enter a host name without a domain name.
Enter your domain name. If this server is on your home network, then leave it blank.
Set root password:
Enter a password for the root account. To have a greater security over an account, make sure a password contains a mixture of letters, numbers and special characters.
Create a new user:
Create a new, non-root user for non-administrative activities. Enter a name.
Enter a user name for the above user. This name is the actual username you use to login into the system.
Set a password for the user “raj“.
Select the Timezone.
Next, choose any one of the partition methods to create partitions during the installation process.
- Guided – use entire disk: Uses full disk and creates simple partitions (without LVM) for OS installation
- Guided – use entire disk and set up LVM: Uses full disk and creates partitions on top of LVM.
- Guided – use entire disk and set up encrypted LVM: Uses full disk and creates partitions on top encrypted LVM.
- Manual: Use this to create partitions of your choice. This partitioning method is for advanced users. You can also use this method to retain your previous operating systems as well as your data if you partition correctly.
For this tutorial, I am choosing a second option (Guided – use entire disk and set up LVM).
Next, select the disk you want to partition for Debian installation.
I am choosing to have a separate partition for /home, /var, and /tmp partitions.
Choose “Yes” to write changes to disk and configure LVM.
Once the changes are written to the disk, then the final disk layout will look like below.
If you are happy with the partition layout, choose “Yes” to write changes to disk.
Once the partition creation is done, the installer will begin the installation of the base system.
Configure the package manager:
Choose “No” to skip the scanning of another CD or DVD.
Choose “No” to use a network mirror.
Choose “No” to Participate in the package usage survey.
Choose the software you want to install at the time of Debian installation. Make sure you have selected “SSH server” for remote terminal access.
Debian installer is now installing software for you.
Choose “Yes” to install the GRUB boot loader to the master boot record.
Select the partition or disk on which you want to install the GRUB boot loader.
The installation is now complete, click “Continue” to reboot your system.
The login screen of Debian 9:
Debian 9 Gnome Desktop: