Created
June 7, 2024 19:56
-
-
Save mjtiempo/8591370c203ac25d200fdaaf124f0d58 to your computer and use it in GitHub Desktop.
TigertVNC service settings on Debian 12 (gdm)
This file contains hidden or 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=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
service location
/etc/systemd/system/x0vncserver.service