Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 30 lines (20 sloc) 806 Bytes
# update the packages (may take a long time)
sudo apt-get update && sudo apt-get -y upgrade
# install prerequisite software
sudo apt-get install -y hostapd dnsmasq
# give the Pi a static IP address
sudo ifconfig wlan0
# modify the network interface config file to support AP mode
sudo python
# copy in our hostapd configuration file
sudo cp conf/hostapd.conf /etc/hostapd/hostapd.conf
# copy in our hostapd init script
sudo cp conf/hostapd /etc/default/hostapd
# copy in our dnsmasq configuration file
sudo cp conf/dnsmasq.conf /etc/dnsmasq.conf
# start the hostapd and dnsmasq services
sudo service hostapd start
sudo service dnsmasq start
# set the hostapd and dnsmasq services to autostart
sudo update-rc.d hostapd enable
sudo update-rc.d dnsmasq enable
Something went wrong with that request. Please try again.