29 lines
994 B
Bash
29 lines
994 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# kill -9 $(pidof python)
|
||
|
|
||
|
source venv/bin/activate #switch to virtual env
|
||
|
|
||
|
# install and update requirements
|
||
|
pip install -r requirements.txt > /dev/null 2> /dev/null
|
||
|
|
||
|
#Start xephyr window
|
||
|
echo "[*] Starting Xephyr on :1"
|
||
|
Xephyr -br -ac -noreset -screen 1280x720 :1 > /dev/null 2> /dev/null &
|
||
|
sleep 5
|
||
|
echo "[*] Starting Xephyr on :2, contained inside :1"
|
||
|
DISPLAY=:1 Xephyr -br -ac -noreset -screen 800x600 :2 > /dev/null 2> /dev/null&
|
||
|
sleep 5
|
||
|
# Start a copyq server, that will be used to copy the email and password of the obtained account from the clipboard of Xephyr
|
||
|
#echo "[*] Starting copyq server on :2"
|
||
|
#DISPLAY=:2 copyq > /dev/null 2> /dev/null&
|
||
|
|
||
|
#set the kbd layout to the same of :0, otherwise sometimes we get mismatched letters
|
||
|
#setxkbmap -display :0 -print | xkbcomp - :1 > /dev/null 2> /dev/null&
|
||
|
# xkbcomp :0 :1
|
||
|
# xkbcomp :0 :2
|
||
|
|
||
|
sleep 2
|
||
|
echo "[*] Now starting the actual script"
|
||
|
#Now start the actual bot, we're in a safe environment
|
||
|
DISPLAY=:1 python src/main.py
|