The easiest way to install any operating system on your Raspberry Pi is through the official Raspberry Pi Imager. It comes with all the tools you need to prepare and flash an SD card with the operating system you want to install.
To enabled SSH we need to add an additional empty file called ssh to the SD card's root directory after is has been flashed with the image.
touch ssh
To enable Wifi create a file in the root folder called: wpa_supplicant.conf. Then paste the following into it:
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="NETWORK-SSID"
psk="NETWORK-PASSWORD"
}
After booting up your device, you can connect to it via SSH by using its IP address.
ssh pi@[IP address]
The default username is pi and the standard password is raspberry.
It's highly recommended to change the password on the first connection. You can do this and configure many other useful things in the handy Raspberry Pi Config tool:
sudo raspi-config
Start by updating and upgrading the system. This ensures you install the latest version of the software.
Open a terminal window and run the command:
sudo apt-get update && sudo apt-get upgrade