Skip to content

Instantly share code, notes, and snippets.

@elalemanyo
Last active September 23, 2018 12:23
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 elalemanyo/9419594409e939159e985862416edbb7 to your computer and use it in GitHub Desktop.
Save elalemanyo/9419594409e939159e985862416edbb7 to your computer and use it in GitHub Desktop.
Headless Raspberry PI + SSH + Wifi (Raspbian Stretch)

1. Burn the Raspbian image to the SD card

2. Enable ssh

For security reasons, ssh is no longer enabled by default. To enable it you need to place an empty filed named ssh (no extension) in the root of the boot disk. touch /Volumes/boot/ssh

3. Add network info

Create a file in the root of boot called: wpa_supplicant.conf. Then paste the following into it:

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="NETWORK-NAME"
    psk="NETWORK-PASSWORD"
}

4. Eject the micro SD card

5. Boot the Raspberry Pi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment