Skip to content

Instantly share code, notes, and snippets.

@antoniopicone
Created April 17, 2020 17:10
Show Gist options
  • Save antoniopicone/694ab17baf7f50ba607efd30b38a21c0 to your computer and use it in GitHub Desktop.
Save antoniopicone/694ab17baf7f50ba607efd30b38a21c0 to your computer and use it in GitHub Desktop.
Make an Ubuntu desktop setup more server friendly
#!/bin/bash
# Set runlevel 3 (disable gui)
sudo systemctl set-default multi-user.target
# Disable power management
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment