Last active
January 14, 2019 09:27
-
-
Save Terrabits/e1620e00695545f6ceec9f2b0525271d to your computer and use it in GitHub Desktop.
Raspbian WiFi and SSH for headless install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Enable SSH | |
touch /Volumes/boot/ssh | |
# Set up WiFi | |
cat << EOF > /Volumes/boot/wpa_supplicant.conf | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
network={ | |
ssid="YOUR_SSID" | |
psk="YOUR_WIFI_PASSWORD" | |
key_mgmt=WPA-PSK | |
} | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment