Skip to content

Instantly share code, notes, and snippets.

@danielbank
Last active September 22, 2019 02:21
Show Gist options
  • Select an option

  • Save danielbank/51ce4f0441812985bc36726c6a3f1730 to your computer and use it in GitHub Desktop.

Select an option

Save danielbank/51ce4f0441812985bc36726c6a3f1730 to your computer and use it in GitHub Desktop.
Setup WiFi on Raspberry Pi without Peripherals

Steps

  • Go to the boot drive: cd /Volumes/boot
  • Create the two files on the boot drive: touch wpa_supplicant.conf && touch ssh
  • Edit wpa_supplicant.conf
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
    ssid="<Your wifi network name>"
    psk="<Your wifi network password>"
    scan_ssid=1
    key_mgmt=WPA-PSK
}
  • Files are deleted after the device boots up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment