mirror of
https://github.com/iv-org/youtube-trusted-session-generator.git
synced 2025-01-15 16:12:21 +01:00
15 lines
338 B
Bash
15 lines
338 B
Bash
|
#!/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
|