Here's the installation steps I took to install Hermione from scratch today.
Finally, to make her a WAP:
- Use Etcher to write the SD card with the latest Raspian Jessie Lite image
- In windows in the root directory of the SD card, create an SSH file to enable it
echo hello > ssh
- Boot up your RPi with SD card, keyboard, mouse, monitor and WAP / soft AP supporting WiFi dongle installed (no WiFi dongle needed for 3B and Zero-W)
- raspi-config to set hostname, GPU memory (128MB), enable I2C, overclock to 1GHz, disable overscan, disable serial UART, enable camera support and SSH server. Do this incrementally to make sure each change takes effect in /boot/config.txt
- Set up a WiFi internet connection from the CLI as per https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md.
- sudo apt-get update
- sudo apt-get dist-upgrade
- sudo apt-get install i2c-tools python-smbus python-dev python-setuptools python-picamera python-gps git ftp udhcpd hostapd
- edit /boot/config.txt adding
- while in /boot/config.txt, disable pointless functions thus
- If you are using a Pi3 or Zero-W, you may want to disable Bluetooth in /etc/modprobe.d/raspi-blacklist.conf thus:
# blacklist brcmfmac
# blacklist brcmutil
git clone https://github.com/pyhys/minimalmodbus
sudo python ./setup install
- git clone -b v2 https://github.com/metachris/RPIO
- cd RPIO
- check mailbox.c code present in source/c_pwm/mailbox.c)
- sudo python ./setup.py install
- cd ~
- git clone https://github.com/PiStuffing/Quadcopter
- cp Quadcopter/qc.py .
- cp Quadcopter/fp.csv .
- cp Quadcopter/Quadcopter.py .
- sudo python ./qc.py
- Disable the new style network tools:
sudo apt-get remove dhcpcd5 raspberrypi-net-mods
- Configure hostapd by creating /etc/hostapd/hostapd.conf "sudo vi /etc/hostapd/hostapd.conf" and add the following:
- Enable hostapd by editing /etc/default/hostapd thus, adding
- We next need to configure dhcp for the clients accessing the network to provide their IP addresses - edit /etc/udhcpd.conf adding:
start 192.168.42.20 # This is the range of IPs that the hostspot will give to client devices.
interface wlan0 # The device uDHCP listens on.
opt domain local
# opt dns 220.127.116.11 18.104.22.168 # The DNS servers client devices will use.
opt subnet 255.255.255.0
opt router 192.168.42.1 # The Pi's IP address on wlan0 which we have set up.
opt lease 864000 # 10 day DHCP lease time in seconds
- Enable dhcp by editing /etc/default/udhcpd thus to comment out the line
- Now to configure the WAP static IP address - "sudo vi /etc/network/interfaces", adding the static IP address for wlan0 and commenting out anything related to the dynamic address.
iface wlan0 inet static
#iface wlan0 inet manual
# wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#iface default inet dhcp
- Edit /etc/hostname to ensure the domain name is included - in my case, the domain is called local, and the hostname is wappi, so /etc/hosts reads
- Next assign static IP address for the server in /etc/hosts
192.168.42.1 wappi.local wappi
- Check, double check, and triple check that you've done all the above steps, and then finally
BACK OUT THE CHANGES TO THE FOLLOWING FILES FOR INTERNET ACCESS UPGRADES ETC