Not sure if this has been posted already somewhere, but the latest Raspberry-Imager does have a hidden option which makes the setup of a new device a bit more comfortable.
While having the Raspberry-Imager open, you can open a settings menu by pressing CRTL-SHIFT-X
There you have several options to configure the SD card while image is writing:
- Setup hostname
- Enable SSH
- Configure WiFi
- Configure Locales
I’ve tested it with the Raspberry OS lite image. It might not work on other images like Ubuntu.
I’ve seen this for Mac Devices so far, but i’ve tested it on my Linux Mint Notebook where the screenshot below is taken from.
Maybe a comfortable option instead of editing config files for first start.
The tool is available directly from Raspberry Foundation: