Download an image of Raspbian outside of China if you want to finish this tutorial in less than 3 hours.
Identify the disk (not the partition) of your SD card, e.g. disk4
, not disk4s1
.
diskutil list
Unmount your SD card by using the disk identifier, to prepare it for copying data:
diskutil unmountDisk /dev/disk<disk# from diskutil>
Copy the data to your SD card:
sudo dd bs=1m if=image.img of=/dev/rdisk<disk# from diskutil> conv=sync
This will take a few minutes, depending on the image file size. You can check the progress by sending a SIGINFO signal (press Ctrl+T).
After the dd
command finishes, eject the card:
sudo diskutil eject /dev/rdisk<disk# from diskutil>
sudo apt update -y && sudo apt upgrade -y
sudo apt install xdotool unclutter sed -y
Setup WiFi connection to Hidden Network
echo "\n\nnetwork={
scan_ssid=1
ssid="ssid"
psk="pw"
key_mgmt=WPA-PSK
}" >> /etc/wpa_supplicant/wpa_supplicant.conf
echo "raspberrypi-p19-f56" > /etc/hostname
wget -O - https://raw.githubusercontent.com/marcfreiheit/zorc-foundry-displays/master/install.sh | bash <(cat) </dev/tty
- Enable SSH access