Giter Site home page Giter Site logo

Ai enabling about pwnagotchi HOT 7 OPEN

OutsiderSV avatar OutsiderSV commented on June 16, 2024
Ai enabling

from pwnagotchi.

Comments (7)

gagregrog avatar gagregrog commented on June 16, 2024 1

@OutsiderSV likely it is still building when you leave it there even though it doesn't look like anything is happening. The pi zero is resource constrained, so building the wheel will take ages.

My advice: increase swapsize and build in verbose mode.

Here's some notes I wrote when I got v1.5.5 working on my pi0:

Increase Swapfile

Downloading numpy will require it to compile on the RPi which will take a very long time. In order not to go insane we need to bump the swapfile so that the Pi has more memory. The process outlined below comes from here.

  1. Stop the swap: sudo dphys-swapfile swapoff
  2. Change the CONF_SWAPSIZE from CONF_SWAPSIZE=100 to CONF_SWAPSIZE=1024 in sudo nano /etc/dphys-swapfile
  3. Initialize the swapfile with sudo dphys-swapfile setup
  4. Start the swap with sudo dphys-swapfile swapon

After building numpy go back and set the swap back to 100.

Upgrade numpy

Now that we have increased the swapsize we can finally upgrade numpy. This will take a very long time, so make sure to install it using --verbose so that we can monitor the progress.

  1. SSH into the pi
  2. Start a screen session so that if we get disconnected for some reason we can get back into it: screen bash (to exit, ctrl-a and then d. To rejoin screen -r. To kill the session ctrl-d)
  3. Start the install: sudo pip3 install --verbose --upgrade numpy --no-cache-dir
  4. Once it successfully installs, go back and reset the swap size

You should be good to go now!
Restart the service and boot it into Auto mode and watch the logs and you should see that the AI model now loads after about 20 minutes: sudo touch /root/.pwnagotchi-auto && systemctl restart pwnagotchi && tail -f /var/log/pwnagotchi.log

from pwnagotchi.

kontrakote avatar kontrakote commented on June 16, 2024

What RPi do you use?

from pwnagotchi.

OutsiderSV avatar OutsiderSV commented on June 16, 2024

What RPi do you use?

Sorry I have a RPi 0 WH
with a waveshare v4
and pisugar 3

from pwnagotchi.

kontrakote avatar kontrakote commented on June 16, 2024

So strange. 1.5.6 beta v2 should work on RPi 0 WH.

from pwnagotchi.

OutsiderSV avatar OutsiderSV commented on June 16, 2024

So strange. 1.5.6 beta v2 should work on RPi 0 WH.

when I do the beta v2 it doesnt scan networks at all and the bottom left displays 0(0) and never updates

from pwnagotchi.

Yzord avatar Yzord commented on June 16, 2024

So strange. 1.5.6 beta v2 should work on RPi 0 WH.

when I do the beta v2 it doesnt scan networks at all and the bottom left displays 0(0) and never updates

Are you in AUTO mode?

from pwnagotchi.

renewedbullet avatar renewedbullet commented on June 16, 2024

What RPi do you use?

Sorry I have a RPi 0 WH with a waveshare v4 and pisugar 3

should look at some of the newer pwnagotchi repos 2.6.4 torch in mind

from pwnagotchi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.