Skip to content

Instantly share code, notes, and snippets.

@hamidzr
Last active November 22, 2018 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hamidzr/b81f252a81283a2d68fbd06140ac1f9d to your computer and use it in GitHub Desktop.
Save hamidzr/b81f252a81283a2d68fbd06140ac1f9d to your computer and use it in GitHub Desktop.
Raspbian stretch headless ssh and wifi setup

Raspbian Strech headless setup

  1. mount the boot partition and not the /boot directory.
  2. cd and create the following two files in the root of that boot partition.
  3. touch ssh creates an empty file to enable ssh
  4. vim wpa_supplicant.conf to configure wifi and put following in it
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="your_real_wifi_ssid"
    scan_ssid=1
    psk="your_real_password"
    key_mgmt=WPA-PSK
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment