Last active
June 1, 2020 18:18
-
-
Save antegallya/417cebbf259cf0a82ee5894b0cc0f39b to your computer and use it in GitHub Desktop.
Systemd service for x11vnc with some options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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