Skip to content

Instantly share code, notes, and snippets.

@jgamage91
Forked from lightrush/README.md
Created July 21, 2020 10:11
Show Gist options
  • Save jgamage91/0b17b126803786fd918e2d248a8b3a18 to your computer and use it in GitHub Desktop.
Save jgamage91/0b17b126803786fd918e2d248a8b3a18 to your computer and use it in GitHub Desktop.
X11vnc Systemd Unit File

X11vnc Systemd Unit File

This Systemd unit file starts X11VNC on boot

  1. Set VNC password: sudo x11vnc -storepasswd [YOUR VNC PASSWORD] /etc/x11vnc.passwd
  2. Install Systemd Unit File
sudo cp [path to]/vnc.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable vnc.service
[Unit]
Description=VNC Server
After=multi-user.target network.target
[Service]
Restart=always
# Replace this with x0vncserver from TigerVNC in Ubuntu 18.04.
# Set password by running `sudo x11vnc -storepasswd [PASSWORD] /etc/x11vnc.passwd`
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.passwd -rfbport 5900 -shared
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment