Skip to content

Instantly share code, notes, and snippets.

@willprice
Last active October 1, 2020 21:56
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 willprice/1e117c769b8f45ba8e3137cd2a65f9c0 to your computer and use it in GitHub Desktop.
Save willprice/1e117c769b8f45ba8e3137cd2a65f9c0 to your computer and use it in GitHub Desktop.
Pi headless setup

RPi headless set up

Set up SD card

$ sudo  dd if=2020-08-20-raspios-buster-armhf.img of=/dev/sda bs=1M
$ sudo sync
  • Pop out and pop SD card back in.
  • Mount partitions to /mnt/boot and /mnt/root
$ sudo touch /mnt/boot/ssh
$ sudo echo > /mnt/boot/wpa_supplicant.conf <<EOF
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB

network={
 ssid="<Name of your wireless LAN>"
 psk="<Password for your wireless LAN>"
}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment