Raspberry Pi
Headless install: Connect to Wifi and enable SSH
This can nowdays be accomplished directly in Raspberry Pi Imager. After selecting the proper image to write, click the cog wheel to set your Wifi credentials and enable SSH.
https://www.raspberrypi.com/software/
Disable Wifi power save
If you have Wifi power save enabled, you may experince "hangs" when having an open SSH terminal to the device. You can verify if power save is enabled with:
sudo journalctl | grep brcmfmac:
If it is enabled, you can disable it with:
sudo /sbin/iwconfig wlan0 power off
To make this permanent on boot, add the above line (without sudo) to /etc/rc.local before "exit 0"