Skip to content

Instantly share code, notes, and snippets.

@wences-dc-uba-ar
Last active June 5, 2019 13:32
Show Gist options
  • Save wences-dc-uba-ar/22d8de27c448739e3de4c804ee31a634 to your computer and use it in GitHub Desktop.
Save wences-dc-uba-ar/22d8de27c448739e3de4c804ee31a634 to your computer and use it in GitHub Desktop.
Raspberry PI
For headless setup,
SSH can be enabled by placing a file named 'ssh',
without any extension,
onto the boot partition of the SD card.
# put this file in boot partition
# /boot/wpa_supplicant.conf
# will config wifi even on first boot
# https://www.raspberrypi.org/forums/viewtopic.php?t=129727#p1082228
# https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=AR
network={
ssid="My Home Wireless"
psk="***"
priority=2
id_str="tota"
key_mgmt=WPA-PSK
}
network={
ssid="abcd"
psk="***"
priority=4
id_str="Fantas"
key_mgmt=WPA-PSK
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment