initial commit

This commit is contained in:
unknown
2026-02-19 20:05:04 +03:00
parent 1ee67d8159
commit 05097d5dda
32 changed files with 4413 additions and 3 deletions

View File

@@ -0,0 +1,81 @@
#!/bin/bash
#===============================================================================
# ШАГ 4: УСТАНОВКА БАЗОВЫХ ПАКЕТОВ
#===============================================================================
# Запуск: sudo bash 01-k-server-initial-setup.04.sh
#===============================================================================
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
source "$SCRIPT_DIR/01-k-server-initial-setup.00.sh"
init_log
check_root
print_header "ШАГ 4: УСТАНОВКА БАЗОВЫХ ПАКЕТОВ"
#-------------------------------------------------------------------------------
# 4.1 Системные утилиты
#-------------------------------------------------------------------------------
print_subheader "Системные утилиты"
install_packages \
vim \
nano \
curl \
wget \
git \
htop \
iotop \
ncdu \
tree \
rsync \
unzip \
zip \
tmux \
screen \
\
open-vm-tools \
less
#-------------------------------------------------------------------------------
# 4.2 Сеть и диагностика
#-------------------------------------------------------------------------------
print_subheader "Сеть и диагностика"
install_packages \
net-tools \
dnsutils \
iputils-ping \
traceroute \
mtr \
tcpdump \
ethtool
#-------------------------------------------------------------------------------
# 4.3 Безопасность
#-------------------------------------------------------------------------------
print_subheader "Безопасность"
install_packages \
nftables \
fail2ban \
openssl
#-------------------------------------------------------------------------------
# 4.4 Дополнительно
#-------------------------------------------------------------------------------
print_subheader "Дополнительные пакеты"
install_packages \
software-properties-common \
apt-transport-https \
ca-certificates \
gnupg \
lsb-release \
\
vim-tiny \
logrotate \
bash-completion \
command-not-found
print_success "Шаг 4 завершён: Базовые пакеты установлены"