From 2a0c76921503183370bf46d9b7a6ad66199e21a0 Mon Sep 17 00:00:00 2001 From: adadrag Date: Thu, 12 Mar 2026 16:03:57 +0000 Subject: [PATCH] Fix VNC setup for Debian 13 TigerVNC - Use ~/.config/tigervnc/ instead of ~/.vnc/ (Debian 13 migration issue) - Add Environment=HOME=/root to vncserver systemd service Co-Authored-By: Claude Opus 4.6 --- setup-openclaw-lxc.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/setup-openclaw-lxc.sh b/setup-openclaw-lxc.sh index fb351ac..d937be8 100644 --- a/setup-openclaw-lxc.sh +++ b/setup-openclaw-lxc.sh @@ -200,18 +200,18 @@ ok "OpenClaw configured (token: $AUTH_TOKEN)." # ─── Configure VNC ─────────────────────────────────────────────────────────── info "Configuring VNC..." ct_exec " - mkdir -p /root/.vnc - echo '${CT_PASSWORD}' | vncpasswd -f > /root/.vnc/passwd - chmod 600 /root/.vnc/passwd + mkdir -p /root/.config/tigervnc + echo '${CT_PASSWORD}' | vncpasswd -f > /root/.config/tigervnc/passwd + chmod 600 /root/.config/tigervnc/passwd " -ct_exec "cat > /root/.vnc/xstartup << 'XSTARTUP' +ct_exec "cat > /root/.config/tigervnc/xstartup << 'XSTARTUP' #!/bin/bash unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS exec startxfce4 XSTARTUP -chmod +x /root/.vnc/xstartup" +chmod +x /root/.config/tigervnc/xstartup" ok "VNC configured." # ─── Fix Chromium for LXC (--no-sandbox) ───────────────────────────────────── @@ -258,6 +258,7 @@ After=network.target [Service] Type=forking +Environment=HOME=/root ExecStartPre=/bin/sh -c \"/usr/bin/vncserver -kill :1 > /dev/null 2>&1 || :\" ExecStart=/usr/bin/vncserver :1 -geometry ${VNC_RES} -depth 24 -localhost yes ExecStop=/usr/bin/vncserver -kill :1