#!/bin/bash Xvfb -screen 0 1280x720x16 -ac & sleep 5 env DISPLAY=:0.0 x11vnc -noxrecord -noxfixes -noxdamage -forever -display :0 > /dev/null 2> /dev/null & touch /home/user/.Xauthority DISPLAY=:0 Xephyr -screen 800x600 :1 & sleep 2 echo "[*] Now starting the actual script" #Now start the actual bot, we're in a safe environment DISPLAY=:0 python3 -u /home/user/code/main.py