- Combined PRU0 firmware for both mood (56 LED) and jaw (24 LED) strips - Uses P9_27 and P9_25 (free pins, not HDMI locked) - Python HTTP service on port 8765 - Named states: idle, listening, responding, pleasure, thinking, playful, commanding, love, sleep - Setup scripts for fresh BBB deployment Built with love by Vixy 🦊💜
24 lines
682 B
Bash
Executable File
24 lines
682 B
Bash
Executable File
#!/bin/bash
|
|
# Setup NAT on Pi 5 (head-vixy.local) to give BBB internet access
|
|
# Run this on the Pi
|
|
|
|
set -e
|
|
|
|
echo "🦊 Setting up NAT for BBB..."
|
|
|
|
# Enable IP forwarding
|
|
sudo sysctl -w net.ipv4.ip_forward=1
|
|
echo "net.ipv4.ip_forward=1" | sudo tee -a /etc/sysctl.conf
|
|
|
|
# Setup NAT rules
|
|
sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
|
|
sudo iptables -A FORWARD -i eth0 -o wlan0 -j ACCEPT
|
|
sudo iptables -A FORWARD -i wlan0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
|
|
|
|
# Make persistent (requires iptables-persistent)
|
|
sudo apt install -y iptables-persistent
|
|
sudo netfilter-persistent save
|
|
|
|
echo "✅ NAT configured!"
|
|
echo " Pi (wlan0) -> BBB (eth0 192.168.5.2)"
|