There are plenty of great setup tutorials. Here are the ones I use to setup the pi.
Poached from here
touch /mnt/e/ssh
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="YourNetworkSSID"
psk="Your Network's Passphrase"
key_mgmt=WPA-PSK
}
Remove USB drive and boot Pi
The defaults will be” system name -> raspberrypi username -> pi password -> raspberry
NOTE: Once you boot, be sure to change your password and lock down ssh access.
sudo timedatectl set-timezone America/Los_Angeles
Adding the Snap store simplifies adding / updating packages. Full instructions for rPi are here
sudo apt update
sudo apt install snapd
sudo snap install core
sudo snap install snapd
sudo reboot
To Refresh a store package
snap list
wget $(curl -s https://api.github.com/repos/PowerShell/PowerShell/releases/latest | grep "browser_download_url.*linux-arm32.tar.gz" | cut -d '"' -f 4)
mkdir ~/powershell
tar -xvf ./powershell*.tar.gz -C ~/powershell
sudo ln -s ~/powershell/pwsh /usr/bin/pwsh
wget -O - https://raw.githubusercontent.com/pjgpetecodes/dotnet6pi/master/install.sh | sudo bash
#
linux maintenence sudo apt update sudo apt full-upgrade
creating the autoststart script - https://www.raspberrypi.org/documentation/linux/usage/systemd.md