PiVision_tools
Description
Tools for Automatic Training Data Generation using a Raspberry Pi
WiFi Router Setup Script for Raspberry Pi Zero 2 W
Description
The script sets up the Raspberry Pi to function as a WiFi access point using hostapd
and dnsmasq
for managing connections and DHCP respectively. It configures iptables
to handle network routing and masquerading, ensuring devices connected to the Pi can access the internet through its network interface.
Requirements
- Raspberry Pi Zero 2 W
- Raspberry Pi OS Lite 64-bit (2024-07-04 release)
- Internet connection to download necessary packages
- SSH or direct access to the terminal
Usage
- Make the script executable:
chmod +x setup_wifi_router.sh
- Run the script with sudo and provide your desired SSID and password:
sudo ./setup_wifi_router.sh "YourSSID" "YourStrongPassword"
- Reboot