From 88c26c969fe6993c8456d1f7f3ca52b4409dbc99 Mon Sep 17 00:00:00 2001 From: dhruv Date: Tue, 11 Nov 2025 22:23:43 +0530 Subject: [PATCH] Add setup_v2.sh --- setup_v2.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 setup_v2.sh diff --git a/setup_v2.sh b/setup_v2.sh new file mode 100644 index 0000000..da8d669 --- /dev/null +++ b/setup_v2.sh @@ -0,0 +1,36 @@ +# 1) OS deps for PyAutoGUI (Linux) +sudo apt update && sudo apt install -y python3.10 python3.10-venv python3-tk python3-dev scrot + +# create & use global venv (~/.venvs/httprd310) with Python 3.10 +ENV_DIR="$HOME/.venvs/httprd310" +python3.10 -m venv "$ENV_DIR" +source "$ENV_DIR/bin/activate" +python -m pip install --upgrade pip + + + +# 2) Python deps (run inside your httprd folder) +pip install -r requirements.txt + + + + +# 4) From viewer machine, open in browser: +# http://:7417 +hostname -I | awk '{print $1}' # (shows server IP) + + + + +sudo ufw allow 7417/tcp # open firewall if needed + + +pip install aiohttp + + +# (optional quick run) +python httprd.py + + +# 3) Run the server (set your passwords) +# python httprd.py --port 7417 --password 'CONTROL123' --view_password 'VIEW123' \ No newline at end of file