Set up networking

Wi-Fi

You may have already configured the Wi-Fi in the rpi-imager options, but if not, you can do so after its been installed.

Run this on the Raspberry Pi
sudo raspi-config
  • Enter System Options.
  • Enter S1 Wireless LAN.
  • Choose your current country.
  • Enter the SSID (Wi-Fi network name) you wish to connect to.
  • Enter the network passphrase

Configure DNS

By default, DNS is handled via DHCP, which will probably work in the majority of cases. However, you may wish to hardcode specific DNS servers instead:

Run this on the Raspberry Pi
sudo rm -f /etc/resolv.conf
echo -e "nameserver 1.1.1.1" | sudo tee /etc/resolv.conf
sudo chattr +i /etc/resolv.conf

chattr +i prevents DHCP from overwriting this file in the future.