Files
gitserver/01/01-k-server-initial-setup.04.sh
2026-02-19 20:05:04 +03:00

82 lines
2.2 KiB
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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 завершён: Базовые пакеты установлены"