This tutorial walks through setting up a Raspberry Pi 5 from scratch
Install Ubuntu 24
We will use the Raspberry Pi Imager.
We will use the Desktop build of Ubuntu, since that has better built in support for external drives. Ubuntu Server is fully supported, and recommended for more experienced users.