- Download the image
- Flash the image to your microSD using Etcher
- Unmount/remount the microSD as necessary
- For wi-fi, add a file to the root folder named
wpa_supplicant.conf
- Content can be generated using
read -p "SSID: " ssid read -s -p "Passphrase: " passphrase psk=$(wpa_passphrase $ssid $passphrase) echo "country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 $(echo "$psk" | grep -v '#psk')" > wpa_supplicant.conf
- Content can be generated using
- For SSH, add an empty file to the root folder named
ssh
:- Simply run
touch ssh
- Simply run
- Unmount the card, and boot the device.
- After it boots, you should be able to log in using the default username/password
pi
/raspberry
- Make sure to change the default password after logging in
- Run updates
sudo apt-get update -y
sudo apt-get upgrade -y
Created
March 22, 2018 22:07
-
-
Save angrychimp/c6ea75ab6447c9f36a5a8d7db9f41935 to your computer and use it in GitHub Desktop.
How to get wi-fi and SSH working via image adjustments prior to a first boot.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment