Hello, today we are going to see how we can install a custom image on a Raspberry Pi.
The first thing we need to do is download the official program Raspberry Pi Imager
Once downloaded, install it, and the following menu will appear:
Now, select the Operating System you want to install. If you want to use Docker, I recommend Ubuntu:
To select Ubuntu, go to Choose OS > Other general-purpose OS > Ubuntu
In this case, I have chosen Ubuntu Server as it takes up less space, and I don’t need the desktop on the Raspberry Pi.
Once selected, the configuration menu appears:
If it doesn’t appear, you can access it by pressing CRTL + SHIFT + X
Now, you can configure the options:
In this case, we will set a hostname.
We will also enable SSH using an RSA key for added security.
To add the RSA key or keys, copy the generated public RSA key and paste it into the “Set authorized_keys” field.
You can also change the username and password in the “username and password” section. However, you can disable it later to disallow access via username and password.
You can choose the language configuration:
Finally, click on save and choose the SD card where you want to install it by clicking on “Choose Storage”: