Setup an access point on a Raspberry Pi using only the necessary packages. Previous projects used Hydrosys to achieve this so I built this to make it easier.
This code was based on this tutorial
- Setup the Pi
ssh
into the Pi- Clone the repo:
git clone https://github.com/dhs-envirotech/accesspoint.git
- Install the software necessary
sudo bash install.sh
- Configure
This setup script always sets the password to the lowercase version of the provided SSID. Spaces & dashes will be removed from the password
Make sure to note down the credentials the script spits out at the end.
sudo python3 configure.py
sudo reboot now
to restart the computer and initialize the access point.- After the Pi boots, your computer should list a new network. Connect to it with the credentials from step 5. Then,
ssh
into it.
- You can toggle the access point with
sudo python3 ap.py on|off
- You can reconfigure by just running the script again. It will overwrite changes.
hostapd
&dnsmasq
: These packages are installable throughapt
and are system daemons related to the access point.install.sh
: Updates the Pi, installs necessary libraries/packages, enableshostapd
, and prepares for the Python script.