After install

apt update && apt -V upgrade && apt autoremove

apt install tmux mc wget curl chrony sudo duf htop -y

echo 'export LS_OPTIONS="--color=auto"' >> /root/.bashrc

echo 'eval "$(dircolors)"' >> /root/.bashrc

echo 'alias ls="ls $LS_OPTIONS"' >> /root/.bashrc

echo 'alias ll="ls $LS_OPTIONS -l"' >> /root/.bashrc

echo 'alias l="ls $LS_OPTIONS -lA"' >> /root/.bashrc

echo 'export PATH=$PATH:/usr/sbin' >> /root/.bashrc

echo 'LS_COLORS="$LS_COLORS:di=1;33:"; export LS_COLORS' >> /root/.bashrc #yeloow color dir

timedatectl set-timezone 'Europe/Kiev'

echo 'server time.ntp.org.ua iburst' >>/etc/chrony/chrony.conf

echo 'server pool.ntp.org.ua iburst' >>/etc/chrony/chrony.conf

systemctl start chrony && systemctl enable chrony

sudo sed -i '/^# User privilege specification$/a exch_adm ALL=(ALL) NOPASSWD: ALL' /etc/sudoers

source ~/.bashrc

History

echo 'export HISTSIZE=10000' >> ~/.bashrc

echo 'export HISTTIMEFORMAT="%h %d %H:%M:%S "' >> ~/.bashrc

echo 'PROMPT_COMMAND="history -a"' >> ~/.bashrc

echo 'export HISTIGNORE="ls:ll:history:w:htop:pwd"' >> ~/.bashrc

Приглашение

echo "PS1='${debian_chroot:+($debian_chroot)}\u@NAME:\w\$ '" >> ~/.bashrc

ssh key

C - осознаный комментарий | f - путь и имя файла с ключем

ssh-keygen -t ed25519 -C "My Debian"

ssh-keygen -t ed25519 -f ~/.ssh/mykey -C "My Debian"

Скопировать ключ на удаленный сервер

ssh-copy-id -i ~/.ssh/id_ed25519.pub root@server2

или

cat ~/.ssh/id_ed25519.pub >> ~/.ssh/authorized_keys

cat ~/.ssh/id_ed25519

Install additionas soft

apt install cockpit sysstat dstat htop iftop ifstat gdisk -y

cockpit ip:9090