Files
wevads-platform/scripts/start-vnc.sh
2026-02-26 04:53:11 +01:00

18 lines
429 B
Bash
Executable File

#!/bin/bash
pkill -9 Xvfb 2>/dev/null
pkill -9 x11vnc 2>/dev/null
pkill -f websockify 2>/dev/null
sleep 2
Xvfb :99 -screen 0 1920x1080x24 &
sleep 2
DISPLAY=:99 x11vnc -display :99 -forever -shared -rfbport 5900 -nopw &
sleep 2
websockify --web=/usr/share/novnc 6080 localhost:5900 &
sleep 2
echo "VNC Started!"
pgrep -a Xvfb && echo "✅ Xvfb OK"
pgrep -a x11vnc && echo "✅ VNC OK"
pgrep -f websockify && echo "✅ noVNC OK"