- Us the Raspberry pi Imager from official website
- Choose the corresponding version for the hardware (e.g. Raspberry Pi OS 64 bit for Raspberry Pi 3/4/400)
- Set the following settings with "advanced" option before writing image to SD card:
- Set Hostname
- Enable SSH
- set uername and password
- Configure Wlan
the default user "pi" with password "raspberry" were not set as default value due to security issues.