Skip to content

Instantly share code, notes, and snippets.

@metzenseifner
Created April 27, 2017 14:45
Show Gist options
  • Save metzenseifner/48a1f701a3413b44c8c7725bd12e12d6 to your computer and use it in GitHub Desktop.
Save metzenseifner/48a1f701a3413b44c8c7725bd12e12d6 to your computer and use it in GitHub Desktop.
[Unit]
Description = Start instance of desktop environment on tty1/vt1
After=systemd-user-sessions.service network.target sound.target
[email protected]
[Service]
User = jonathan
Group = admin
PAMName = login
Type = simple
TTYPath = /dev/tty1
ExecStart = /usr/bin/xinit /usr/bin/xfce4-session -- :0 -nolisten tcp vt1
Restart = on-success
StandardInput = tty
[Install]
WantedBy = multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment