#!/bin/bash set -x # bash <(curl -s https://raw.githubusercontent.com/RomanTsibii/nodes/main/setup_new_server.sh) # оновити час echo "set Ukraine timezone" sudo timedatectl set-timezone Europe/Kiev # old sudo timedatectl set-timezone Europe/Kyiv # new # adds ssh keys bash <(curl -s https://raw.githubusercontent.com/RomanTsibii/nodes/main/add_ssh_keys.sh) # встановити tmux # встановити ncdu sudo apt install ncdu tmux htop screen python3-pip python3-requests -y sudo pip3 install requests # добавити свап на 15гб оперативки bash <(curl -s https://raw.githubusercontent.com/RomanTsibii/nodes/main/swap_create.sh) 5 # install proxy for adspower # bash <(curl -s https://raw.githubusercontent.com/RomanTsibii/nodes/main/helper/proxy_for_antick.sh) # bash <(curl -s https://raw.githubusercontent.com/RomanTsibii/nodes/main/helper/proxy_L.sh) # bash <(curl -s https://raw.githubusercontent.com/RomanTsibii/nodes/main/helper/proxy_den_alex.sh) # встановити докер bash <(curl -s https://raw.githubusercontent.com/DOUBLE-TOP/tools/main/docker.sh) # встановити fail2ban bash <(curl -s https://raw.githubusercontent.com/RomanTsibii/nodes/main/helper/fail2ban.sh) # визначає максимальну кількість файлів або директорій, за якими один користувач може одночасно спостерігати за допомогою механізму inotify # Inotify використовується багатьма системними службами, такими як systemd, journald, udev, docker для моніторингу змін у файловій системі echo 'fs.inotify.max_user_watches=524288' >> /etc/sysctl.conf