youtube-trusted-session-gen.../docker/scripts/startup-webserver.sh

15 lines
338 B
Bash
Raw Normal View History

2024-11-17 15:52:07 +01:00
#!/bin/sh
echo "[INFO] internally launching GUI (X11 environment)"
XVFB_WHD=${XVFB_WHD:-1280x720x16}
echo "[INFO] starting Xvfb"
Xvfb :99 -ac -screen 0 $XVFB_WHD -nolisten tcp > /dev/null 2>&1 &
sleep 2
echo "[INFO] launching chromium instance"
# Run python script on display 0
DISPLAY=:99 python potoken-generator.py --bind 0.0.0.0