From a0545beb3a81a31c37fc879e72b0e55f88c05ee1 Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Thu, 5 Jun 2025 22:05:12 +0200 Subject: [PATCH] TurboVNC: run with ratpoison instead of xfce4, 1.51GB -> 1.41GB --- Dockerfile | 5 ++--- docker-entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3e20791..27d9074 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,7 @@ RUN apt-get update \ # update lists and install && apt-get update \ && apt-get install --no-install-recommends -y \ - virtualgl turbovnc xfce4 \ + virtualgl turbovnc ratpoison \ novnc websockify \ tini \ nodejs \ @@ -45,8 +45,7 @@ RUN apt-get update \ libcairo2 \ libasound2 \ # needed for TurboVNC if not installing xfce4: - # libxdamage1 \ - # libxrandr2 \ + libxdamage1 \ && apt-get autoremove -y \ # https://www.perplexity.ai/search/what-files-do-i-need-to-remove-imjwdphNSUWK98WzsmQswA && apt-get clean \ diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index ae17c11..517b4a3 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -30,7 +30,7 @@ else pwt="with password" fi # TurboVNC server replaces Xvfb+x11vnc -/opt/TurboVNC/bin/vncserver $DISPLAY -geometry "${WIDTH}x${HEIGHT}" -depth ${DEPTH} -rfbport ${VNC_PORT} $pw -vgl -log /fgc/data/TurboVNC.log -xstartup /usr/bin/startxfce4 2>/dev/null # -noxstartup -novnc /usr/share/novnc/ +/opt/TurboVNC/bin/vncserver $DISPLAY -geometry "${WIDTH}x${HEIGHT}" -depth ${DEPTH} -rfbport ${VNC_PORT} $pw -vgl -log /fgc/data/TurboVNC.log -xstartup /usr/bin/ratpoison 2>/dev/null # -noxstartup -novnc /usr/share/novnc/ echo "TurboVNC is running on port $VNC_PORT ($pwt) with resolution ${WIDTH}x${HEIGHT}" # TODO keep websockify just for custom NOVNC_PORT? https://www.perplexity.ai/search/how-to-specify-the-novnc-port-rfv96C9tTZufnyFPRye5xA#0 websockify -D --web "/usr/share/novnc/" "$NOVNC_PORT" "localhost:$VNC_PORT" 2>/dev/null 1>&2 &