- xorg-dummy.service: remove -nolisten local (blocked local UNIX socket) - xorg-dummy.service: add -auth /root/.Xauthority and xauth generation ExecStartPre - rustdesk-dummy.service: add XAUTHORITY=/root/.Xauthority env var - Add config/vps/20-dummy-headless.conf (Xorg dummy config for VPS) - Disable conflicting gdm.service on VPS - RustDesk server now starts successfully with DUMMY0 as display Fixes connection refused on /tmp/.X11-unix/X0 caused by -nolisten local Xorg flag.
18 lines
340 B
Desktop File
18 lines
340 B
Desktop File
[Unit]
|
|
Description=RustDesk with Dummy Display
|
|
After=xorg-dummy.service
|
|
Requires=xorg-dummy.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
Environment="DISPLAY=:0"
|
|
Environment="XAUTHORITY=/root/.Xauthority"
|
|
ExecStartPre=/bin/sleep 3
|
|
ExecStart=/usr/lib/rustdesk/rustdesk --server
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|