GShellAutomator/colab_automator.sh

26 lines
700 B
Bash
Raw Normal View History

#!/bin/bash
#change mac
sudo ip link set wlp3s0 down
sudo macchanger -r wlp3s0
sudo ip link set wlp3s0 up
#Start xephyr window
Xephyr -br -ac -noreset -screen 800x600 :1 &
# Start a copyq server, that will be used to copy the email and password of the obtained account from the clipboard of Xephyr
DISPLAY=:1 copyq &
# sleep 5
#Start chrome
#--proxy-server=socks5://127.0.0.1:9050
DISPLAY=:1 /usr/bin/google-chrome-stable --user-data-dir='./chrome-profile' --no-first-run &
#Wait enough to let chrome start up
sleep 5
#Now start the actual bot, we're in a safe environment
source venv/bin/activate #switch to virtual env
DISPLAY=:1 python main.py
# Clear chrome profile
rm -rf ./chrome-profile