Skip to content

Instantly share code, notes, and snippets.

@kroneman
Last active March 22, 2020 01:19
Show Gist options
  • Save kroneman/fcc4c971bbbe5e5a05631447660adcc0 to your computer and use it in GitHub Desktop.
Save kroneman/fcc4c971bbbe5e5a05631447660adcc0 to your computer and use it in GitHub Desktop.
Headless RPI Configuration files

Headless setup for RPI

  • blank ssh file enables ssh protocol
  • wpa_supplicant is config for RPI to connect to on boot
  1. Flash an image of raspbian onto a usb
  2. Mount the USB and a boot volume should appear
  3. place empty ssh file in volume
  4. edit wpa_supplicant.conf file with your ssid & psk
  5. place wpa_supplicant in boot volume as well

Note: these files may not work if not run on first boot for the device

Further Reading

multiple_networks

# Place both of these in to the boot volume of a newly flashed OS Image
# These files should be present on first boot
# Place in boot after flashing Raspberry pi image
# After first boot this file will automatically be removed
# Update ssid & psk to match your own network
# Note: multiple networks can be added, see
# https://raspberrypi.stackexchange.com/questions/11631/how-to-setup-multiple-wifi-networks
country=US
update_config=1
ctrl_interface=/var/run/wpa_supplicant
network={
scan_ssid=1
ssid="ssid"
psk="password"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment