Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space DML and version 7.21
Sv translation
languageru

Для функционирования Сервера

Multiexcerpt include
MultiExcerptNameDM_Short_Name
PageWithExcerptExcerpt Source
shouldDisplayInlineCommentsInIncludesfalse
 необходимо подготовить окружение:

  1. Введите в домен компьютер, на который будет установлен Сервер
    Multiexcerpt include
    MultiExcerptNameDM_Short_Name
    PageWithExcerptExcerpt Source
    shouldDisplayInlineCommentsInIncludesfalse
    .
  2. Удостоверьтесь, что для сервера задано FQDN-имя хоста. Для этого выполните команду:

    Блок кода
    languagetext
    echo $HOSTNAME

    В результате должно быть выведено полное имя, например, dmserv.company.ru.

    Раскрыть
    titleЕсли выведено короткое имя, например, dmserv, то:
    1. Задайте полное имя хоста:

      • На компьютере под управлением ОС Astra Linux, Альт или

...

      • Мос.ОС используйте команду:

        Блок кода
        languagetext
        hostnamectl set-hostname <FQDN>
      • На компьютере под управлением РЕД ОС:
        1. Запустите утилиту nmtui:

          Блок кода
          languagetext
          nmtui
        2. В текстовом интерфейсе выберите Set system hostname.
        3. В окне Set Hostname введите новое имя хоста и нажмите OK.
        4. В окне Set hostname to '<новое_имя>' нажмите OK.
        5. Нажмите Quit.
    1. Перезагрузите сервер.
    2. Повторно выполните команду:

      Блок кода
      languagetext
      echo $HOSTNAME
  1. Установите Microsoft .NET 8 (https://dotnet.microsoft.com/) на этом компьютере. Примеры установки см. ниже.

    Информация
    titleПримечание:

    Если вы планируете устанавливать Сервер 

    Multiexcerpt include
    MultiExcerptNameDM_Short_Name
    PageWithExcerptExcerpt Source
    с поддержкой контейнеризации (подробнее см. "Установка "Все-в-одном""), то установка .NET 8 не требуется.

  2. Дополните настройки подсистемы Inotify. Для этого:
    1. Откройте на редактирование конфигурационный файл /etc/sysctl.conf.
    2. Добавьте в конце файла строки:

      Блок кода
      languagetext
      fs.inotify.max_user_instances = 16384
      fs.inotify.max_user_watches = 32768
      fs.inotify.max_queued_events = 262144

      Вы также можете задать максимальное количество открываемых файлов. Для этого укажите значение параметра file-max, например:

      Блок кода
      languagetext
      fs.file-max = 500000
    3. Сохраните изменения и закройте конфигурационный файл.
    4. Чтобы применить новые настройки подсистемы, выполните команду:

      Блок кода
      languagetext
      sysctl -p
  3. Если установка проводится на сервере под управлением

...

  1. Мос.ОС, убедитесь, что доступны официальные репозитории ОС: software, update, oss-suse.
  2. Установите пакеты conntrack (или conntrack-tools) и socat. Пример установки пакетов см. ниже.
  3. Если вы будете использовать опцию установки сервера с поддержкой контейнеризации, установите пакет podman.

    Раскрыть
    titleПримеры для установки пакета podman на ОС Альт, ОС Astra Linux, РЕД ОС и

...

  1. Мос.ОС:
    • ОС Альт:

      Блок кода
      languagetext
      apt-get install podman
    • ОС Astra Linux:

      Блок кода
      languagetext
      apt install podman
    • РЕД ОС:

      Блок кода
      languagetext
      sudo dnf install podman

      Если пакет недоступен в репозитории, скачайте его на официальном сайте РЕД ОС. Перейдите в директорию с пакетом и установите его вручную с помощью команды вида:

      Блок кода
      languagetext
      rpm -Uhv ./<имя_пакета>
      Предупреждение
      titleВажно!
      Минимальная версия podman для РЕД ОС 4.9.
      Если устанавливаете пакет podman на РЕД ОС вручную, то установите также зависимые пакеты, необходимые для его работы.

...

    • Мос.ОС:

      Блок кода
      languagetext
      zypper install podman
  1. Настройте антивирус для совместной работы с Системой (см. статью Базы знаний "Настройка антивируса для Device Monitor Server на ОС Linux").
  2. Настройте правила POD сети или отключите межсетевой экран (см. статьи Базы знаний "Конфликты при взаимодействии firewalld и Kubernetes", "Полное отключение межсетевого экрана").
  3. Установите интерпретатор языка Python версии

...

  1. 3. Пакет с интерпретатором не входит в состав дистрибутива продукта.

  2. Раскрыть
    titleЕсли установка проводится на сервере под управлением

...

  1. RedOS, Мос.ОС, ОС Astra Linux:

    Установите

...

  1. следующие пакеты:

  • python-modules-json
  • python-modules-distutils
  • python-modules-sqlite3

Информация
titleПримечание:

Пакеты не входят в состав дистрибутива продукта и могут отсутствовать в репозиториях. В этом случае загрузите и установите требуемые пакеты вручную

...

Multiexcerpt include
MultiExcerptNameDM_Short_Name
PageWithExcerptExcerpt Source
shouldDisplayInlineCommentsInIncludesfalse

...

Multiexcerpt include
MultiExcerptNameTM_Short_Name
PageWithExcerptExcerpt Source
shouldDisplayInlineCommentsInIncludesfalse

...

    • РЕД ОС:

      Блок кода
      languagetext
      dnf install python3-pyyaml
      dnf install python3-importlib-metadata
    • ОС Astra Linux:

      Блок кода
      languagetext
      apt-get install python3-importlib-metadata
      apt-get install python3-distutils
      apt-get install python3-mako
      apt-get install python3-yaml
    • Мос.ОС:

      Блок кода
      languagetext
      zypper install python3-PyYAML
      zypper install python3-importlib-metadata
    Информация
    titleПримечание:

    Пакеты могут отсутствовать в составе дистрибутива продукта и в репозиториях. В этом случае загрузите и установите требуемые пакеты вручную.

  1. Раскрыть
    titleЕсли установка проводится на сервере под управлением ОС Альт:
    • Установите утилиту unzip аналогично установке conntrack и socat;
    • Установите следующие пакеты:

      Блок кода
      languagetext

...

    • apt-get 

...

После них добавьте строки:

Блок кода
languagetext
# System default
openssl_conf = default_conf

...

В конец файла добавьте следующие строки:

Блок кода
languagetext
[default_conf]
ssl_conf = ssl_sect

[ssl_sect]
system_default = system_default_sect

[system_default_sect]
MinProtocol = TLSv1.2
CipherString =  DEFAULT:@SECLEVEL=1

...

titleЕсли установка проводится с использованием опции Host на сервере под управлением ОС Astra Linux 1.8:

...

Multiexcerpt include
MultiExcerptNameDM_Short_Name
PageWithExcerptExcerpt Source
shouldDisplayInlineCommentsInIncludesfalse

...

Multiexcerpt include
MultiExcerptNameTM_Short_Name
PageWithExcerptExcerpt Source
shouldDisplayInlineCommentsInIncludesfalse

...

Найдите в файле строки:

Блок кода
languagetext
# Extra OBJECT IDENTIFIER info:
#oid_file       = $ENV::HOME/.oid
oid_section     = new_oids

...

После них добавьте строки:

Блок кода
languagetext
# System default
openssl_conf = default_conf

...

titleЕсли установка проводится с использованием опции Host на сервере под управлением РЕД ОС 8:

...

    • install python-modules-json
      apt-get install python-modules-distutils
      apt-get install python3-modules-sqlite3
      apt-get install python3-module-yaml
      apt-get install python3-module-importlib-metadata
    Информация
    titleПримечание:

    Пакеты могут отсутствовать в составе дистрибутива продукта и в репозиториях. В этом случае загрузите и установите требуемые пакеты вручную.

    • Настройте соответствие алгоритмов шифрования Сервера
      Multiexcerpt include
      MultiExcerptNameDM_Short_Name
      PageWithExcerptExcerpt Source
      shouldDisplayInlineCommentsInIncludesfalse
      и Сервера
      Multiexcerpt include
      MultiExcerptNameTM_Short_Name
      PageWithExcerptExcerpt Source
      shouldDisplayInlineCommentsInIncludesfalse
      . Для этого измените файл /etc/openssl/openssl.cnf следующим образом:
      • Найдите в файле строки:

        Блок кода
        languagetext
        # Extra OBJECT IDENTIFIER info:
        #oid_file       = $ENV::HOME/.oid
        oid_section     = new_oids
      • После них добавьте строки:

        Блок кода
        languagetext
        # System default
        openssl_conf = default_conf
      • В конец файла добавьте следующие строки:

        Блок кода
        languagetext
        [default_conf]
        ssl_conf = ssl_sect
        
        [ssl_sect]
        system_default = system_default_sect
        
        [system_default_sect]
        MinProtocol = TLSv1.2
        CipherString =  DEFAULT:@SECLEVEL=1
  1. Раскрыть
    titleЕсли установка проводится с использованием опции Host на сервере под управлением ОС Astra Linux 1.8:
    • Настройте соответствие алгоритмов шифрования Сервера
      Multiexcerpt include
      MultiExcerptNameDM_Short_Name
      PageWithExcerptExcerpt Source
      shouldDisplayInlineCommentsInIncludesfalse
      и Сервера
      Multiexcerpt include
      MultiExcerptNameTM_Short_Name
      PageWithExcerptExcerpt Source
      shouldDisplayInlineCommentsInIncludesfalse
      . Для этого измените файл /etc/ssl/openssl.cnf следующим образом:
      • Найдите в файле строки:

        Блок кода
        languagetext

...

[default_conf]
ssl_conf = ssl_sect

[ssl_sect]
system_default = system_default_sect

[system_default_sect]
MinProtocol = TLSv1.2
CipherString =  DEFAULT:@SECLEVEL=1
      • # Extra OBJECT IDENTIFIER info:
        #oid_file       = $ENV::HOME/.oid
        oid_section     = new_oids
      • После них добавьте строки:

        Блок кода
        languagetext
        # System default
        openssl_conf = default_conf
      • В конец файла добавьте следующие строки:

        Блок кода
        languagetext

...

dnf install openldap-compat

Если вы установили пакет после установки сервера

Multiexcerpt include
MultiExcerptNameDM_Short_Name
PageWithExcerptExcerpt Source
, перезапустите службу webapi:

...

languagetext

...

      • [default_conf]
        ssl_conf = ssl_sect
        
        [ssl_sect]
        system_default = system_default_sect
        
        [system_default_sect]
        MinProtocol = TLSv1.2
        CipherString =  DEFAULT:@SECLEVEL=1
  1. Раскрыть
    titleЕсли установка проводится с использованием опции Host на сервере под управлением

...

  1. РЕД ОС 8:

    Установите

...

  1. пакет openldap-compat:

    Блок кода
    languagetext

...

  1. dnf install 

...

titleЕсли планируется распространение Агентов на рабочие станции под управлением ОС Windows:

Установите Samba-клиент на сервер:

...

  1. openldap-compat

    Если вы установили пакет после установки сервера

    Multiexcerpt include
    MultiExcerptNameDM_Short_Name
    PageWithExcerptExcerpt Source
    , перезапустите службу webapi:

    Блок кода
    languagetext

...

  1. systemctl 

...

  1. restart iwdms_webapi
  2. Раскрыть
    titleЕсли установка проводится на сервере под управлением Мос.ОС:

    Установите пакеты ethtool, app_armor, fuse-overlayfs и sysctl с зависимостями:

    Блок кода
    languagetext

...

  1. zypper install 

...

  1. ethtool
    zypper install patterns-base-apparmor
    zypper install procps
    zypper install fuse-overlayfs
  2. Раскрыть
    titleЕсли планируется распространение Агентов на рабочие станции под управлением ОС Windows:

    Установите Samba-клиент на сервер:

    • РЕД ОС:

      Блок кода
      languagetext

...

    • dnf install samba samba-client 

...

Информация
titleПримечание:

Если вы планируете устанавливать Сервер

Multiexcerpt include
MultiExcerptNameDM_Short_Name
PageWithExcerptExcerpt Source
с поддержкой контейнеризации (подробнее см. "Установка "Все-в-одном""), то установка Samba-клиента на сервере не требуется.

...

    • samba-common-tools
    • ОС Astra Linux:

      Блок кода
      languagetext
      apt install samba samba-common smbclient

      В случае сервера под управлением ОС Astra Linux 1.7 и установки Samba-клиента из локального репозитория необходимо, чтобы пакеты smbclient и samba-common были версии 4.19.6 или более поздней.

    • ОС Альт:

      Блок кода
      languagetext
      apt-get install samba samba-client smbclient
    Информация
    titleПримечание:

    Если вы планируете устанавливать Сервер

    Multiexcerpt include
    MultiExcerptNameDM_Short_Name
    PageWithExcerptExcerpt Source

...

titleПример установки PostgreSQL 15 на РЕД ОС

Обновите установленные в системе пакеты:

...

  1. с поддержкой контейнеризации (подробнее см. "Установка "Все-в-одном""), то установка Samba-клиента на сервере не требуется.

  2. Установите СУБД PostgreSQL.
    Рекомендуется устанавливать СУБД на другом компьютере. Если необходимо получать события от небольшого количества Агентов, вы можете установить СУБД PostgreSQL совместно с Сервером

    Multiexcerpt include
    MultiExcerptNameDM_Short_Name
    PageWithExcerptExcerpt Source
    shouldDisplayInlineCommentsInIncludesfalse
    .

    Раскрыть
    titleПример установки PostgreSQL 15 на РЕД ОС
    1. Обновите установленные в системе пакеты:

      Блок кода
      languagetext
      sudo dnf update
    2. Установите и инициализируйте СУБД, выполнив команды:

      Блок кода
      languagetext
      sudo dnf install postgresql
      sudo dnf install postgresql15-server
      sudo postgresql-15-setup initdb
      sudo systemctl enable postgresql-15.service --now
    3. Убедитесь, что служба PostgreSQL запущена и имеет статус active:

      Блок кода
      languagetext
      sudo systemctl status postgresql-15.service

      Также информацию по установке PostgreSQL на РЕД ОС вы можете получить из официальной документации РЕД ОС.

    Информация
    titleПримечание:

    Для обеспечения корректной и бесперебойной работы Сервера необходимо хранение файлов СУБД и теневых копий событий на разных физических дисках.

    Для работы с СУБД необходима роль с правами на создание базы данных.

  3. Дополнительно настройте базу данных.

    Предупреждение
    titleВажно!

    Названия файлов postgresql.conf и pg_hba.conf одинаковы для всех ОС, но пути к ним различаются. В статье в качестве примера приведены пути, используемые на РЕД ОС.

    1. Откройте на редактирование файл /var/lib/pgsql/15/data/postgresql.conf.
    2. Включите возможность экранирования специальных символов при вставке строк в таблицы БД. Для этого присвойте параметру "standard_conforming_strings" значение on.
    3. Задайте параметры, оптимизирующие быстродействие. Для более точного подбора параметров используйте калькулятор PGTune.
      1. Присвойте параметру "max_connections" значение 250.
      2. Настройте ротацию логов.
      3. Укажите прочие параметры (потребление ресурсов памяти, настройки WAL, планирование запросов) согласно официальной документации PostgreSQL.
    4. Если вы будете использовать опцию установки сервера с поддержкой контейнеризации и размещать базу данных на один сервер с

      Multiexcerpt include
      MultiExcerptNameDM_Short_Name
      PageWithExcerptExcerpt Source
      shouldDisplayInlineCommentsInIncludesfalse
      :
      Найдите в файле строку:

      Блок кода
      languagetext
      # listen_addresses = 'localhost'

      и замените ее на следующую:

      Блок кода
      languagetext
      listen_addresses = '*'
    5. Откройте на редактирование файл /var/lib/pgsql/15/data/pg_hba.conf.
    6. Если вы будете использовать опцию установки сервера с поддержкой контейнеризации и размещать базу данных на один сервер с

      Multiexcerpt include
      MultiExcerptNameDM_Short_Name
      PageWithExcerptExcerpt Source
      shouldDisplayInlineCommentsInIncludesfalse
      , в качестве первой строки добавьте параметр:

      Блок кода
      languagetext
      host all all 0.0.0.0/0 md5
    7. Если вы устанавливаете СУБД на отдельном от
      Multiexcerpt include
      MultiExcerptNameDM_Short_Name
      PageWithExcerptExcerpt Source
      shouldDisplayInlineCommentsInIncludesfalse
      сервере, настройте доступ к СУБД в файле pg_hba.conf согласно официальной документации PostgreSQL.
    8. Перезапустите службу PostgreSQL.

      Раскрыть
      titleПример команды для РЕД ОС:
      Блок кода
      languagetext
      sudo systemctl restart postgresql-15.service
    9. Если вы планируете далее установить Систему с поддержкой контейнеризации и использовать ОС Oracle Linux, то после установки СУБД рекомендуется установить языковой пакет:

      Блок кода
      languagetext
      sudo dnf install langpacks-ru -y
  4. Задайте пароль для пользователя postgres. Для этого:
    1. Авторизуйтесь от имени пользователя postgres:

      Блок кода
      languagetext
      su - postgres
    2. Запустите программу psql:

      Блок кода
      languagetext
      psql
    3. Введите команду задания пароля:

      Блок кода
      languagetext
      \password postgres

...

    1. Дважды введите новый пароль.
    2. Выйдите из программы psql и смените пользователя postgres:

      Блок кода
      languagetext
      \q
      exit
  1. Для успешного соединения Сервера
    Multiexcerpt include
    MultiExcerptNameDM_Short_Name
    PageWithExcerptExcerpt Source
    shouldDisplayInlineCommentsInIncludesfalse
    с Сервером
    Multiexcerpt include
    MultiExcerptNameTM_Short_Name
    PageWithExcerptExcerpt Source
    shouldDisplayInlineCommentsInIncludesfalse
    настройте проверку сертификата удаленного сервера (подробнее см. "Настройка проверки сертификатов удаленных серверов" ). Также вы можете сделать это после установки.
  2. Раскрыть
    titleЕсли вы планируете использовать протокол Kerberos для получения информации о сотрудниках и компьютерах из MS Active Directory:
    • В случае установки Device Monitor с использованием опции Host:
      1. Убедитесь, что время Сервера Device Monitor совпадает с временем контроллером домена. Максимальное допустимое отклонение – 5 минут. Если необходимо, установите и настройте chrony или ntpd.
      2. Убедитесь, что в файле /etc/resolv.conf:
        • домен поиска указан корректно;
        • в качестве серверов DNS указаны DNS-серверы Active Directory.
      3. Установите пакеты krb5-workstation, krb5-libs, cyrus-sasl-gssapi. Вы также можете установить пакет openldap-clients для диагностики в случае ошибок подключения.
      4. Настройте конфигурационный файл протокола Kerberos /etc/krb5.conf. Соблюдайте регистр при указании адресов Realm.
    •  В случае установки Device Monitor с использованием опции Container:
      1. Установите пакет openldap-clients для диагностики в случае ошибок подключения.
      2. Настройте конфигурационный файл протокола Kerberos /opt/iw/dmserver/etc/krb5.conf. Соблюдайте регистр при указании адресов Realm.
        • Параметр default_ccache_name заполните следующим образом:

          Блок кода
          languagetext
          default_ccache_name = FILE:/tmp/krb5cc_%{uid}
    Информация
    titleПримечание:
    Шаги могут быть выполнены также после установки Сервера Device Monitor.
  3. Убедитесь, что на сервере установлены актуальные дата и время.

Примеры установки дополнительных пакетов
Якорь
1
1

Установка .NET на примере операционной системы Альт

  1. Убедитесь, что репозитории Альт доступны, выполнив команду:

    Блок кода
    languagetext
    apt-repo list
  2. Если репозитории недоступны (закомментированы), необходимо отредактировать файл /etc/apt/sources.list, раскомментировав в нем строки с адресами репозиториев.
  3. Отредактируйте файл /etc/apt/apt.conf:
    1. Раскомментируйте все строки 
    2. Укажите корректные имя пользователя и пароль доменной учетной записи.
  4. Установите среду выполнения .NET 8 с необходимой поддержкой ASP.NET Core. Для этого в терминале выполните команду:

    Блок кода
    languagetext
    apt-get install dotnet-aspnetcore-runtime-8.0

    В результате будет установлена среда выполнения .NET 8 с поддержкой ASP.NET Core.

  5. Проверьте установленный .NET 8, выполнив команду:

    Блок кода
    languagetext
    dotnet --info

    Image Added

Установка .NET на примере операционной системы Astra Linux

  1. Убедитесь, что репозитории Astra Linux доступны, выполнив команду:

    Блок кода
    languagetext
    apt-get update
  2. Если репозитории недоступны (закомментированы), необходимо отредактировать файл /etc/apt/sources.list, раскомментировав в нем строки с адресами репозиториев.
  3. Отредактируйте файл /etc/apt/apt.conf:
    1. Раскомментируйте все строки.
    2. Укажите корректные имя пользователя и пароль доменной учетной записи.
  4. Установите среду выполнения .NET 8 с необходимой поддержкой ASP.NET Core. Для этого в терминале выполните команду:

    Блок кода
    languagetext
    apt install aspnetcore-runtime-8.0

    В результате будет установлена среда выполнения .NET 8 с поддержкой ASP.NET Core.

    Информация
    titleПримечание:

    Пакеты, необходимые для установки .NET 8, могут отсутствовать в репозиториях. В этом случае загрузите и установите требуемые пакеты вручную.

    Подробнее об установке .NET в ОС Astra Linux см. на официальном сайте "Astra Linux: Установка MS .Net Core и MS Visual Studio Code" и ".Net"

  5. Проверьте установленный .NET 8, выполнив команду:

    Блок кода
    languagetext
    dotnet --info

    Image Added

Установка .NET на примере операционной системы РЕД ОС

  1. Убедитесь, что репозитории РЕД ОС доступны, выполнив команду:

    Блок кода
    languagetext
    dnf repoinfo
  2. Установите среду выполнения .NET 8 с необходимой поддержкой ASP.NET Core. Для этого в терминале выполните команду:

    Блок кода
    languagetext
    sudo dnf install aspnetcore-runtime-8.0

    В некоторых дистрибутивах Linux имя пакета может быть dotnet-aspnetcore-runtime-8.0
    В результате будет установлена среда выполнения .NET 8 с поддержкой ASP.NET Core.

  3. Проверьте установленный .NET 8, выполнив команду:

    Блок кода
    languagetext
    dotnet --info

    Image Added

Раскрыть
titleЕсли в процессе установки .NET возникли ошибки:
  • Удалите из операционной системы все пакеты, связанные с .NET. Выполните команду: 

    Блок кода
    languagetext
    sudo dnf remove 'dotnet*' 'aspnet*' 'netstandard*'
  • Установите заново конкретную версию .NET, например:

    Блок кода
    languagetext
    sudo dnf install aspnetcore-runtime-8.0-8.0.17-1.el7
  • Чтобы посмотреть список доступных версий, выполните:

    Блок кода
    languagetext
    dnf --showduplicates list aspnetcore-runtime-8.0

Установка conntrack, socat на примере операционной системы РЕД ОС
Якорь
2
2

Для корректной поддержки Kubernetes проверьте наличие установленных пакетов conntrack и socat.
Для этого:

  1. Введите в командной строке:

    Блок кода
    languagetext
    conntrack

    В ответ будут выведены сведения о работе и актуальная версия этого пакета.

  2. Если conntrack не установлен, следует установить его с помощью команды:

    Блок кода
    languagetext
    sudo dnf install conntrack
  3. Если пакет недоступен в репозитории, скачайте его, перейдите в директорию с пакетом и установите вручную с помощью команды вида:

    Блок кода
    languagetext
    rpm -Uhv ./<имя_пакета>
  4. Повторите описанные выше действия для установки пакета socat.
Sv translation
languageen

To ensure the

Multiexcerpt include
MultiExcerptNameDM_Short_Name
PageWithExcerptExcerpt Source
useIncluderPageContexttrue
Server operation, you need to prepare the environment:

  1. Enter the computer where the 
    Multiexcerpt include
    MultiExcerptNameDM_Short_Name
    PageWithExcerptExcerpt Source
    useIncluderPageContexttrue
    Server will be installed into the domain.
  2. Make sure that the server has an FQDN hostname configured. To do this, run the command:

    Блок кода
    languagetext
    echo $HOSTNAME

    As a result, the full name should be displayed, such as dmserv.company.ru

    Раскрыть
    titleIf a short name is displayed, such as dmserv, then:
    1. Set the full name of the host:

      • On a computer running Astra Linux, ALT OS, or Mos.OS, use the command:

        Блок кода
        languagetext
        hostnamectl set-hostname <FQDN>
      • On a computer running RED OS:
        1. Run the nmtui utility:

          Блок кода
          languagetext
          nmtui
        2. In the text interface, select Set system hostname.
        3. In the Set Hostname window, enter the new hostname and click OK.
        4. In the Set hostname to '<new_name>' window, click OK.
        5. Click Quit.
    2. Restart the server.
    3. Run the command again:

      Блок кода
      languagetext
      echo $HOSTNAME
  3. Install Microsoft .NET 8 (https://dotnet.microsoft.com/) on this computer. See the installation examples below.

    Информация
    titleNote:

    If you plan to install the

    Multiexcerpt include
    MultiExcerptNameDM_Short_Name
    PageWithExcerptExcerpt Source
    useIncluderPageContexttrue
    Server with containerization support (see Новая установка), then installing .NET 8 is not required.

  4. Complete the Inotify subsystem settings. For this:
    1. Open the configuration file /etc/sysctl.conf for editing.
    2. Add the following strings at the end of the file:

      Блок кода
      languagetext
      fs.inotify.max_user_instances = 16384
      fs.inotify.max_user_watches = 32768
      fs.inotify.max_queued_events = 262144

      You can also set the maximum number of files to be opened. To do this, specify the value of the file-max parameter, such as:

      Блок кода
      languagetext
      fs.file-max = 500000
    3. Save the changes and close the configuration file.
    4. To apply the new subsystem settings, run the command:

      Блок кода
      languagetext
      sysctl -p
  5. If the installation is performed on a server running Mos.OS, make sure that the official OS repositories are available: software, update, oss-suse.
  6. Install the conntrack (or conntrack-tools) and socat packages. For an example of package installation, see below.
  7. If you are going to use the option to install the server with containerization support, install the podman package.

    Раскрыть
    titleExamples for installing the podman package on ALT OS, Astra Linux, RED OS, and Mos.OS:
    • ALT OS:

      Блок кода
      languagetext
      apt-get install podman
    • Astra Linux:

      Блок кода
      languagetext
      apt install podman
    • RED OS:

      Блок кода
      languagetext
      sudo dnf install podman

      If the package is not available in the repository, download it from the official RED OS website. Go to the directory with the package and install it manually using a command like:

      Блок кода
      languagetext
      rpm -Uhv ./<package_name>
      Предупреждение
      titleImportant!
      The minimum version of podman for RED OS 4.9 is required.
      If you install the podman package on RED OS manually, also install the dependent packages required for its operation.
    • Mos.OS:

      Блок кода
      languagetext
      zypper install podman
  8. Configure the antivirus for joint operation with the System (see Antivirus configuration for Device Monitor Server on Linux OS).
  9. Configure the POD network rules or disable the firewall (see Firewalld and Kubernetes interaction conflicts, Firewall complete shutdown).
  10. Install the Python version 3 interpreter. The package with the interpreter is not included in the product distribution kit.
  11. Раскрыть
    titleIf the installation is performed on a server running RedOS, Mos.OS, or Astra Linux:

    Install the following packages:

    • RED OS:

      Блок кода
      languagetext
      dnf install python3-pyyaml
      dnf install python3-importlib-metadata
    • Astra Linux:

      Блок кода
      languagetext
      apt-get install python3-importlib-metadata
      apt-get install python3-distutils
      apt-get install python3-mako
      apt-get install python3-yaml
    • Mos.OS:

      Блок кода
      languagetext
      zypper install python3-PyYAML
      zypper install python3-importlib-metadata
    Информация
    titleNote:

    The packages may be missing in the product distribution kit and repositories. In this case, download and install the required packages manually.

  12. Раскрыть
    titleIf the installation is performed on a server running ALT OS:
    • Install the unzip utility in the same way as you installed conntrack and socat.
    • Install the following packages:

      Блок кода
      languagetext
      apt-get install python-modules-json
      apt-get install python-modules-distutils
      apt-get install python3-modules-sqlite3
      apt-get install python3-module-yaml
      apt-get install python3-module-importlib-metadata
    Информация
    titleNote:

    The packages may be missing in the product distribution kit and repositories. In this case, download and install the required packages manually.

    • Configure the correspondence between the encryption algorithms of the
      Multiexcerpt include
      MultiExcerptNameDM_Short_Name
      PageWithExcerptExcerpt Source
      useIncluderPageContexttrue
      and
      Multiexcerpt include
      MultiExcerptNameTM_Short_Name
      PageWithExcerptExcerpt Source
      useIncluderPageContexttrue
      Servers. To do this, modify the file /etc/openssl/openssl.cnf as follows:
      • Find the strings in the file:

        Блок кода
        languagetext
        # Extra OBJECT IDENTIFIER info:
        #oid_file       = $ENV::HOME/.oid
        oid_section     = new_oids
      • After them, add the strings:

        Блок кода
        languagetext
        # System default
        openssl_conf = default_conf
      • Add the following strings to the end of the file:

        Блок кода
        languagetext
        [default_conf]
        ssl_conf = ssl_sect
        
        [ssl_sect]
        system_default = system_default_sect
        
        [system_default_sect]
        MinProtocol = TLSv1.2
        CipherString =  DEFAULT:@SECLEVEL=1
  13. Раскрыть
    titleIf the installation is performed using the Host option on a server running Astra Linux 1.8:
    • Configure the correspondence between the encryption algorithms of the
      Multiexcerpt include
      MultiExcerptNameDM_Short_Name
      PageWithExcerptExcerpt Source
      useIncluderPageContexttrue
      and
      Multiexcerpt include
      MultiExcerptNameTM_Short_Name
      PageWithExcerptExcerpt Source
      useIncluderPageContexttrue
      Servers. To do this, modify the file /etc/openssl/openssl.cnf as follows:
      • Find the strings in the file:

        Блок кода
        languagetext
        # Extra OBJECT IDENTIFIER info:
        #oid_file       = $ENV::HOME/.oid
        oid_section     = new_oids
      • After them, add the strings:

        Блок кода
        languagetext
        # System default
        openssl_conf = default_conf
      • Add the following strings to the end of the file:

        Блок кода
        languagetext
        [default_conf]
        ssl_conf = ssl_sect
        
        [ssl_sect]
        system_default = system_default_sect
        
        [system_default_sect]
        MinProtocol = TLSv1.2
        CipherString =  DEFAULT:@SECLEVEL=1
  14. Раскрыть
    titleIf the installation is performed using the Host option on a server running RED OS 8:

    Install the package openldap-compat:

    Блок кода
    languagetext
    dnf install openldap-compat

    If you installed the package after installing the

    Multiexcerpt include
    MultiExcerptNameDM_Short_Name
    PageWithExcerptExcerpt Source
    useIncluderPageContexttrue
    server, restart the webapi service:

    Блок кода
    languagetext
    systemctl restart iwdms_webapi
  15. Раскрыть
    titleIf the installation is performed on a server running Mos.OS:

    Install the packages ethtool, app_armor, fuse-overlayfs, and sysctl with dependencies:

    Блок кода
    languagetext
    zypper install ethtool
    zypper install patterns-base-apparmor
    zypper install procps
    zypper install fuse-overlayfs
  16. Раскрыть
    titleIf you plan to distribute Agents to workstations running Windows OS:

    Install the Samba client on the server:

    • RED OS:

      Блок кода
      languagetext
      dnf install samba samba-client samba-common-tools
    • Astra Linux:

      Блок кода
      languagetext
      apt install samba samba-common smbclient

      In the case of a server running Astra Linux 1.7 and the installation of the Samba client from the local repository, the smbclient and samba-common packages must be version 4.19.6 or later.

    • ALT OS:

      Блок кода
      languagetext
      apt-get install samba samba-client smbclient
    Информация
    titleNote:

    If you plan to install the

    Multiexcerpt include
    MultiExcerptNameDM_Short_Name
    PageWithExcerptExcerpt Source
    useIncluderPageContexttrue
    Server with containerization support (see Новая установка), then installing the Samba client on the server is not required.

  17. Install the PostgreSQL DBMS.

    We recommend to install the DBMS on another computer. If you need to receive events from a small number of Agents, you can install the PostgreSQL DBMS together with the

    Multiexcerpt include
    MultiExcerptNameDM_Short_Name
    PageWithExcerptExcerpt Source
    useIncluderPageContexttrue
    Server.

    Раскрыть
    titleExample of installing PostgreSQL 15 on RED OS
    1. Update the packages installed in the system:

      Блок кода
      languagetext
      sudo dnf update
    2. Install and initialize the DBMS by running the following commands:

      Блок кода
      languagetext
      sudo dnf install postgresql
      sudo dnf install postgresql15-server
      sudo postgresql-15-setup initdb
      sudo systemctl enable postgresql-15.service --now
    3. Make sure the PostgreSQL service is running and has the status active:

      Блок кода
      languagetext
      sudo systemctl status postgresql-15.service

      You can also obtain information on installing PostgreSQL on RED OS from the official RED OS documentation.

    Информация
    titleNote:

    To ensure the correct and uninterrupted operation of the Server, store the DBMS files and shadow copies of events on different physical disks. To work with the DBMS, you need a role with the rights to create a database.

  18. Additionally configure the database.

    Предупреждение
    titleImportant!

    The file names postgresql.conf and pg_hba.conf are the same for all operating systems, but paths to them differ. The article provides example paths used on RED OS.

    1. Open the file /var/lib/pgsql/15/data/postgresql.conf.
    2. Enable the ability to escape special characters when inserting strings into database tables. To do this, set the "standard_conforming_strings" parameter to on.
    3. Set the parameters that optimize performance. For a more precise selection of parameters, use the PGTune calculator.
      1. Assign the value 250 to the "max_connections" parameter.
      2. Configure the log rotation.
      3. Specify other parameters (memory resource consumption, WAL settings, query planning) in accordance with the official PostgreSQL documentation.
    4. If you are going to use the option to install a server with containerization support and place the database on a single server with

      Multiexcerpt include
      MultiExcerptNameDM_Short_Name
      PageWithExcerptExcerpt Source
      useIncluderPageContexttrue
      :
      Find the string in the file:

      Блок кода
      languagetext
      # listen_addresses = 'localhost'

      and replace it with the following:

      Блок кода
      languagetext
      listen_addresses = '*'
    5. Open the /var/lib/pgsql/15/data/pg_hba.conf file for editing.
    6. If you are going to use the option to install a server with containerization support and place the database on a single server with

      Multiexcerpt include
      MultiExcerptNameDM_Short_Name
      PageWithExcerptExcerpt Source
      useIncluderPageContexttrue
      , add the following parameter as the first line:

      Блок кода
      languagetext
      host all all 0.0.0.0/0 md5
    7. If you are installing the DBMS on a server that is separate from
      Multiexcerpt include
      MultiExcerptNameDM_Short_Name
      PageWithExcerptExcerpt Source
      useIncluderPageContexttrue
      , configure access to the DBMS in the pg_hba.conf file in accordance with the official PostgreSQL documentation.
    8. Restart the PostgreSQL service.

      Раскрыть
      titleExample command for RED OS:
      Блок кода
      languagetext
      sudo systemctl restart postgresql-15.service
    9. If you plan to subsequently install the System with containerization support and use Oracle Linux, we recommend you to install the language pack after installing the DBMS:

      Блок кода
      languagetext
      sudo dnf install langpacks-ru -y
  19. Configure the password for postgres. For this:
    1. Log in as a postgres user:

      Блок кода
      languagetext
      su - postgres
    2. Run the program psql:

      Блок кода
      languagetext
      psql
    3. Enter the password setting command:

      Блок кода
      languagetext
      \password postgres
    4. Enter the new password twice.
    5. Log out of the psql program and switch the postgres user:

      Блок кода
      languagetext
      \q
      exit
  20. To successfully connect the
    Multiexcerpt include
    MultiExcerptNameDM_Short_Name
    PageWithExcerptExcerpt Source
    useIncluderPageContexttrue
    Server to the
    Multiexcerpt include
    MultiExcerptNameTM_Short_Name
    PageWithExcerptExcerpt Source
    useIncluderPageContexttrue
    Server, configure the remote server certificate verification (see Настройка проверки сертификатов удаленных серверов). You can also do this after the installation.
  21. Раскрыть
    titleIf you plan to use the Kerberos protocol to retrieve information about employees and computers from MS Active Directory:
    • If Device Monitor is installed using the Host option:
      1. Make sure that the Device Monitor Server time matches the domain controller time. The maximum allowable deviation is 5 minutes. If necessary, install and configure chrony or ntpd.
      2. Make sure that the file /etc/resolv.conf:
        • has the search domain properly specified;
        • Active Directory DNS servers are specified as DNS servers.
      3. Install the packages krb5-workstation, krb5-libs, cyrus-sasl-gssapi. You can also install the package openldap-clients for diagnostics in case of connection errors.
      4. Configure the Kerberos protocol configuration file /etc/krb5.conf. Make sure to respect the case when specifying Realm addresses.
    • When installing Device Monitor using the Container option:
      1. Install the openldap-clients package to diagnose connection errors.
      2. Configure the Kerberos protocol configuration file /opt/iw/dmserver/etc/krb5.conf. Make sure to use the correct case when specifying Realm addresses.
        • Fill in the default_ccache_name parameter as follows:

          Блок кода
          languagetext

...

\q
exit

...

Multiexcerpt include
MultiExcerptNameDM_Short_Name
PageWithExcerptExcerpt Source
shouldDisplayInlineCommentsInIncludesfalse

...

Multiexcerpt include
MultiExcerptNameTM_Short_Name
PageWithExcerptExcerpt Source
shouldDisplayInlineCommentsInIncludesfalse

...

        • default_ccache_name = FILE:/tmp/krb5cc_%{uid}
    Информация
    titleNote:

    The steps can also be performed after installing the Device Monitor Server.

  1. Make sure that the server has the current date and time set.

Examples of installing additional packages
Якорь
1
1

...

Example of installing .NET

...

on ALT OS

  1. Make sure that the ALT OS repositories are available by running the command:

    Блок кода
    languagetext
    apt-repo list

...

  1. If the repositories are unavailable (commented out), you need to edit the /etc/apt/sources.list

...

  1. file by uncommenting the strings containing the repository addresses.
  2. Edit the file /etc/apt/apt.conf:

    ...

      1. Uncomment all stings. 
      2. Provide the correct username and password for the domain account.
    1. Install the .NET 8 runtime with the necessary ASP.NET Core

    ...

    1. support. To do this, run the command in the terminal:

      Блок кода
      languagetext
      apt-get install dotnet-aspnetcore-runtime-8.0

    ...

    1. As a result, the .NET 8

    ...

    1. runtime environment with ASP.NET Core support will be installed.

    ...

    1. Check the installed .NET 8

    ...

    1. by running the command:

      Блок кода
      languagetext
      dotnet --info

      Image Modified

    ...

    Example of installing .NET

    ...

    on Astra Linux

    ...

    1. Make sure that the Astra Linux repositories are available by running the command:

      Блок кода
      languagetext
      apt-get update

    ...

    1. If the repositories are unavailable (commented out), you need to edit the /etc/apt/sources.list

    ...

    1. file by uncommenting the lines containing the repository addresses.
    2. Edit the file /etc/apt/apt.conf:

      ...

        1. Uncomment all strings.
        2. Provide the correct username and password for the domain account.
      1. Install the .NET 8 runtime with the necessary ASP.NET Core

      ...

      1. support. To do this, run the following command in the terminal:

        Блок кода
        languagetext
        apt install aspnetcore-runtime-8.0

      ...

      1. As a result, the .NET 8

      ...

      1. runtime environment with ASP.NET Core support will be installed.

        Информация
        title

      ...

      1. Note:

      ...

      1. The packages required to install .NET 8

      ...

      Подробнее об установке .NET в ОС Astra Linux см. на официальном сайте "Astra Linux: Установка MS .Net Core и MS Visual Studio Code" и ".Net"

      ...

      1. may be missing in the repositories. In this case, download and install the required packages manually.

        For more information about installing .NET on Astra Linux, see the official websites: Astra Linux: Installing MS .Net Core and MS Visual Studio Code and .Net.

      2. Check the installed .NET 8 by running the command:

        Блок кода
        languagetext
        dotnet --info

        Image Modified

      ...

      Example of installing .NET

      ...

      on Astra Linux

      1. Make sure that the RED OS repositories are available by running the command:

        Блок кода
        languagetext
        dnf repoinfo

      ...

      1. Install the .NET 8

      ...

      1. runtime with the necessary ASP.NET Core

      ...

      1. support. To do this, run the following command in the terminal:

        Блок кода
        languagetext
        sudo dnf install aspnetcore-runtime-8.0

      ...

      1. In some Linux distributions, the package name may be dotnet-aspnetcore-runtime-8.0

      ...

      1. As a result, the .NET 8

      ...

      1. runtime environment with ASP.NET Core support will be installed.

      ...

      1. Check the installed .NET 8

      ...

      Если в процессе установки возникли ошибки
      1. by running the command:

        Блок кода
        languagetext
        dotnet --info

        Image Modified

      Раскрыть
      title
      If errors occur during the installation of .NET
      :
      Удалите из операционной системы все пакеты, связанные с .NET. Выполните команду
      • Remove all packages related to .NET from the operating system. Run the command: 

        Блок кода
        languagetext
        sudo dnf remove 'dotnet*' 'aspnet*' 'netstandard*'
      Установите заново конкретную версию
      • Reinstall a specific version of .NET,

      например
      • for example:

        Блок кода
        languagetext
        sudo dnf install aspnetcore-runtime-8.0-8.0.17-1.el7
      Чтобы посмотреть список доступных версий, выполните
      • To view the list of available versions, run:

        Блок кода
        languagetext
        dnf --showduplicates list aspnetcore-runtime-8.0

      ...

      Example of installing conntrack and socat on RED OS
      Якорь
      2
      2

      Для корректной поддержки Kubernetes проверьте наличие установленных пакетов conntrack и socat.
      Для этого:

      ...

      To ensure proper Kubernetes support, check that the conntrack and socat packages are installed.
      For this:

      1. In the command line, type:

        Блок кода
        languagetext
        conntrack

      В ответ будут выведены сведения о работе и актуальная версия этого пакета.

      ...

      1. In response, you will see information about the operation and the current version of this package.

      2. If conntrack is not installed, install it using the command:

        Блок кода
        languagetext
        sudo dnf install conntrack

      ...

      1. If the package is not available in the repository, download it, navigate to the directory containing the package, and install it manually using a command like:

        Блок кода
        languagetext
        rpm -Uhv ./

      ...

      1. <package_

      ...

      1. name>
      2. Repeat the steps described above to install the socat package.