English | Deutsch Log in or Sign up
Tutorials Tags Forums Linux Commands Subscribe ISPConfig News
Tutorial search
Tutorials How to install a Debian 9 (Stretch) Minimal Server
Ad Kick-start your open source projects with access to hundreds of frameworks.
How to install a Debian 9 (Stretch) Minimal Server
This tutorial shows how to install a Debian 9 (Stretch) minimal server. The
This tutorial exists for these OS versions
purpose of this guide is to provide a minimal Debian setup that can be
used as the basis for our other Debian 9 tutorials and the perfect server
Debian 9 (Stretch)
guides here at howtoforge.com.
Debian 8 (Jessie)
Debian 7 (Wheezy)
1 Requirements On this page
1 Requirements
To install a Debian 9 server system you will need the following: 2 Preliminary Note
3 The Debian Base System
the Debian Stretch network installation CD, available here:
32Bit: https://cdimage.debian.org/debian-cd/current/i386/iso-cd/debian-
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
9.3.0-i386-netinst.iso (i386) or
64Bit: https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.3.0-amd64-netinst.iso (x86_64 / amd64)
a fast Internet connection.
I will use the 64Bit installation media here.
2 Preliminary Note
In this tutorial, I will use the hostname server1.example.com with the IP address 192.168.1.100 and the gateway 192.168.1.1. These
settings might differ for you, so you have to replace them where appropriate.
3 The Debian Base System
Insert your Debian 9 (Stretch) network installation CD into your system and boot from it. When you use a virtualization software like VMware or
Virtualbox, then select the Debian 9 minimal iso file as source file for the DVD drive of the VM, you don't have to burn it to a CD or DVD for that
first.
Select Install (this will start the text installer - if you prefer a graphical installer, select Graphical install):
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Select your language:
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Then choose your location:
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Choose a keyboard layout:
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
The installer checks the installation CD, your hardware and configures the network with DHCP if there is a DHCP server in the network:
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Enter the hostname. In this example, my system is called server1.example.com, so I enter server1:
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Enter your domain name. In this example, this is example.com:
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Afterward, give the root user a password:
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Confirm that password to avoid typos:
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Create a Linux user account, e.g. your name or nickname. For this example installation, I will choose the name "administrator" with the
user name administrator (don't use the user name admin as it is a reserved name on Debian Linux):
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Now select the timezone for the server
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Now you have to partition your hard disk. For simplicity's sake I select Guided - use entire disk - this will create a large partition for the
/ file system and another one for swap (of course, the partitioning is totally up to you - if you know what you're doing, you can also set up your
partitions manually). For hosting systems like the ISPConfig 3 perfect server tutorials you might want to choose e.g. 30GB for / and a large /var
partition as all website and email data is stored in subdirectories of /var.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Select the disk that you want to partition:
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Then select the partitioning scheme. As mentioned before, I select All files in one partition (recommended for new users) for
simplicity's sake - it's up to your likings what you choose here:
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
When you're finished, select Finish partitioning and write changes to disk:
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Select Yes when you're asked: "Write changes to disk?":
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Afterward, your new partitions are created and formatted. Now the base system is installed:
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Next >>
view as pdf | print
Share this page: Recommend 77
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Sub pages
How to install a Debian 9 (Stretch) Minimal Server
How to install a Debian 9 (Stretch) Minimal Server - Page 2
Suggested articles
8 Comment(s)
Add comment
Name * Email *
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
p
Submit comment
I'm not a robot
reCAPTCHA
Privacy - Terms
Comments
From: calbasi at: 2017-07-11 15:08:59 Reply
In a fresh debian install I get:
/etc/hosts
---------------------------------
127.0.0.1 localhost127.0.1.1 debian# The following lines are desirable for IPv6 capable hosts::1 localhost ip6-localhost ip6-
loopbackff02::1 ip6-allnodesff02::2 ip6-allrouters-----------------------------------
And /etc/hosname with just my machine/domain name:
myserver.mydomain.net
----------------------------------------------------
I wonder if these settings are OK, and, thus, your manual has an (old) alternative.
From: Someone at: 2017-07-24 11:32:11 Reply
Update links from 9.0.0 to 9.1.0
From: thctlo at: 2017-07-26 07:30:41 Reply
Hai, Just tried your vm for a samba 4 install, but that errors at some point due to the existance of Administrator as linux users. deleting your
default administrator user fixes the problem.
but great howto again.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Thanks!
From: AnHa at: 2017-07-27 10:04:55 Reply
When I try to install debian9.1.0 amd64 on my VMWare-System 8.0.2, the base system installation failes with error:"Debootstrap waring: Failure
trying to run: chroot /target dpkg --force-depends --install /var/cache/apt/archives/base-passwd_3.5.43_amd64.deb". Trying to ignore does not
help, I can't go on with installation.
Having a look @ /var/log/syslog, I see something like "dpkg: error processing package base-passwd (--install): subprocess installed post-
installation script was killed by signal (Segmentation fault)"
Any suggestions?
From: AnHa at: 2017-07-27 12:36:31 Reply
After updating the VMWare-Version everything works fine
From: Adam at: 2017-09-10 02:45:30 Reply
would it be possible to create one of these perfect server setups that has been tested and oriented towards Google Cloud Compute Instances?
There is some of this that is simply not going to be doable...beginning with the very first part of this. Trying to start with a blank canvas is a little
difficult when Google Cloud instances have disks with O/S's already on them when the instance is first setup.
From: till at: 2017-09-10 09:21:13 Reply
An OS instance at Google is a minimal setup, so the perfect server setups work perfectly on cloud servers as well.
From: Vincent at: 2017-10-29 17:41:09 Reply
I have a 404 on the debian 9 64 bit link...
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Tutorials How to install a Debian 9 (Stretch) Minimal Server
Sign up now!
Tutorial Info
Author: Till Brehm
Last updated: Jan 22, 2018
Tags: debian, linux
VMware image download
How to install a Debian 9
(Stretch) Minimal Server as
ready to use virtual
machine image download
in ovf/ova format,
compatible with VMWare
and Virtualbox.
Download: debian-9-minimal-server.ova
Guide: VMWare Image Import Guide.
Other Downloads: List of all VMWare Images
Share This Page
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD