Skip to content

Instantly share code, notes, and snippets.

@fishd72
Created April 7, 2023 17:14
Show Gist options
  • Save fishd72/d3518ef40479a9272f2bd6c425b7af07 to your computer and use it in GitHub Desktop.
Save fishd72/d3518ef40479a9272f2bd6c425b7af07 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd /usr/local/src/pwnagotchi
sudo git pull
sudo mkdir /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/libs/waveshare/v3/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/display.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/__init__.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/libs/waveshare/v3/epd2in13_V3.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/libs/waveshare/v3/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/libs/waveshare/v3/epdconfig.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/libs/waveshare/v3/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/waveshare3.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/utils.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/waveshare35lcd.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/
@k7n8ie
Copy link

k7n8ie commented Nov 11, 2024

i'm gettin this error:

root@pwnagotchi:/usr/local/src/pwnagotchi# cd /usr/local/src/pwnagotchi

sudo git pull

sudo mkdir /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/libs/waveshare/v3/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/display.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/init.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/libs/waveshare/v3/epd2in13_V3.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/libs/waveshare/v3/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/libs/waveshare/v3/epdconfig.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/libs/waveshare/v3/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/waveshare3.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/utils.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/
sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/waveshare35lcd.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/
fatal: not a git repository (or any of the parent directories): .git
mkdir: cannot create directory ‘/usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/libs/waveshare/v3/’: No such file or directory
cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/display.py': No such file or directory
cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/init.py': No such file or directory
cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/libs/waveshare/v3/epd2in13_V3.py': No such file or directory
cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/libs/waveshare/v3/epdconfig.py': No such file or directory
cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/waveshare3.py': No such file or directory
cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/utils.py': No such file or directory
cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/waveshare35lcd.py': No such file or directory
fatal: not a git repository (or any of the parent directories): .git
mkdir: cannot create directory ‘/usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/libs/waveshare/v3/’: No such file or directory
cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/display.py': No such file or directory
cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/init.py': No such file or directory
cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/libs/waveshare/v3/epd2in13_V3.py': No such file or directory
cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/libs/waveshare/v3/epdconfig.py': No such file or directory
cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/waveshare3.py': No such file or directory
cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/utils.py': No such file or directory
cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/waveshare35lcd.py': No such file or directory
-bash: syntax error near unexpected token `('
-bash: mkdir:: command not found
-bash: cp:: command not found
-bash: cp:: command not found
-bash: cp:: command not found
-bash: cp:: command not found
-bash: cp:: command not found
-bash: cp:: command not found
-bash: cp:: command not found

please Help ...

@wpa-2
Copy link

wpa-2 commented Nov 11, 2024

i'm gettin this error:

root@pwnagotchi:/usr/local/src/pwnagotchi# cd /usr/local/src/pwnagotchi

sudo git pull

sudo mkdir /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/libs/waveshare/v3/ sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/display.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/ sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/init.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/ sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/libs/waveshare/v3/epd2in13_V3.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/libs/waveshare/v3/ sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/libs/waveshare/v3/epdconfig.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/libs/waveshare/v3/ sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/waveshare3.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/ sudo cp /usr/local/src/pwnagotchi/pwnagotchi/utils.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ sudo cp /usr/local/src/pwnagotchi/pwnagotchi/ui/hw/waveshare35lcd.py /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/ fatal: not a git repository (or any of the parent directories): .git mkdir: cannot create directory ‘/usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/libs/waveshare/v3/’: No such file or directory cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/display.py': No such file or directory cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/init.py': No such file or directory cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/libs/waveshare/v3/epd2in13_V3.py': No such file or directory cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/libs/waveshare/v3/epdconfig.py': No such file or directory cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/waveshare3.py': No such file or directory cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/utils.py': No such file or directory cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/waveshare35lcd.py': No such file or directory fatal: not a git repository (or any of the parent directories): .git mkdir: cannot create directory ‘/usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/hw/libs/waveshare/v3/’: No such file or directory cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/display.py': No such file or directory cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/init.py': No such file or directory cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/libs/waveshare/v3/epd2in13_V3.py': No such file or directory cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/libs/waveshare/v3/epdconfig.py': No such file or directory cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/waveshare3.py': No such file or directory cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/utils.py': No such file or directory cp: cannot stat '/usr/local/src/pwnagotchi/pwnagotchi/ui/hw/waveshare35lcd.py': No such file or directory -bash: syntax error near unexpected token `(' -bash: mkdir:: command not found -bash: cp:: command not found -bash: cp:: command not found -bash: cp:: command not found -bash: cp:: command not found -bash: cp:: command not found -bash: cp:: command not found -bash: cp:: command not found

please Help ...

Not sure what your trying to do here but the newer upto date pwnagotchi works fine with the waveshare screens.

@k7n8ie
Copy link

k7n8ie commented Nov 11, 2024

Trying to follw Xyl0se's guide to auto update the drivers. i have a wavshare 2.13inch Rev.2.1 V4 and its not working...

@wpa-2
Copy link

wpa-2 commented Nov 11, 2024

What image are you flashing

@k7n8ie
Copy link

k7n8ie commented Nov 11, 2024

The wrong one 🙈 V3.
How do I get the V4 running? Until know it's not working.

Thank you

@wpa-2
Copy link

wpa-2 commented Nov 11, 2024

Pwnagotchi.org

@k7n8ie
Copy link

k7n8ie commented Nov 11, 2024

I know that guide. Followed already. Display setting enabled = true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment