- [Unit]
- Description=VNC Server
- After=multi-user.target network.target
- [Service]
- Restart=always
- # Run "x11vnc -storepasswd /etc/X11/vnc.pass" before first use
- ExecStart=/usr/bin/x11vnc -auth /var/run/lightdm/root/:0 -xkb -forever -display :0 -rfbauth /etc/X11/vnc.pass -rfbport 5900 -o /dev/shm/x11vnc.log
- ExecStop=/usr/bin/killall x11vnc
- [Install]
- WantedBy=multi-user.target
Raw Paste