Using a laptop as a headless server
2025-08-28
debian
laptop
Got an old laptop (i7 whatever) that I use as a server for CI/CD etc.
Install Debian blah blah…
Prevent suspend on lid close
Edit /etc/systemd/logind.conf
and set
‘HandleLidSwitchExternalPower’:
Turn off console
Update /etc/default/grub
and add the ‘CONSOLEBLANK’
setting to the kernel parameters:
Run update-grub
. Reboot.