Skip to content

Instantly share code, notes, and snippets.

@tchartron
Last active July 4, 2020 12:35
Show Gist options
  • Save tchartron/e2a8bb02aa3909ad4b1589d72bf4f9ad to your computer and use it in GitHub Desktop.
Save tchartron/e2a8bb02aa3909ad4b1589d72bf4f9ad to your computer and use it in GitHub Desktop.
Headless raspberry pi ssh + wifi from MacOS
#!/usr/bin/env bash
touch /Volumes/boot/ssh
touch /Volumes/boot/wpa_supplicant.conf
echo 'country=FR
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="ssid"
psk="password"
}
' >> /Volumes/boot/wpa_supplicant.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment