Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Setting up ssh and wifi on first Raspbian Strech Lite boot

Raspbian Strech Lite Quick setup

In order to enable SSH and wifi on first boot we need to add two files to the root folder on the SD card before inserting it into the raspberry.

First, create an empty file named ssh. Then, create a second file called wpa_supplicant.conf. The contents of this file should be

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

followed by the result of the command wpa_passphrase [WIFI-NAME] [PASSWORD].

For example:

$ cat wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

Now eject the SD card from your computer, insert it into the raspberry and 💥!


This comment has been minimized.

Copy link
Owner Author

@caike caike commented Oct 9, 2017

In case you don't have access to a Linux machine in order to run wpa_passphrase, see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.