Skip to content

Instantly share code, notes, and snippets.

@Terrabits
Last active January 14, 2019 09:27
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 Terrabits/e1620e00695545f6ceec9f2b0525271d to your computer and use it in GitHub Desktop.
Save Terrabits/e1620e00695545f6ceec9f2b0525271d to your computer and use it in GitHub Desktop.
Raspbian WiFi and SSH for headless install
#!/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