#!/bin/bash # 1. Start Virtual Monitor Xvfb :1 -screen 0 1440x960x24 & export DISPLAY=:1 # 2. Wait 1 second for the monitor to wake up (Prevents crashing) sleep 1 # 3. Start Window Manager fluxbox & # 4. Start your App python main.py & # 5. Start VNC Server x11vnc -display :1 -nopw -forever -quiet & # 6. Start NoVNC /usr/share/novnc/utils/launch.sh --vnc localhost:5900 --listen 7860