Install Debian/Ubuntu on a Raspberry Pi
Prepare a Raspberry Pi for MikRouter by writing Raspberry Pi OS (Debian-based) or Ubuntu to a microSD card, enabling remote access, and completing the first boot.
What you need
Imager sets up SSH for you — do not skip Customisation
Download and open Raspberry Pi Imager
Choose your Raspberry Pi model
Setup steps
Device
OS
Storage
Customisation
Writing
Done
Select your Raspberry Pi device
Choose Ubuntu Server
Setup steps
Device
OS
Storage
Customisation
Writing
Done
Choose operating system
Select an operating system to install on your Raspberry Pi
Then take an LTS release — Ubuntu Server 24.04.4 LTS (64-bit) here. Server, not Desktop: it is smaller and needs no screen.
Setup steps
Device
OS
Storage
Customisation
Writing
Done
Choose operating system
Select an operating system to install on your Raspberry Pi
Raspberry Pi OS Lite works too
Select the microSD card
Setup steps
Device
OS
Storage
Customisation
Hostname
Localisation
User
Wi-Fi
Remote access
Writing
Done
Select your storage device
Check the card before going on
Set the hostname
Setup steps
Device
OS
Storage
Customisation
Hostname
Localisation
User
Wi-Fi
Remote access
Writing
Done
Customisation: Choose hostname
A hostname is a unique name that identifies your Raspberry Pi on the network. It should contain only letters, numbers, and hyphens.
Set your location
Setup steps
Device
OS
Storage
Customisation
Hostname
Localisation
User
Wi-Fi
Remote access
Writing
Done
Customisation: Localisation
Select your location for suggested time zone and keyboard layout
Create the user account
Setup steps
Device
OS
Storage
Customisation
Hostname
Localisation
User
Wi-Fi
Remote access
Writing
Done
Customisation: Choose username
Create a user account for your Raspberry Pi
The username must be lowercase and contain only letters, numbers, underscores, and hyphens.
| Field | Value | Note |
|---|---|---|
| Username | admin | Lowercase letters, numbers, underscores and hyphens |
| Password | your own | Typed twice, and needed at every login |
Wi-Fi — skip it if you are on Ethernet
Enter a password in red, which is only telling you the boxes are blank — it does not stop you moving on.Setup steps
Device
OS
Storage
Customisation
Hostname
Localisation
User
Wi-Fi
Remote access
Writing
Done
Customisation: Choose Wi-Fi
Enter a password
Ethernet is steadier than Wi-Fi and is what MikRouter recommends. Fill this in only if the Pi has no network cable, in which case type the network name and password exactly.
Turn on SSH — do not skip this one
Setup steps
Device
OS
Storage
Customisation
Hostname
Localisation
User
Wi-Fi
Remote access
Writing
Done
Customisation: SSH authentication
Configure SSH access
Without SSH there is no way in
Review and write
Setup steps
Device
OS
Storage
Customisation
Hostname
Localisation
User
Wi-Fi
Remote access
Writing
Done
Write image
Review your choices and write the image to the storage device
Summary
Customisations to apply:
- • Hostname configured
- • Localisation configured
- • User account configured
- • SSH enabled
Imager asks you to confirm, because this erases the card. On macOS it also asks for your computer's password to write to the disk.
You are about to ERASE all data on: MXT-USB Storage Device Media
This action is PERMANENT and CANNOT be undone.
Wait for Write complete!
Setup steps
Device
OS
Storage
Customisation
Hostname
Localisation
User
Wi-Fi
Remote access
Writing
Done
Write image
Writing in progress — do not disconnect the storage device
Writing… 50%
Setup steps
Device
OS
Storage
Customisation
Hostname
Localisation
User
Wi-Fi
Remote access
Writing
Done
Write complete!
Your choices:
Customisations applied:
- ✓ Hostname configured
- ✓ Localisation configured
- ✓ User account configured
- ✓ SSH enabled
The storage device was ejected automatically. You can now remove it safely.
Boot the Pi
Find the Pi's IP address in your router
Here it is 192.168.1.100. If the Pi is not listed yet, wait a minute and refresh.
Log in over SSH
ssh admin@192.168.1.100
The first connection asks you to accept the Pi's fingerprint: type the whole word yes and press Enter, then your password. Nothing appears as you type the password — that is normal. A prompt ending in admin@RaspberryPi:~$ means you are in.
user@macbook ~ % ssh admin@192.168.1.100The authenticity of host '192.168.1.100 (192.168.1.100)' can't be established.ED25519 key fingerprint is: SHA256:9tKfR2xQwLpN4cVbHs71yMdEuZoAj3XgP6TnQrW8BkYThis key is not known by any other names.Are you sure you want to continue connecting (yes/no/[fingerprint])? yesWarning: Permanently added '192.168.1.100' (ED25519) to the list of known hosts.admin@192.168.1.100's password:Welcome to Ubuntu 24.04.4 LTS (GNU/Linux 6.8.0-1021-raspi aarch64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/pro admin@RaspberryPi:~$The hostname may work too
ssh admin@raspberrypi.local instead of the address. It depends on the image, so the router's list is the route that always works.