Skip to content

Instantly share code, notes, and snippets.

@antegallya
Last active June 1, 2020 18:18
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 antegallya/417cebbf259cf0a82ee5894b0cc0f39b to your computer and use it in GitHub Desktop.
Save antegallya/417cebbf259cf0a82ee5894b0cc0f39b to your computer and use it in GitHub Desktop.
Systemd service for x11vnc with some options
[Unit]
Description=X11 VNC Server daemon
After=network.target
Requires=display-manager.service
After=display-manager.service
[Service]
# You may configure -clip xinerama1 that selects the xinerama screen to serve.
# use xinerama0 for the primary screen, or remove the option completely to serve the whole desktop.
# You might want to configure one x11vnc daemon for each screen.
ExecStart=/usr/bin/x11vnc -display :0 -auth guess -rfbauth /etc/x11vnc.pw -xinerama -clip xinerama1
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
KillMode=process
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment