This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# this will overwrite all the settings it touches | |
# the name of the user to run these commands as | |
TARGET_USER=ClausTheInsane | |
# to start the desktop session remotely | |
echo -e "[daemon]\nAutomaticLogin=${TARGET_USER}\nAutomaticLoginEnable=true\n" | sudo tee /run/gdm/custom.conf | |
sudo systemctl restart gdm |