Skip to main content

Dedicated Server: Installation of Debian

This guide was created with the following products:

(Details may vary with products from different providers but the main concepts remain the same)

Introduction

The following will explain to you step by step how to install and configure the Debian operating system on your dedicated server. Follow these instructions carefully to ensure that you set up the operating system successfully and utilize it optimally.

info

The structure of the guide is based on the use of the Debian 10 operating system. Installations from previous or newer versions may differ slightly in terms of the process.

Preparation

For the installation and configuration of an operating system, it is initially important to mount the corresponding ISO of the operating system. There are several possible ways to mount it:

  1. Mounting via the initial setup
  2. Mounting via iLO (Virtual Media)
  3. Mounting via iLO (Remote Console)

If you are not familiar with mounting an ISO file yet, it's best to refer to our Initial setup or Own ISO guide.

Installation

When the ISO is successfully loaded, the server is in the setup process.

In this example, we will go through the installation process using the "classic" install.

Select your desired language in which the installation wizard will be displayed. Keep in mind that this language will later affect the installed system in the end.

Our desired location is not in the first selection page, so we go to the next page with "Other".

In our example we select the "Europe" option.

Depending on the desired time zone, we choose the German time zone in this example.

We choose United States as locale.

In our case we choose the German keyboard layout which is the QWERTZ layout. If you're from America the default layout would be QWERTY

info

Your server is now preparing some components which are necessary for the installation, this can take a few minutes.

Your server configures its network interface automatically by using DHCP. Select eno1 this is the default network adapter of your ZAP Dedicated Server.

The hostname can be modified if you'd like to, but does not need to be changed.

The domain name does not have to be changed either.

Here you have to set the password for your "root" account. Make a note of the chosen password.

To confirm the password you have to enter it again.

info

The installation wizard asks you to create a second user account

Now enter the name of the owner for a normal user account. You can of course freely choose what you'd like to enter here.

info

You can of course use the "root" account in the end

Now enter the username of the account. Also choose a password of your choice and confirm it again. Your server will now prepare the next installation steps.

You have now the possibility to create partitions or alternatively to use the whole SSD as 1 partition. If you don't want to change anything on the partition just choose "Guided - Use entire disk".


Select the SSD which is installed in your server.

Basically it is fine if the complete structure is stored on one partition.

We confirm the configuration with "Finish partitioning and write changes to disk".

info

If there are old partitions on your SSD we confirm the overwrite with "Yes".

Your server now performs the partitioning and prepares the installation of the system.

If you want to include other installation media, for example for certain packages, this could be done now. Normally, however, you can download all packages conveniently afterwards via the package manager (apt).

Our dedicated servers are located in Germany, so it's recommended to choose the German mirror location to achieve the best possible download speed rates.

Basically we recommend to use the default Debian repository.

If you'd like to use a HTTP proxy, you could enter the data. (this is not required)

The system wants to collect anonymized statistics, this can be refused or confirmed.

Now select the packages you want to install:

  • Debian desktop environment Would create a graphical user interface on your server, but in this example we only use the shell level of the server.

  • SSH server Is needed, for example, to connect to PuTTY.

  • Standard system utilities Is needed to provide a number of basic packages.

The selection of the different packages is done by TAB and arrow keys. Packages are selected or deselected with the space bar. When you are satisfied with your selection press TAB until you reach Continue and confirm with Enter.

Confirm that this operating system is the only one on the current server with Yes.

As storage location we choose the default location on our SSD.

info

🎉 The installation of your Debian system is now finished.

Open "Virtual Media" in your iLO and press "Eject Media" to remove the ISO File from the system.

When this is done successfully, we select Continue, the server will now perform a reboot.

Configuration

SSH Login

Once the reboot of your server is done and the installation was successful, you will now be prompted to login.

Of course you also want to be able to manage your server through SSH, i.e., PuTTY, for example, so we still need to enable the login for that:

Open with nano the configuration file of your SSH service nano /etc/ssh/sshd_config.

Search for #PermitRootLogin no and change it to PermitRootLogin yes.

Now press CTRL + X and confirm your changes with Y.

After that you have to restart the SSH service by typing service ssh restart.

Your SSH login is now active and you can connect via PuTTY, for example. Enter the IP address of your server, which you see in your zap dashboard and use the previously defined credentials.

tip

If you have any further questions or problems, our support is happy to assist you!

Conclusion

Congratulations, you have successfully installed the Debian operating system on your dedicated server. For further questions or assistance, please don't hesitate to contact our support team, which is available daily to assist you! 🙂