raspios


headless setup

dpavlin@nuc:~/Downloads$ unzip 2020-08-20-raspios-buster-armhf-lite.zip

dpavlin@nuc:~/Downloads$ dd iflag=fullblock oflag=direct conv=fsync status=progress bs=1M if=2020-08-20-raspios-buster-armhf-lite.img of=/dev/sdb

dpavlin@nuc:~/Downloads$ sudo mount /dev/sdb1 /mnt/sdb1/

# enable ssh
dpavlin@nuc:~/Downloads$ sudo touch /mnt/sdb1/ssh

# configure wifi
dpavlin@nuc:~/Downloads$ sudo cp /tmp/rpi4-backup/wpa_supplicant.conf /mnt/sdb1/

dpavlin@nuc:~/Downloads$ cat /mnt/sdb1/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=HR

network={
	ssid="wifi_ssid"
	psk="wifi_password"
	key_mgmt=WPA-PSK
}

dpavlin@nuc:~/Downloads$ sudo umount /mnt/sdb1
dpavlin@nuc:~/Downloads$ sudo eject /dev/sdb