Skip to content

Instantly share code, notes, and snippets.

@mjtiempo
Created June 7, 2024 19:56
Show Gist options
  • Save mjtiempo/8591370c203ac25d200fdaaf124f0d58 to your computer and use it in GitHub Desktop.
Save mjtiempo/8591370c203ac25d200fdaaf124f0d58 to your computer and use it in GitHub Desktop.
TigertVNC service settings on Debian 12 (gdm)
[Unit]
Description=Remote desktop service (VNC) for :0 display
Requires=display-manager.service
After=network-online.target
After=display-manager.service
[Service]
Type=simple
Environment=XAUTHORITY=/run/user/1000/gdm/Xauthority
Environment=HOME=/root
ExecStartPre=/usr/bin/bash -c "sleep 3"
ExecStart=x0vncserver -fg -display :0 -localhost no -rfbauth /root/.vnc/passwd
Restart=on-failure
RestartSec=500ms
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment