Skip to content

Instantly share code, notes, and snippets.

@nathanpalmer
Created January 6, 2019 03:29
Show Gist options
  • Save nathanpalmer/2d107a5c80c5f25cc7a844d696c8b7f5 to your computer and use it in GitHub Desktop.
Save nathanpalmer/2d107a5c80c5f25cc7a844d696c8b7f5 to your computer and use it in GitHub Desktop.
x11vnc.service
[Unit]
Description=VNC Server for X11
Requires=display-manager.service
After=display-manager.service
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -xkb -repeat -allow 127.0.0.1 -display :0 -auth guess -rfbauth /home/nathan/.vnc/passwd -rfbport 5900 -forever -loop -o /var/log/x11vnc.log
Restart=on-failure
RestartSec=10
[Install]
WantedBy=graphical.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment