Skip to content

Instantly share code, notes, and snippets.

@ciekawy
Last active January 17, 2017 19:15
Show Gist options
  • Save ciekawy/c1de63439a3c9833e2b3c1d84d728468 to your computer and use it in GitHub Desktop.
Save ciekawy/c1de63439a3c9833e2b3c1d84d728468 to your computer and use it in GitHub Desktop.

Raspberry Pi 3 headless wifi AP

this is a quick checklist, detailed description provided in the urls

  • write raspbian ISO image with pv/dd to microSD
  • mount ROOT and boot
  • touch /boot/ssh to enable ssh (important new req)
  • follow below steps described here in details
  • move /etc/init.d/rc2.d/K*ssh to S*ssh
  • edit /etc/wpa_supplicant/wpa_supplicant.conf and provide network {} section with AP SSID and password RPi should connect to
  • boot RPi
  • use nmap -sP <existing-network>/24 to find the IP, ssh to user pi@<found-address> and default rasbpian password
  • change the pi password (and possibly create own user)
  • install hostapd & udhcpd
  • prepare appropriate configs as described here:
  • /etc/network/interfaces
  • /etc/hostapd/hostapd.conf
  • /etc/udhcpd.conf
  • update /etc/default/udhcpd & /etc/default/hostapd to enable deamons
  • service enable udhcpd & hostapd
  • update the udev rules to keep persist the wlan* network interfaces
  • /etc/iptables* (with an appropriate convention)

other things:

all below possibly as a docker instances with separated config volume

  • move the hostapd config to docker
  • configure openvpn as a docker
  • install shairport to enable apple AirPlay
  • install as a docker dnsmasq, BIND or PowerDNS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment