## page was renamed from HomeNetwork/HomeNetwork/Brain = Brain Cloud Server = Installing Brain in 2024 - First we re-imaged the VPS through the cloudpanel on ionos! There are some basic tools settings that I use regularly: 1. joe editor `# joe apt install joe` 1. permanently set hostname `# hostnamectl set-hostname brain` 1. temporarily set hostname so I don't have to reboot now `# hostname brain` == Adding a named user == 1. Add named user besides root `# adduser scot` 1. Add named user to sudo `# usermod -aG sudo scot` == Check SSH installation and fix it! == Install fail2ban and configure ssh service. 1. Check if it is running `# systemctl status ssh` => it should be dead. 1. Enable ssh `systemctl enable ssh` 1. Install fail2ban `# apt install fail2ban` 1. Configure based on information at https://www.tecmint.com/install-fail2ban-ubuntu-24-04/ 1. Note that I don't have a jail.local instead I have a jail.conf 1. Require ssh to use ssh-key 1. copy a key to host `# ssh-copy-id -i [file.pub] scot@host.scotnpatti.com` 1. Login `# ssh -i [file] scot@host.scotnpatti.com` => works? Good! 1. edit /etc/ssh/sshd_conf add: 1. PasswordAuthentication no 1. PubkeyAuthenticaqtion yes 1. edit /etc/ssh/sshd_conf.d/50-cloud-init.conf 1. PasswordAuthentication no 1. restart ssh `# systemctl restart ssh` 1. enable ssh `# systemctl enable ssh` 1. Test it to make sure it works as required. == Install DNS Server Bind9 == Done: this was a huge problem to accomplish and required frequent documentation reference. For configuration information refer to the installation or the backups. == Install Caddy == Install caddy to reverse proxy as needed.