Flash OS image on SD card
To get an operating system for the Raspberry Pi, it needs to be saved on a micro SD card first. I will choose an OS specifically for audio playing, called MoOde.
- Download RPi Imager software on computer: https://www.raspberrypi.com/software/. Install.
- Insert micro SD card into computer.
- Open RPi Imager. Select
- RPi device: RPi 5
- Operating system: Media player OS > MoOde > MoOde audio player 9.2.6
- Storage medium: on insterted micro SD card
- OS customisation
- Set hostname: pifive.local
- Set username: pi
- Set PW: five
- Configure wireless LAN: SSID: Laika Corp. PW: goodgirl. Wireless LAN country: SE
- Set locale settings: Time zone: Europe/Stockholm. Keyboard layout: se
- Services: Enable SSH > use password authentication
- OK
- Would you like to apply OS customisation settings?
Once the OS is written on the SD card, remove it and insert it into the RPi.
Connecting to RPi from computer (via Terminal)
- Insert micro SD card with OS into RPi.
- Plug power supply into the RPi ⇒ RPi will immediately start. When green light is solid, it’s ready.
- Go to Pi Connect: https://connect.raspberrypi.com/devices
- On Terminal on the computer type:
- To check if there’s a conncection
ping pifive.local> get out again with ctrl + c - To connect to the RPi:
ssh pi@pifive.local. This enables secure remote login to the RPi from the computer. - This time, it denies access because I re-flashed the CD card with a new OS, but kept the host name. So it gives an error message that the key is not correct. To solve that, I have to delete the previous key, as described here: https://help.dreamhost.com/hc/en-us/articles/217239087-Updating-host-keys
- Type
ssh-keygen -R pifive.local - Message:
/Users/silfa/.ssh/known_hosts updated. - Now I can try again to connect with the
sshcommand and confirm withyesthat I want to continue connecting. Typing in the PW for the RPi, and I’m in.
- Type
- To check if there’s a conncection
- Now the user in the Terminal has changed to
pi@pifive.local. This means we’re connected to the RPi now.
Install PiConnect on the RPI (via Terminal)
- Connected with
sshin the computer’s Terminal, now type:sudo apt install rpi-connectto install RPi Connect- Also update everything with
sudo apt updateandsudo apt full-upgrade.
Connect to RPi from browser (via PiConnect)
- Link the RPi to a PiConnect account:
- In computer’s terminal, connected to RPi via
sshtype:rpi-connect on.rpi-connect signin.- Error message (2025-03-16):
Cannot start Raspberry Pi Connect: exit status 1 - Instead, I installed RPi Connect Lite with
sudo apt install rpi-connect-lite, and then runrpi-connect on. This worked. RPi Connect Lite however does not have a screenshare option, it only works via command line.
- Error message (2025-03-16):
- Now that RPi Connect is installed, and Connect started on the RPi, we must associate our RPi device with the Connect account.
- Still in the Terminal on the computer, via
ssh, typerpi-connect signin - Copy the URL that shows up and open it in a browser to authenticate your device. Give the RPi a name: “pifive”.
- Press “Connect” on the pifive device and a new browser window pops up with direct access to the RPi - either as remote shell or as screensharing (depending on which is available for the RPi Connect version installed).
- Still in the Terminal on the computer, via
- In computer’s terminal, connected to RPi via
Now it’s possible to access the RPi from anywhere using the browser, and reaching (mirroring) the desktop of the RPi. RPI Connect Lite does not include screensharing, so it’s just a Remote Shell access in a new browser window. Not really different from ssh from computer Terminal.
Some useful commands for RPi Connect:
rpi-connect status- View the current status of the Connect service. You should see if you’re signed in, if screen sharing and remote shell access are allowed.rpi-connect doctor- Helps debugging and identify issues with screen sharing.- If you have repeated issues trying to run Connect’s required services, run the following commands to check their status in more detail.
systemctl --user status rpi-connect-wayvnc.service rpi-connect-wayvnc-watcher.pathjournalctl --user --follow --unit rpi-connect-wayvnc.service --unit rpi-connect-wayvnc-watcher.path
2025-03-16
Apparently MoOde needs a GUI to work properly? Can’t find anything in the instructions of how to make it work in the shell. https://github.com/moode-player/docs/blob/main/setup_guide.md#62-ssh-commands
Only a few commands like moodeutl --help.
Maybe I’ll try re-installing RPi Connect, and if that doesn’t work either reinstalling the MoOde OS, or trying the alternative Volumio OS.