$
, strip out $
as this character is not part of the commandcat << "EOF"
, select all lines at once (from cat << "EOF"
to EOF
inclusively) as they are part of the same (single) commandWhen asked for file in which to save key, enter pi
.
When asked for passphrase, use output from openssl rand -base64 24
(and store passphrase in password manager).
WARNING: BE VERY CAREFUL WHEN RUNNING
DD
AS DATA CAN BE PERMANENTLY DESTROYED (BEGINNERS SHOULD CONSIDER USING BALENAETCHER INSTEAD).
Heads-up: run
diskutil list
to find disk ID of microSD card or external solid state drive to overwrite with “Raspberry Pi OS Lite” (disk4
in the following example).
Heads-up: replace
diskn
andrdiskn
with disk ID of microSD card or external solid state drive (disk4
andrdisk4
in the following example) and2022-04-04-raspios-bullseye-arm64-lite.img
with current image.
When asked for user, use pi-admin
.
When asked for password, use output from openssl rand -base64 24
(and store password in password manager).
Select “System Options”, then “Wireless LAN”, choose country, then select “OK”, enter “SSID” and, finally, enter passphrase.
Select “System Options”, then “Boot / Auto Login” and, finally, select “Console”.
Select “Interface Options”, then “SSH”, then “Yes”, then “OK” and, finally, select “Finish”.
When asked if you wish to reboot, select “No”.
eth0
if using ethernet or wlan0
if using Wi-Fi)Heads-up: replace
10.0.1.94
with IP of Raspberry Pi.
Heads-up: when asked for passphrase, enter passphrase from step 5.
.ssh
directory~/.ssh/authorized_keys
using heredoc generated at step 2Heads-up: replace
10.0.1.94
with IP of Raspberry Pi.
Heads-up: when asked for passphrase, enter passphrase from step 1.
nopassword
“feature”When asked for password, use output from openssl rand -base64 24
(and store password in password manager).
Heads-up: step will take effect after reboot.
Heads-up: only run following if network is IPv4-only.
If network is IPv4-only, run:
If network is dual stack (IPv4 + IPv6) run:
Heads-up: replace
10.0.1.94
with IP of Raspberry Pi.
See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
👍