Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778# Setting up a VPS
## part onesudo apt updatesudo apt upgradels /var/run/reboot-requiredreboot
## part two### set up firewallsudo ufw allow 22sudo ufw allow 80sudo ufw allow 443sudo ufw enable# sudo ufw status verbose
### set up fail2ban### https://github.com/fail2ban/fail2banapt install fail2ban
## build from source??# git clone https://github.com/fail2ban/fail2ban.git# cd fail2ban# sudo python3 setup.py install ## sudo cp files/debian-initd /etc/init.d/fail2ban# update-rc.d fail2ban defaults# sudo service fail2ban start
### set up unattended upgradessudo apt install unattended-upgradessudo dpkg-reconfigure unattended-upgrades#### check to see if it is running#sudo systemctl status unattended-upgrades
## part three### set up caddysudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curlcurl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpgcurl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.listchmod o+r /usr/share/keyrings/caddy-stable-archive-keyring.gpgchmod o+r /etc/apt/sources.list.d/caddy-stable.listsudo apt updatesudo apt install caddy#sudo service caddy status### update caddy file with domain name### /etc/caddy/Caddyfile#sudo service caddy restart#sudo service caddy reload
### set up docker??#### Add Docker's official GPG key:sudo apt updatesudo apt install ca-certificates curlsudo install -m 0755 -d /etc/apt/keyringssudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.ascsudo chmod a+r /etc/apt/keyrings/docker.asc
#### Add the repository to Apt sources:sudo tee /etc/apt/sources.list.d/docker.sources <<EOFTypes: debURIs: https://download.docker.com/linux/ubuntuSuites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")Components: stableSigned-By: /etc/apt/keyrings/docker.ascEOF
sudo apt updatesudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
### set up uptime kuma??