sudo raspi-config
adjusts the important settings
Verify the correct keyboard layout, and make sure a strong password is used.
Just change the password once you are convinced the keyboard layout is correct. If a disaster happens delete the users password hash in /etc/shadow to reset the password.
Do not enable RPI Connect when having a headless system. Since this will install a graphical desktop and Debian will not be able to remove all the depended packages afterward. sudo apt install rpi-connect-lite is the way to go for headless systems.
The SD-card will probably be bigger than the image file. This can be fix by Advanced Options => Expand Filesystem to the SD card size.
There is also an update command for raspi-config
quit raspi-config and work in the console
It is now time to update the Raspberry OS sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove && sudo apt-get autoclean
Consider to install mc the midnight commander (console based file manager)
sudo apt-get install mc to install it. When edit the first time a file with mc it asks for the editor select /usr/bin/mcedit for the mc editor
To run commands as root: sudo <command>
sudo su - changes to the root console and after this entering sudo is no more required. This is convenient when use it with tab completion as for commands like cat /etc/wireguard/publickey but it has a disaster potential, so use it with care.