Skip to content

Instantly share code, notes, and snippets.

@aerobless
Last active April 3, 2017 15:57
Show Gist options
  • Save aerobless/32257e55e24ce262c0898c430f400537 to your computer and use it in GitHub Desktop.
Save aerobless/32257e55e24ce262c0898c430f400537 to your computer and use it in GitHub Desktop.
Raspberry Pi: Headless Wifi Configuration for the first boot

Raspberry Pi: Headless Wifi Configuration for the first boot

  1. Download the latest Raspbian. Get the "lite" image if you don't require a GUI.

  2. Burn the image to your SD card as you normally would depending on your OS. Etcher is a good tool for all systems.

  3. Open the boot volume in finder and create a new file called "wpa_supplicant.conf".

  4. Write your network config like this: (That's for WPA2 Personal with AES)

    network={
        ssid="YOUR_SSID"
        psk="YOUR_PASSWORD"
        proto=RSN
        key_mgmt=WPA-PSK
    	pairwise=CCMP
        auth_alg=OPEN
    }
    
  5. When using Raspbian lite, enable SSH by placing a file named "ssh" into the boot volume.

  6. Use a network scanner to find the IP of your raspberry and connect to it via ssh
    Username: pi Password: raspberry - (Don't forget to change the default password with passwd.)

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