#!/bin/bash # Start Virtual Display Xvfb :99 -screen 0 1280x720x16 & export DISPLAY=:99 # Start VNC Server (Broadcast only) # -viewonly prevents visitors from clicking or typing x11vnc -display :99 -viewonly -forever -shared -nopw & # Start noVNC bridge to port 7860 /usr/share/novnc/utils/launch.sh --vnc localhost:5900 --listen 7860 & # Launch an xterm window to show the AI's "Brain" logs to viewers xterm -geometry 80x24+0+0 -e "tail -f bot.log" & # Start the Bot node bot.js > bot.log 2>&1