Skip to content

Instantly share code, notes, and snippets.

@lucaguada
Forked from SurealCereal/bootgui
Last active August 29, 2015 14:25
Show Gist options
  • Save lucaguada/835cdc9ad0097bb4441a to your computer and use it in GitHub Desktop.
Save lucaguada/835cdc9ad0097bb4441a to your computer and use it in GitHub Desktop.
#!/bin/bash
# Call with either enable or disable as first parameter
if [[ "$1" == 'enable' || "$1" == 'disable' ]]; then
sudo systemctl set-default multi-user.target --force
sudo systemctl $1 lightdm.service --force
sudo systemctl $1 graphical.target --force
sudo systemctl $1 plymouth.service --force
else
echo Call with either "enable" or "disable" as first parameter.
fi
@lucaguada
Copy link
Author

useful bash script for disabling/enabling desktop environment at boot in Ubuntu Mate for Raspberry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment