nix:chto_ja_obychno_delaju_srazu_posle_ustanovki_operacionnoj_sistemy
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
nix:chto_ja_obychno_delaju_srazu_posle_ustanovki_operacionnoj_sistemy [2023/11/24 16:22] – [Debian 11] san | nix:chto_ja_obychno_delaju_srazu_posle_ustanovki_operacionnoj_sistemy [2025/02/06 12:58] (текущий) – [Настройка sudo] san | ||
---|---|---|---|
Строка 3: | Строка 3: | ||
===== Настройка sudo ===== | ===== Настройка sudo ===== | ||
- | Во многих системах, | + | Во многих системах, |
<code bash> | <code bash> | ||
Строка 28: | Строка 28: | ||
</ | </ | ||
- | Либо это же можно сделать ручной правкой /etc/group | + | Либо это же можно сделать ручной правкой / |
+ | |||
+ | См. также [[nix: | ||
===== Дополнительные репозитории ===== | ===== Дополнительные репозитории ===== | ||
Строка 34: | Строка 36: | ||
Програмное обеспечение для RAID [[https:// | Програмное обеспечение для RAID [[https:// | ||
+ | [[hard: | ||
===== Установка нужного ПО ===== | ===== Установка нужного ПО ===== | ||
- | <WRAP center round info 60%>\\ | + | <WRAP center round info 80%>\\ |
nagios-nrpe-server и связанные с ним пакеты для мониторинга Nagios устанавливать при необходимости (но на моих серверах они нужны везде)\\ | nagios-nrpe-server и связанные с ним пакеты для мониторинга Nagios устанавливать при необходимости (но на моих серверах они нужны везде)\\ | ||
</ | </ | ||
Строка 71: | Строка 73: | ||
nagios-nrpe-server | nagios-nrpe-server | ||
- | sysv-rc-conf, | + | sysv-rc-conf, |
htop- продвинутая версия top | htop- продвинутая версия top | ||
Строка 146: | Строка 148: | ||
==== Debian 12 ==== | ==== Debian 12 ==== | ||
+ | Чтоб не наблюдать ругань на русскую кодировку UTF-8 нужно выполнить | ||
+ | < | ||
+ | dpkg-reconfigure locales | ||
+ | </ | ||
+ | и добавить ru_RU.UTF-8 | ||
+ | |||
Установка для физического сервера | Установка для физического сервера | ||
Строка 152: | Строка 160: | ||
</ | </ | ||
- | Установка для виртуального сервера | + | Установка для виртуального сервера |
< | < | ||
apt install open-vm-tools sudo mc iptables-persistent nagios-nrpe-server htop sysstat iptraf net-tools netdiag iotop nagios-plugins-contrib needrestart gnupg2 rsyslog | apt install open-vm-tools sudo mc iptables-persistent nagios-nrpe-server htop sysstat iptraf net-tools netdiag iotop nagios-plugins-contrib needrestart gnupg2 rsyslog | ||
</ | </ | ||
+ | |||
+ | Установка для виртуального сервера KVM | ||
+ | < | ||
+ | apt install qemu-guest-agent sudo mc iptables-persistent nagios-nrpe-server htop sysstat iptraf net-tools netdiag iotop nagios-plugins-contrib needrestart gnupg2 rsyslog | ||
+ | </ | ||
+ | |||
+ | |||
==== Ubuntu 14.04.5 LTS ==== | ==== Ubuntu 14.04.5 LTS ==== | ||
Строка 254: | Строка 268: | ||
#include Centos 7\\ | #include Centos 7\\ | ||
#exclude trafshow\\ | #exclude trafshow\\ | ||
- | \\ | ||
- | yum config-manager –set-enabled powertools\\ | ||
- | \\ | ||
- | dnf install nagios-plugins-users nagios-plugins-uptime nagios-plugins-procs nagios-plugins-log nagios-plugins-load nagios-plugins-ifstatus nagios-plugins-ifoperstatus nagios-plugins-file_age nagios-plugins-dns nagios-plugins-disk nagios-plugins-check-updates nagios-plugins-swap | ||
- | |||
- | |||
- | ==== Centos 8 ==== | ||
- | |||
- | #include Centos 7\\ | ||
- | #exclude trafshow | ||
Включить PowerTools-репозиторий | Включить PowerTools-репозиторий | ||
- | |||
<code bash> | <code bash> | ||
- | yum config-manager | + | yum config-manager |
</ | </ | ||
Установка ПО | Установка ПО | ||
- | |||
<code bash> | <code bash> | ||
dnf install nagios-plugins-users nagios-plugins-uptime nagios-plugins-procs nagios-plugins-log nagios-plugins-load nagios-plugins-ifstatus nagios-plugins-ifoperstatus nagios-plugins-file_age nagios-plugins-dns nagios-plugins-disk nagios-plugins-check-updates nagios-plugins-swap | dnf install nagios-plugins-users nagios-plugins-uptime nagios-plugins-procs nagios-plugins-log nagios-plugins-load nagios-plugins-ifstatus nagios-plugins-ifoperstatus nagios-plugins-file_age nagios-plugins-dns nagios-plugins-disk nagios-plugins-check-updates nagios-plugins-swap | ||
</ | </ | ||
+ | |||
+ | Удаляем firewalld, устанавливаем iptables-services | ||
+ | < | ||
+ | systemctl stop firewalld | ||
+ | systemctl disable firewalld | ||
+ | systemctl mask firewalld | ||
+ | dnf install iptables-services | ||
+ | </ | ||
+ | Далее правим по вкусу / | ||
+ | |||
{{tag> | {{tag> |
nix/chto_ja_obychno_delaju_srazu_posle_ustanovki_operacionnoj_sistemy.1700832173.txt.gz · Последнее изменение: 2023/11/24 16:22 — san