Skip to content

Instantly share code, notes, and snippets.

@protolambda
Created July 13, 2018 12:36
Show Gist options
  • Save protolambda/0fa2a5d372b443f8e2c98a23d465ccbe to your computer and use it in GitHub Desktop.
Save protolambda/0fa2a5d372b443f8e2c98a23d465ccbe to your computer and use it in GitHub Desktop.
Simple trick to run startx by default on tty1
# /etc/profile
... *stuff* ...
# autostart xorg-server on tty1
if [[ "$(tty)" == '/dev/tty1' ]]; then
exec startx
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment