Skip to content

Instantly share code, notes, and snippets.

@leoetlino
Last active August 15, 2016 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leoetlino/604e3e84fc0d5e9ca9a7553d0dafc266 to your computer and use it in GitHub Desktop.
Save leoetlino/604e3e84fc0d5e9ca9a7553d0dafc266 to your computer and use it in GitHub Desktop.
# /etc/systemd/system/vnc-seat1.service
# then enable it: systemctl enable vnc-seat1
# and start it: systemctl start vnc-seat1
# (the name and description can be different, of course)
[Unit]
Description=x11vnc on seat1
After=lightdm.service
Requires=lightdm.service
[Service]
ExecStart=/usr/bin/x11vnc -display :0 -forever
# :0 is the display number of the TV. It may be something else in your case
Restart=always
User=root
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment