How to Install Debian 9 Stretch?

There are many good distributions in the GNU/LINUX world, but if we want a “universal” one, I think we should talk about Debian. Debian is a distribution with a phenomenal track record with stability as its main focus but also its universality, Debian can be used in production servers as it is a small home PC. In this guide I will help you install Debian 9 Stretch from the beginning.

Downloading Debian

To install Debian 9 Stretch, first we need to access the download section of the Debian website, and first choose how we want to download it.

There are multiple options to download the debian package. You can choose whatever is easiest for you. I almost always choose the method of downloading via Torrent because it is faster and helps not saturate the main distribution servers. I recommend this method. To download via Torrent, I recommend Deluge or Qbittorrent.

After that, we choose cd (smaller size and smaller packets included) or DVD (large size and more packets) and the processor architecture that is usually 64-bit. And finally burn it to a DVD or USB drive.

Install Debian 9 Stretch

Note: I always have to tell people that before they install a new operating system, try installing it on a virtual machine. This in order to minimize errors and loss of information. Once you are familiar with the process and satisfied with the result, you proceed to install it on the “real” computer.

Let’s install Debian 9 Stretch on our machine. This is the first image that Debian displays when you enter the installer. We choose Graphical install and press Enter as shown in below image. After that, we chose the language and our localization.

Debian 9 Stretch Installation Welcome Screen

Once you choose graphical install from above image, you will get below image to select your preferred language. Here, i have chosen English as my language. You can go with your language.

Select Language

Once you click on continue button after selecting the language, you will be getting next window to choose your time zone location . Here, choose your the location for which you want to display the server time. I have chosen united states time zone for myself.

Select Country

Once you click on continue button of above image, next step will come to choose our “locals”. That is, the system’s regional configuration. After that we must choose the input language.

Configure Locales

I have selected United States as locales and clicked on continue button to proceed. Now we have to choose keyboard language configuration (input language configuration). Here i have selected English.

Keyboard Configuration

Once you press continue button, the installer will start writing the changes that you have selected or entered during above steps. You can see this in below screenshot.

Debian setting apply in process

Once above changes will be set then next thing you’ll see about network configuration. We will enter the hostname and then the domain name. I have entered debian as hostname of this system. You can write your hostname as per your naming convention.

Set the Hostname of debian 9 stretch

Next we need to type the domain of the system. Enter full domain name in which your server is hosted.

Set domain name

Once you will click at continue button, next window will come to set the root password. Enter the root password in below image.

Set the root password

Now it follows user creation and new user password creation. Set up a user and password in next windows. Enter the full name of your username in below image and click at continue button.

Set up user

Now type your username that will be used to login to this server. I entered my first name as my username.

set up username

Once you will click at continue button after setting the username, next screen will come to set its password.

Configure Password

Then comes the delicate part of installing any operating system: Disk Partitioning. We can choose the option we like, but I like to have control of what partitioned so I choose manual.

Configure Disk Partition

In this window appears the hard disk of our computer, create a virtual disk from 0 and does not even have partitions but do not worry, see how it is done. Select the disc and click to continue.

Disk Partition

As the disk is “new” it warns me that there is no partition table, but the installer offers to create it. We say yes.

Select New Disk

Once you will press continue, below screen will come to proceed.

Configure Disk Partition

At this point we can create the first partition that we will use for the system as such. Select the free space and click on continue.  And then we enter the size. Debian also recommends a swap partition so we put a smaller size than the total.

Create the First Partition

Now we will allocate the size to this disk.

Allocate the size to this disk Partition

In the following windows we placed that the partition will be primary and created at the beginning of the free space.

Select Partition Type

Choose location of this new partition using below window.

Select Partition Location

After that, we must modify the file system type (Ext4) and the mounting point (/) and leave it as it is in the image. Select that we have finished defining partition and click on continue.

Setting up disk Partition

Then start creating the swap partition with the remaining disk space. Select the remaining free space and click on continue.

Create Swap Partition with remaining disk

We then tell the installer that we want to create a new partition but this time it will be logical.

Create Logical Disk Partition

Create Logical Disk Partition


Create Logical Disk Partition

And in this step is where we define that it will be swap partition.

Logical Swap Partition


disk Partition

We say that we have finished defining the partition and click Continue to see the summary of the partition.

Summary of Partitions


Summary of Partition

This way, a simple and basic partitioning in GNU/LINUX must remain: one partition for / and another for Swap. If you are installing this installation on a main computer and “real” and the hard disk must already be partitioned and what you should do is simply say where you want to install the system. Now we say that we have finished partitioning the disk and click Continue for the installer to make the changes.

Continue to Apply changes

Partitioning in process

After that Debian will ask us if we want to analyze another DVD, if we want to use a replica of beef and if we want to participate in an anonymous packet usage survey. In this tutorial, we use the DVD so to all questions I will answer NO.

Configure the Package manager of Debian 9 Stretch

Package Manager

Configure Popularity Contest.

Configure Popularity Contest

And we come to the step of selecting the software to install. This is how it looks by default.

Software variant selection

The software you choose will depend on you and your needs, for example for a production server you should not install graphical environment. There would be something like that.

Software selection

In this case, I will choose MATE as my desktop environment. Once you have finished the installation process of the chosen software, you will ask us if we want to install the Boot Loader.

boot loader

We say yes, and he’ll ask us where we want to be. Select your hard drive and click on continue.

Install the GRUB boot Loader

After that we should see the window where the installation is finished and we can relocate the computer to use our brand-new Debian 9 Stretch.

Finish the Installation

Now your Debian 9 Stretch has been installed on your server. I hope you like this article. Please follow our Facebook page and Twitter handle to get latest updates.

Read More:


Angelo Marquez

I have experience in various Venezuelan governmental and private projects related to Information Technology.Fanatic of free software and Linux in general. Contact me for any query or consulting work using contact us form given on this website.
Angelo Marquez
Article Name
How to Install Debian 9 Stretch?
There are many good distributions in the GNU/LINUX world, but if we want a "universal" one, I think we should talk about Debian. Debian is a distribution with a phenomenal track record with stability as its main focus but also its universality, Debian can be used in production servers as it is a small home PC. In this guide I will help you install Debian 9 Stretch from the beginning.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *