######################################################## sudo nano /usr/local/share/bettercap/caplets/http-ui.cap set api.rest.username pwnagotchi set api.rest.password pwnagotchi ## this will install the requirements and pwnagotchi itself cd pwnagotchi-1.5.3/ echo "werkzeug==0.16.1" >> requirements.txt echo "imutils==0.5.3" >> requirements.txt echo "opencv-python==3.4.10.37" >> requirements.txt Install Python 3.7.x Add the repo for Python3.7: sudo nano /etc/apt/sources.list ADD to bottom: deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal main deb-src http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal main sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA6932366A755776 sudo apt-get update sudo apt-get install -y python3.7 python3.7-dev python3.7-distutils Update some Python3.7 modules sudo python3.7 -m pip install --upgrade pip sudo python3.7 -m pip install --upgrade wheel sudo python3.7 -m pip install --upgrade setuptools Install gdown to download the whl file from Google Drive: python3.7 -m pip install gdown sudo cp ~/.local/bin/gdown /usr/local/bin/gdown Download and install tensorflow: cd ~/ gdown https://drive.google.com/uc?id=1D9IT2WC2mrWOixsNKohxiJJIlY2IzmQQ sudo python3.7 -m pip install tensorflow-1.15.0-cp35-cp35m-linux_aarch64.whl ####Due to a recent change to gfortran version 10, building scipy v1.3.1 will fail when using any 10.x version. ####Let's setup to use gfortran-9 by default instead ####https://raw.githubusercontent.com/PINTO0309/Tensorflow-bin/master/ sudo unlink /usr/bin/gcc sudo ln -s /usr/bin/gcc-10 /usr/bin/gcc sudo unlink /usr/bin/gfortran sudo ln -s /usr/bin/gfortran-10 /usr/bin/gfortran cd pwnagotchi-1.5.3 ###################################################### sudo nano requirements.txt ####Set tensorflow version to 1.15.0 and tensorflow-estimator version to 1.15.1 ####If you have issues building scipy v1.3.1, Remove version hard-coding for: numpy ####This will install the latest versions of those modules. After swapping to gfrotran v9.x, I had no issues with scipy v1.3.1. ####On pi's with less than 1gb ram we should expand the swapfile. sudo dphys-swapfile swapoff sudo nano /etc/dphys-swapfile CONF_SWAPSIZE=1024 sudo dphys-swapfile setup sudo dphys-swapfile swapon sudo reboot ####Last few bits needed to get through requirements.txt sudo apt-get install python3-opencv pip install scikit-build pip install cython sudo apt install cmake pip uninstall numpy sudo pip install numpy --upgrade wget http://old.kali.org/kali/pool/main/libp/libpcap/libpcap0.8_1.9.1-4_arm64.deb dpkg -i libpcap0.8_1.9.1-4_arm64.deb pip install protobuf==3.19.???? ############################################################### sudo python3.7 -m pip install -r requirements.txt sudo python3.7 -m pip install . sudo systemctl enable bettercap pwngrid-peer pwnagotchi Fix permissions errors sudo chmod 755 /usr/bin/bettercap sudo chown root:root /usr/bin/bettercap sudo chmod 755 /usr/bin/bettercap-launcher sudo chmod 755 /usr/bin/pwngrid sudo chown root:root /usr/bin/pwngrid sudo chmod 755 /usr/local/bin/pwnagotchi sudo chown root:root /usr/local/bin/pwnagotchi sudo chmod 711 /usr/bin/pwnagotchi-launcher sudo chmod +x /usr/bin/monstart sudo chmod +x /usr/bin/monstop sudo chmod +x /etc/systemd/system/pwnagotchi.service sudo chmod +x /etc/systemd/system/pwngrid-peer.service sudo cp /etc/pwnagotchi/default.toml /etc/pwnagotchi/config.toml sudo nano /etc/pwnagotchi/config.toml ui.display.enabled = false