.
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2026-01-17 00:37:40 +00:00
parent 7b874169cb
commit b42bac35bb
2 changed files with 14 additions and 2 deletions

View File

@@ -40,6 +40,9 @@ RUN apt-get update && apt-get install -y \
iproute2 \ iproute2 \
iputils-ping \ iputils-ping \
nano \ nano \
x11vnc \
xvfb \
fluxbox \
xdotool \ xdotool \
oathtool \ oathtool \
xclip \ xclip \

View File

@@ -4,8 +4,17 @@
# Setup VNC password from environment variable (passed by runtipi) # Setup VNC password from environment variable (passed by runtipi)
if [ -n "$VNC_PASSWORD" ]; then if [ -n "$VNC_PASSWORD" ]; then
mkdir -p /root/.vnc mkdir -p /root/.vnc
echo "$VNC_PASSWORD" | vncpasswd -f > /root/.vnc/passwd x11vnc -storepasswd "$VNC_PASSWORD" /root/.vnc/pass >/dev/null 2>&1 || true
chmod 600 /root/.vnc/passwd rm -f /tmp/.X1-lock /tmp/.X11-unix/X1 2>/dev/null || true
Xvfb "$DISPLAY" -screen 0 ${XVFB_WxHxD:-1280x800x24} +extension RANDR &
pids+=($!)
sleep 0.5
fluxbox >/tmp/fluxbox.log 2>&1 &
pids+=($!)
x11vnc -display "$DISPLAY" -rfbauth /root/.vnc/pass -forever -shared -rfbport "$VNC_PORT" -quiet &
pids+=($!)
websockify --web=/usr/share/novnc/ 0.0.0.0:"$NOVNC_PORT" localhost:5900 >/tmp/websockify.log 2>&1 &
pids+=($!)
fi fi
# Backup current DNS config # Backup current DNS config