Install Raspberry pi Imager
you can download it at Raspberry Pi OS – Raspberry Pi
Setting up
Select your raspberry pi board
Select your os and storage
Setting up os customization
Press ctrl+shift+x to open os customization window, fill out the host name, username and password for your rpi and enter your wlan ssid and password. next go to services and enable SSH.
Turn on the raspberry pi with newly flashed sd card and open a termianal session on your computer. now ssh and configure vnc server if you need the desktop environment.
- to ssh, run ~$ssh “your host name”@“your username”
e.g. ~$ssh raspberrypi@john- to setup vnc, ssh to raspberry pi and run
~$sudo raspi config, select interface option, vnc, activate.
Now you can install RealVNC viewer Download VNC Viewer by RealVNC® and connect remotely by entering your hostname@username