# Инструкция по установке на свои серверы (On-Premise)

Установка на физическое оборудование состоит из следующих этапов.

### 1. Скачиваем необходимое ПО

* **VirtualBox** 7.1.4: <https://www.virtualbox.org/wiki/Downloads>
* **Ubuntu Server** v.24.04.1: <https://ubuntu.com/download/server>

### 2. Создаем и настраиваем виртуальную машину

<figure><img src="/files/tzDMWJHbzuA1g2PWgy9n" alt=""><figcaption></figcaption></figure>

Выделяем 16 Gb RAM + 4 CPU (минимальные требования).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf1HxFgFyzo3M5stFYk5ad7CS-tTDhSyHfIBMS76N-pB6TBfWLhzlnYRWQgb255ssJnuDXxQa2hxGaJK9wobHW52ULT9zOAitDOEgArVAIL-9fMFAGIUVB2GgTtA_zZf4AFRC4n?key=rp4lDnW9edxUd_l2l43iTiXK" alt=""><figcaption></figcaption></figure>

Устанавливаем логин/пароль по умолчанию.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc9g9FwXL2IdxJQVEFh214nU0-VpAG6tHzw_nD4liIYId97BY3WNN_ftY8cN4dmOmjL95-VzZi24dmJIw1IrhK4t35eA1SyuKwD3yapqiwtjLbYrmCI8yvL_gobprXoqJiYbKBw?key=rp4lDnW9edxUd_l2l43iTiXK" alt=""><figcaption></figcaption></figure>

На этапе конифгурирования выбераем **docker** (можете установить его после установки любым удобным способом).

<figure><img src="/files/dkzdjhWVtXuNWOZ65AFc" alt=""><figcaption></figcaption></figure>

Входим в VM (логин пароль: `ubuntu`/`123456`)

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcAOGPKmOXzX6Yp3kiOtT2Ja5p_l6azlbu3th7wKRKaXFH2iEfZwA8JqR9z-dqZf1Sku0ZsJmyZPJcP6Gy9zPPvDqCF0ERRM1GJ5nnUou7QtP-xJnXRz6XHVavhUy6EMO8Dnn0V?key=rp4lDnW9edxUd_l2l43iTiXK" alt=""><figcaption></figcaption></figure>

Устанавливаем **OpenSSH**

вбить:

```
sudo apt-get update
```

Заходим в настройки сети.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdtv4r5-ZkaFqDqwsCyuojolf4724UsL3FEqJS2iDoAwZqKYWqtBBlo9637P0S8zRkI3FD33ZTTRKbkypcA9CWU_mJDrKvNaHYjJYmPKsiHzPizy56MoApXtd_k8R4zBr4v056lUQ?key=rp4lDnW9edxUd_l2l43iTiXK" alt=""><figcaption></figcaption></figure>

Кнопка Port Forwarding, указываем правило:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXe9DykCcguzm78jpFjzxqZDoH0zQKvU6dMKxK3Lo78jNnhED21_heD5ska70o9o89a0hxOTzGlqQm62DxggEk6EBgd8ZhqVl7UXT3x4o2X2vNHms4qaWYNcUOytbTJLkddjj2pq2A?key=rp4lDnW9edxUd_l2l43iTiXK" alt=""><figcaption></figcaption></figure>

Заходим в терминальный клиент по умолчанию (MacOS: terminal / Windows: putty). Подключаемся по SSH хосту `localhost` из под пользователя `ubuntu`, с помощью команды:

```
ssh ubuntu@localhost
```

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXctBeETxf142ep99KCPzSOUKWyWUuPX0PGMj0LmXvPYRzCH7l88LbPVqhzPh6KEhFHN0KPIUPx3XNvrl01eas2qAT2MYM0c8XltqlCI2GFEbg5fMrSXM9nYpVbgaJR5RlD-exQRIw?key=rp4lDnW9edxUd_l2l43iTiXK" alt=""><figcaption></figcaption></figure>

### 3. Инсталлируем платформу

Подключитесь к оборудованию

```
/bin/bash -c "$(curl -fsSL https://api.alfa.directual.com/static/install/install.sh)" 
```

Данная команда скачает и установит на компьютере в папку `/opt/directual` набор скриптов для запуска платформы. Если вы хотите поставить в другую директорию, вбейте:

```
/bin/bash -c "$(curl -fsSL https://api.alfa.directual.com/static/install/install.sh)" -- --install-dir "$(pwd)/atemp"
```

После завершения установки будет выведен адрес для доступа к платформе.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://readme-ru.directual.com/on-premise/instrukciya-po-ustanovke-na-svoi-servery-on-premise.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
