forked from learningequality/ka-lite-config-pi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.sh
More file actions
executable file
·29 lines (20 loc) · 809 Bytes
/
configure.sh
File metadata and controls
executable file
·29 lines (20 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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 172.27.0.1
# modify the network interface config file to support AP mode
sudo python configure_network_interfaces.py
# 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