Skip to content

Instantly share code, notes, and snippets.

@nickvsh
Forked from subosito/_
Created July 5, 2019 14:25
Show Gist options
  • Select an option

  • Save nickvsh/b4db7796e8a54bf893207a50a01a9f64 to your computer and use it in GitHub Desktop.

Select an option

Save nickvsh/b4db7796e8a54bf893207a50a01a9f64 to your computer and use it in GitHub Desktop.
xinit service on systemd
systemctl enable xinit.service
# /etc/systemd/system/xinit.service
[Unit]
Description=Autologin to X
After=systemd-user-sessions.service
[Service]
ExecStart=/bin/su - -- subosito -l -c 'xinit -- /usr/bin/X -nolisten tcp vt7 </dev/null >/dev/null 2>&1'
StandardOutput=syslog
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment