Install Debian 9 (Stretch) Minimum Server

botond published 2018/12/21, p - 15:43 time

The 1. page content

 

Introductory

It's been a long time to start the Debian 9 (Stretch) server line as well, but I only have a little time now to make this longer description, which will serve as a basis for future Debian 9 tutorials.

This installation is similar to the previous one Debian 8 (Jessie) is a minimal server install so I don't have to waste time, let's get to work!

 

 

Obtaining the Debian 9 (Stretch) installation package

Let's go to Debian 9 (Stretch) download page, and then choose the architecture and installation kit that suits you. I am choosing the amd64 installer from the "netinst CD image" section, I will install this so that we do not need to remove more gigabytes of installers now, but just an 290 Mb ISO file.
The current version of the installation kit I downloaded is 9.6.

 

Installation

This description is one building block, which means that several other descriptions on the site will be based on this. Thus, it is important that it is executed accurately so that no errors can occur in the construction of the parts based on it.

 

You can install one bootable flash driveif you are installing on a physical machine, for example Installed in VirtualBox, just mount the ISO file in the drive and start the machine.

I choose the latter, that is, I will install Debian 9 (Stretch) on a virtual machine and then upload it to the site.

Start the installer.

Installation method

On the first screen, you can select the installation method:

Installing Debian 9 (Stretch) Minimum Server - Installation Method

Here you can choose text mode installer, graphic, or advanced mode expert mode installation.

Now let's choose the very first, the graphical installation.

Language and locale settings

The following pages allow you to configure your language settings:

Installing Debian 9 (Stretch) Minimum Server - Select Language

Select the language you want to use.

Installing Debian 9 (Stretch) Minimum Server - Language Warning

Please let us know that the translation into our language is incomplete, please choose to continue in the selected language.

Install Debian 9 (Stretch) Minimum Server - Select Country

Choose our country, 

Installing Debian 9 (Stretch) Minimum Server - Select Keyboard

and keyboard layout.

The components will then be installed:

Installing Debian 9 (Stretch) Minimum Server - Installing Components

and automatic network setup:

Installing Debian 9 (Stretch) Minimum Server - Automatically Configure Network

 

 

Set up a network

Set hostname:

Installing Debian 9 (Stretch) Minimum Server - Network - Configuring a Host Name

Enter your machine's future name here. I'm configuring "debian9" here, so this will be the host name of the uploaded Debian 9 virtual machine series in the future.

Then we need to set the domain name:

Installing Debian 9 (Stretch) Minimum Server - Network - Set Domain Name

In live use, the server is primary domain name set it up. I will be using linuxportal.vm.

Users and passwords

Then enter the root password:

Installing Debian 9 (Stretch) Minimum Server - Users and Passwords - Setting a Root Password

Here I enter the password "linuxportal_root".

I also publish the access information on the server's download page, so whoever downloads it will find all the info.

Then, the installer creates the first regular user, now with the full name:

Installing Debian 9 (Stretch) Minimum Server - Users - Normal user name

and then your username:

Debian 9 (Stretch) Minimum Server Installation - Users - Normal user name

I set my username to "linuxportal".

Set password:

Installing Debian 9 (Stretch) Minimum Server - Users - Normal user password

Here, too, I specify "linuxportal" so I can remember more easily.

Partitioning disks

With this installation, I will install everything on a partition, which will make it easier to use the virtual machine. However, if you are installing for use as a live server, it is advisable to consider the hard disks in your machine. If possible, install Debian itself on an SSD drive and move the / var directory structure to a standard but larger drive for web storage.

So here we go through the simplest solution, but you can add more drivers to your virtual machine later.

Installing Debian 9 (Stretch) Minimum Server - Partitioning Disks - Partitioning Mode

Here, select the very first "Directed - Use the whole disk" option. 

Installing Debian 9 (Stretch) Minimum Server - Partitioning Disks - Selecting the Disk to Partition

Then select the disk you want to partition. There is only one choice here because I only set up a disk in VirtualBox. But when using a server on a live server or installing on a home computer, be careful if you have more than one hard drive in your machine so you don't make the wrong choice.

Installing Debian 9 (Stretch) Minimum Server - Partitioning Disks - Partitioning Mode

Here, select All files on a single partition mode.

Installing Debian 9 (Stretch) Minimum Server - Partitioning Disks - Finishing Partitioning and Saving Changes

Then close the partitioning with the lowest menu item and the next window

Installing Debian 9 (Stretch) Minimum Server - Partitioning Disks - Burn Partitioning to Disk

Let's save that Yes option.

The installer will then install the base system:

Installing Debian 9 (Stretch) Minimum Server - Installing the Base System

 

 

Configure package manager

You will be asked if you want to scan other installation CDs / DVDs for the package manager:

Installing Debian 9 (Stretch) Minimum Server - Configuring Package Manager - Reviewing Other DVDs

This is worth asking if you are installing offline, which is why the entire installation image is written to multiple DVDs, and if you are installing a desktop computer with a graphical interface, you will be able to choose from among the applications to install.

However, if you have an internet connection or are installing a minimal server, skip this step and then run APT package manager downloads the necessary packages to the system.

So here we select Gender option.

Then you need to select the Debian mirror:

Installing Debian 9 (Stretch) Minimum Server - Configuring Package Manager - Selecting a Debian Mirror

Debian mirrors are used to enable Debian to distribute packages and updates in its distribution in a globally distributed manner. This allows each instance of Debian to use the mirror closest to its location to make installing packages and downloading updates fast and smooth.

Here, select the country closest to our location. We have good quality mirror services in Hungary, so choose your home at home.

Also, at the end of this description, we are expanding the list of packet managers, because later use of the server will require several packages that are not in the standard package repository.

Installing Debian 9 (Stretch) Minimum Server - Configuring Package Manager - Selecting a Debian Mirror

Let's choose the first one, the official Debian mirror.

You can then set up the proxy data if you use:

Installing Debian 9 (Stretch) Minimum Server - Configuring Package Manager - Configuring Proxy Data

If you do not use one or do not know it, leave it blank.

The system then configures the APT package manager

Installing Debian 9 (Stretch) Minimum Server - Configuring Package Manager - Configuring APT

and installs additional software:

Installing Debian 9 (Stretch) Minimum Server - Configuring Package Manager - Software Selection and Installation

 

Installation continues with next page.

 

 

Navigation

This description consists of several pages: