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:
joe editor # joe apt install joe
permanently set hostname # hostnamectl set-hostname brain
temporarily set hostname so I don't have to reboot now # hostname brain
Adding a named user
Add named user besides root # adduser scot
Add named user to sudo # usermod -aG sudo scot
Check SSH installation and fix it!
Install fail2ban and configure ssh service.
Check if it is running # systemctl status ssh => it should be dead.
Enable ssh systemctl enable ssh
Install fail2ban # apt install fail2ban
Configure based on information at https://www.tecmint.com/install-fail2ban-ubuntu-24-04/
- Note that I don't have a jail.local instead I have a jail.conf
- Require ssh to use ssh-key
copy a key to host # ssh-copy-id -i [file.pub] scot@host.scotnpatti.com
Login # ssh -i [file] scot@host.scotnpatti.com => works? Good!
- edit /etc/ssh/sshd_conf add:
- edit /etc/ssh/sshd_conf.d/50-cloud-init.conf
restart ssh # systemctl restart ssh
enable ssh # systemctl enable ssh
- 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.