Ubuntu¶
Update System¶
SSH¶
sudo apt update && sudo apt upgrade -y
sudo apt install openssh-server -y
sudo systemctl enable --now ssh
Logind Configuration¶
Disable lid switch suspend (useful for servers):
sudo vi /etc/systemd/logind.conf
# Change: HandleLidSwitch=suspend → HandleLidSwitch=ignore
sudo systemctl restart systemd-logind