layout | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
We configure the Raspberry Pi and install the official operating system.
We use Raspberry Pi OS Bookworm Lite (Debian 12 based), without a graphical user interface. This provides the best stability for the system and makes the initial setup a breeze.
{% hint style="warning" %} Attention!! If you use Raspberry Pi 5, avoid installing incompatible OS versions like Raspberry Pi OS Bullseye (Debian 11 based). Due to hardware changes, the Raspberry Pi 5 requires Raspberry Pi OS Bookworm for proper support and functionality.
-> Likewise, if you have a Raspberry Pi 4, avoid installing systems other than Raspberry Pi OS Bookworm. The steps may differ from the guide, and support won’t be facilitated in the provided groups. {% endhint %}
Raspberry Pi OS is based on the Debian Linux distribution, available for most hardware platforms. To make this guide as universal as possible, it uses only standard Debian-based commands.
We will use the Raspberry Pi Imager application v1.8+. Download from here the proper version depending on the OS platform are you using on your regular computer. If you use a Linux Debian-based distro, you can enter only the next command on the terminal: sudo apt install rpi-imager
- Start the Raspberry Pi Imager
- On the “Raspberry Pi device” section > Push on “Choose device” > Select “No filtering”
- On the “Operating system” section > Push on “Choose OS” > “Raspberry Pi OS (other)” > Scroll to select “Raspberry Pi OS Lite (64 bit)” - A port of Debian Bookworm with no desktop environment (Compatible with Raspberry Pi 3/4/400/5) and have the relevant image flashed to your drive
- Connect the external drive to your regular computer. On the “Storage” section > Push on “Choose storage” > Select your external drive
- Click on the “NEXT” button
- On the “Use OS customisation” banner > Click on the “EDIT SETTINGS” button
You can now pre-configure the operating system even before it’s started for the first time. Configure the advanced options as follows:
{% tabs %} {% tab title=""General" tab" %}
-
Set hostname: choose and enter a local network name for your node, for example,
ramix
.Note: if you want to change this later, you can adjust the hostname later by replacing it in the file
/etc/hostname
and adding it at the end of the first line in/etc/hosts
-
Set username and password: activate the checkbox and enter
admin
together with yourpassword [A]
This will create the user
admin
which we will use primarily in this guide to make it more universal. -
Configure WiFi: if you will run the RaMiX connected to your wireless network, enter the WiFi name (“SSID”) and password. Also, change “Wifi country” to the two-letter ISO2 code of your country (e.g.
es
)-> If you’ll connect your RaMiX with a network cable, simply skip this setting
-
Set locale settings: activate the checkbox, select your timezone and keyboard layout ("es" recommended for Spanish speakers) {% endtab %}
{% tab title=""Services" tab" %}
- Activate the checkbox "Enable SSH" and 2 options:
- Select “Use password authentication” to use the previously configurated "username and password"
- Select "Allow public-key authentication only" and enter your SSH pub key. Get your SSH key pair and more info in the "Login with SSH keys" bonus guide
{% hint style="info" %} This will allow you to connect to the Raspberry Pi remotely using “Secure SHell” without ever connecting it to a keyboard or screen. {% endhint %} {% endtab %}
{% tab title=""Options" tab" %} {% hint style="info" %} If you want to improve your privacy, you can uncheck “Enable telemetry” {% endhint %} {% endtab %} {% endtabs %}
- Finally, click on “SAVE”
- The “Use OS customisation” banner shows you again > Click this time on the “YES” button
- Read the warning banner carefully and make sure you selected the right drive, then click “YES” again
{% hint style="info" %} The Raspberry Pi Imager now writes and verifies the operating system on your drive. It should display a “Success” message after {% endhint %}
- Safely eject the external drive from your computer
- Connect it to your Raspberry Pi
- If you did not configure the Wifi settings: connect the Raspberry Pi to your network with an ethernet cable
- Start the Raspberry Pi by connecting it to the power adapter or pushing the ON/OFF button (only on Raspberry Pi 5)
The 🔴 red LED on the Raspberry Pi will indicate that the device is powered on.
The 🟢 green LED should constantly be flickering after a few seconds, indicating activity. If the green LED is lit constantly, without flickering, your Raspberry Pi is probably not yet configured to boot from USB/NVMe.
To enable booting from USB/NVMe, follow these steps:
- Get your hands on a microSD card (all data will be deleted, but you only need it once)
- Using the Raspberry Pi Imager, write config bootloader to enable “USB Boot | NVMe Boot” to the microSD card
- With “No filtering” selected on the “Raspberry Pi device” section, on the “Operating system” section > Push on “Choose OS” > “Misc utility images > Select Bootloader (Pi 4 or Pi 5) family, depending on your Raspberry Pi version > USB Boot | NVMe/USB Boot
- Connect the microSD to your regular computer. On the “Storage” section > Push on “Choose storage” > Select your microSD
- Click on the “NEXT” button
- Read the warning banner carefully and make sure you selected the right drive, then click “YES”.
{% hint style="info" %} The Raspberry Pi Imager now writes on your microSD and verifies it. It should display a “Success” message after {% endhint %}
- Boot your Raspberry Pi with this microSD card
- Once the 🟢 green LED blinks constantly, you can disconnect the power
- Remove the microSD card and start your Raspberry Pi again with the USB SSD/NVMe connected
{% hint style="info" %} Your Raspberry Pi should now boot from the SSD attached via USB/PCIe {% endhint %}
We assume that you can boot directly from the external drive. This method works for most modern drives, but if it doesn’t work in your case, please follow the fallback instructions -> Boot from microSD card instead of an external drive.