Git Product home page Git Product logo

rpi-setup's Introduction

Raspberry Pi Setup

Scripts for setting up the Raspberry Pi for running zbwardrive

Contents

  • bt.py runs in the background and manages Bluetooth data transfer.
  • zbwardrive.sh runs zbwardrive with useful parameters and outputs log data to /tmp/
  • setup.sh contains commands to install required dependencies and copy files to the right places
  • iot-setup is put in init.d and run on boot, starting the bt.py and zbwardrive.sh scripts

Usage

From a Pre-Built Image

Copy the disk image to the sdcard. Be careful not to overwrite the wrong device.

$ sudo dd bs=4m if=/path/to/wardriver.iso of=<Device>

For example, if my sdcard was mapped to /dev/disk7 and I saved the disk image to /tmp/, then I would run the command:

$ sudo dd bs=4m if=/tmp/wardriver.iso of=/dev/disk7

Remember to change the default credentials!

From Scratch

Install Raspbian to your sdcard. The lite version works fine, and setup has been tested with jessie-lite. Set up wifi using the official documentation or by following the community instructions or connect to Ethernet.

After setting up the bare image, ssh into the device or connect physically. Copy the repository (via git or wget) into the pi and run setup.sh as root:

$ wget https://github.com/JDongian/rpi-setup/archive/master.zip
$ unzip master.zip
$ sudo su
# ./rpi-setup-master/rpi/setup.sh

This will set up required dependencies for zbwardrive and Bluetooth. Additionally, it will add a service that starts on boot. After installation, the Raspberry Pi will run a Bluetooth daemon that tries to connect to an appropriate Android device. The Bluetooth daemon will talk to the Android application and the zbwardrive process, which is also started on boot.

rpi-setup's People

Contributors

dsimmons05 avatar jdongian avatar

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.