/RaspberryPi

Various Raspberry Pi Scripts and programs

Primary LanguageShellMIT LicenseMIT

This project originally started as tooling to configure a Raspberry Pi Zero as an ethernet gadget to simplify Pi Zero software development. It now contains a couple realitively unrelated sets of tools

ISSUES

  1. This restores the legacy default user. That is a security risk. Remove or replace userconf.txt to if you do not want this behavior.

Setup

Steps on your PC Use these scripts to copy scripts to the SD card and make configuration changes required to enable the USB network gadget

  1. Create an SD card and provision tools onto it.
  2. Remove and re-insert the sd card to mount it in windows
  3. Run the Enable-Ethernet-Gadget.ps1
    1. Enables SSH and Wifi and possibly the Rasbery pi Supplement
    2. Enables the Ethernet gadget for Ethernet over USB
    3. Copies scripts to /boot
  4. Eject and put card in Raspberry pi and boot

Steps on your Raspberry Pi The .sh scripts in this project should be available to you on your new Pi in /boot. They will have been copied to the new Raspberry Pi.

  1. Creates a unique hostname based on ethernet
  2. Wireless firewall lock down to only allow ssh over hardwire

This repository

Available functionality with files Target Machine environment
Enable SSH. Enable Wifi Supplicant. All - Fresh OS SD cards OS Card Burning
Raspberry Pi Zero Ethernet Gadget - use networking over USB Raspberry Pi Zero - Fresh SD cards OS Card Burning
AWS AVS SDK and Sample - Voice recognition using AVS - also Google Raspberry Pi 3 and up, Pi Zero On the Pi
Utilities including custom host names Machines with Networking On the Pi
Utilities including wireless firewall restrictions Machines with wireless On the Pi
Hacking Aircrack installation Machines with wireless On the Pi

Script Flow

Videos on YouTube

  1. Scripted Install of Amazon Voice Services on a Raspberry Pi
  2. Running Amazon AVS on a Raspberry Pi with Google AIY Hardware
  3. Remote development on a headless Raspberry Pi with Visual studio Code
  4. Build a Raspberry Pi image for the Ethernet Gadget

Other References

  1. Setting up the Raspberry Pi Zero without HDMI or OTG
  2. Protecting the Pi: Restricting SSH to hardwire connections
  3. Minor hints on the Windows RNDIS driver