Set up ubuntu
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install openssh-server
sudo systemctl enable ssh --now
sudo systemctl start ssh
sudo apt-get install curl
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up
echo 'ssh-rsa your-public-key-here' ~/.ssh/authorized_keys
sudo nano /etc/ssh/sshd_config
PermitRootLogin no
PasswordAuthentication no
ChallengeResponseAuthentication no
UsePAM no
- Save & exit.
sudo nano /etc/systemd/logind.conf
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
sudo find / -type f -size +100M