Skip to content

dhs-envirotech/accesspoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

accesspoint

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

Usage

  1. Setup the Pi
  2. ssh into the Pi
  3. Clone the repo:
git clone https://github.com/dhs-envirotech/accesspoint.git
  1. Install the software necessary
sudo bash install.sh
  1. 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
  1. sudo reboot now to restart the computer and initialize the access point.
  2. After the Pi boots, your computer should list a new network. Connect to it with the credentials from step 5. Then, ssh into it.

Other notes:

  • 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.

Technologies & Scripts

  • hostapd & dnsmasq: These packages are installable through apt and are system daemons related to the access point.
  • install.sh: Updates the Pi, installs necessary libraries/packages, enables hostapd, and prepares for the Python script.