# Installing the operating system

Hetzner tools allow you to install the OS on a dedicated server in different ways, resulting in different results. Let's look at these methods in this article.

## Using Robot (RAID1)

The easiest and quickest way is to reinstall the operating system in the «Linux» section of the cloud bar [Robot](https://robot.your-server.de/).

We need to go to this section and get acquainted with the information. After that, we select the appropriate **OS** from the available images. Next, we check the box agreeing that all our data on the drives of the dedicated server will be cleared.

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FxwSD6HtbuCItmS2BrnlJ%2Fimage.png?alt=media&#x26;token=66c06120-5e62-45af-b5fb-28ad25e489be" alt=""><figcaption></figcaption></figure>

After using the «‎**Activate Linux installation**» button, we get something like this message:

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FkD27cLTjsT1ijBNs1RdM%2Fimage.png?alt=media&#x26;token=ef83f755-59ab-4951-985f-8dfa89a50a96" alt=""><figcaption></figcaption></figure>

Do not forget to copy the password generated for us, which will be assigned to the **root** user upon completion of the installation of the operating system.

Next, to start the process, restart our server using the reboot command if there is an active **SSH** connection or use the «**‎Execute an automatic hardware reset**» button in the «**‎Reset**» section of the Robot cloud control panel.

We wait a few minutes and try to connect to the server.

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FwvJU8xZvbQBS8HoqEsAJ%2Fimage.png?alt=media&#x26;token=6f27d14c-e7c6-47d8-a332-34816c02e0b7" alt=""><figcaption></figcaption></figure>

We see the OS we have selected installed on the cleaned drives. But at the same time, by default, we got the system on [**RAID1**](https://ru.wikipedia.org/wiki/RAID#RAID_1).

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FEsIn7SEPhCs7DCOTVvvY%2Fimage.png?alt=media&#x26;token=22c003a9-f364-4b55-be81-01e001b5fbe3" alt=""><figcaption></figcaption></figure>

## Usage installimage (RAID 1/0/10 etc)

The install image utility is a special tool for semi-automatic **installation** of the operating system, during which basic settings such as **RAID** type, network configuration, partitioning of the system, etc. are available.

First, we need to switch our dedicated server to **System Rescue** mode. You can find how to do this in the[ corresponding](https://wiki.spacecore.pro/hetzner-robot/how-to-execut-resque) instructions.

{% hint style="warning" %}
Be sure to save the password to access the created **Rescue** session, because after the installation is completed, the password will be assigned to the user of our system using this method.
{% endhint %}

After activating the Rescue utility, we connect to our server.

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2F5uNMrjehcdyHLhr76Zae%2Fimage.png?alt=media&#x26;token=67e4602c-6a44-4014-a2ed-74cd4e685217" alt=""><figcaption></figcaption></figure>

Great. Now enter this command:

```
installimage
```

We expect almost instant software preparation.

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FOnoKWJB6hFKYIIesYSfX%2Fimage.png?alt=media&#x26;token=e4c007fe-c45f-46d3-94f0-8deaa31fb3ff" alt=""><figcaption></figcaption></figure>

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FrZFPL0DFE1IgHNqqd0YJ%2Fimage.png?alt=media&#x26;token=369b2793-25c9-440e-b55c-2c964f899225" alt=""><figcaption></figcaption></figure>

In the list that opens, you need to select the Linux distribution or a custom installation image that you are interested in installing. Let's take **Ubuntu** as an example.

{% hint style="info" %}
Control in this window is performed using the arrows on the keyboard, or by double-clicking the mouse (**LMB**).
{% endhint %}

Next, select the required version of this distribution from the suggested options. Again, for example, let's choose the last available image — **Ubuntu 22.04**.

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FJ3AvflqflH4thRYyESZ6%2Fimage.png?alt=media&#x26;token=9372a1fe-ff36-4914-9ef3-5b0097e00477" alt=""><figcaption></figcaption></figure>

We familiarize ourselves with the information and press **Enter.**

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FbBlmcLzKQP1BaXO7CBGE%2Fimage.png?alt=media&#x26;token=0eb3143e-24ba-4e64-9297-1854ba99bd2a" alt=""><figcaption></figcaption></figure>

A window opens in front of us with the configuration of the system being installed.

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FJDAnmfxN86qPgoyQZ7tN%2Fimage.png?alt=media&#x26;token=3ebd56e2-259f-4ce6-8324-8f2a201cbb6e" alt=""><figcaption></figcaption></figure>

First of all, we should pay attention to the SW RAID and **SWRAIDLEVEL** parameters.

{% hint style="info" %}
* **SWRAID** — activating or disabling Software Raid (leaving the value 1 for the active state).
* **SWRAIDLEVEL** — determines the level of the Raid to be installed. The default value is 1, in this case RAID1 will be set. If you want to set another value available according to the parameters of your equipment, then specify the number according to the Raid type. For example, for RAID 0, this parameter should look like this (+example in the screenshot):

**`SWRAIDLEVEL 0`**
{% endhint %}

After completing the installation of all necessary parameters, press the **F10** button on the keyboard and save the changed config.

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FLbOluXOZhGJDgKr2ELwO%2Fimage.png?alt=media&#x26;token=2f2271ef-8b86-463e-8265-172bdfceb74d" alt=""><figcaption></figcaption></figure>

Next, we confirm the information that all existing data will be deleted from our drives.

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FvCsV72l0keSNsnZwZVz0%2Fimage.png?alt=media&#x26;token=4c822822-cb35-440b-8221-a86fb6597a3b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FF6XfZIAZSYwSGwax6KYs%2Fimage.png?alt=media&#x26;token=b62107c2-e0db-47df-bc54-f504929f90e2" alt=""><figcaption></figcaption></figure>

After that, the process of installing the operating system according to the specified parameters begins. We are waiting for completion.

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FGoIkGaGzmJbRVQP27TE5%2Fimage.png?alt=media&#x26;token=43a30fa2-9611-4fa8-a656-57193d6c10d7" alt=""><figcaption></figcaption></figure>

Upon completion of the installation, we see a similar message:

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2Fbbmrx9kCkYkBHOLPPQrD%2Fimage.png?alt=media&#x26;token=beb866cd-00ec-4c8c-b21b-b6c88c39bc25" alt=""><figcaption></figcaption></figure>

Restarting the server using the `reboot` command or the cloud control panel [Robot](https://robot.your-server.de/).

After a few minutes have passed, we connect and observe the reinstalled OS of our choice. Since we specified **RAID0** in the config for the example, our drives are now working on its basis:

<figure><img src="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FeTQ39rF18kZeYTIlj1jV%2Fimage.png?alt=media&#x26;token=ef8cc401-daf8-49e8-b289-27cc2cfb3c80" alt=""><figcaption></figcaption></figure>

## Results

Now you have learned how to install the OS on your dedicated server in **Germany** or **Finland** in two ways, each of which has its pros and cons.

The server is ready to work!
