Roon

This page is about the music software roon

RaspberryPi with Roon Bridge and display

Hardware

Raspberry Pi 3 Model B with DietPi including Roon Bridge and display for my Home Assistant installation.

Installation

DietPi

After initial bootup, login through ssh: ssh root@dietpi

Password: dietpi

DietPi Initial

After confirmation DietPi will update itself.

DietPi-Set Software

DietPi Unix Password

DietPi Serial Console

DietPi Software

  1. Select Software
  2. Software Optimized -> Desktops -> 133 Chromium
  3. Software Optimized -> Media Systems -> 121 Roon Bridge
  4. Install the software

DietPi Software Install

DietPi GPU Memory

DietPi GPU Memory

DietPi Software Final

Configure Sound Card

dietpi-config

Audio -> Soundcard -> hifiberry-digi

DietPi Software Configure Soundcard

Rotate the display

In my configuration I had to rotate the display 180 degrees:

DietPi-Config -> Display Options -> Rotation (LCD)

Console boot up

There’s a way to configure DietPi to boot into a Chromium window. But with the following procedure you will get the following advantages:

  1. As root, run the autostart configuration:
  2. dietpi-autostart
  3. Select Custom - /var/lib/dietpi/dietpi-autostart/custom.sh
  4. Save and exit

System configuration

  1. Modify the custom.sh startup script
  2. nano /var/lib/dietpi/dietpi-autostart/custom.sh
  3. Add this to the bottom of the file:
    # Run the custom kiosk script
    xinit /root/kiosk.sh -- -nocursor
    
  4. Save and exit
  5. Make the custom.sh script executable
  6. chmod +x /var/lib/dietpi/dietpi-autostart/custom.sh
  7. Create the kiosk.sh script
  8. nano /root/kiosk.sh
  9. Paste the following code as content:
#!/bin/sh

#######################################
#
# Start up script for running the
# Chromium web browser full screen
#
#######################################

# Set the X display
export DISPLAY=":0"
# Tune the screen blanking time - time in seconds (standby, suspend, off)
# All numbers are time in seconds
# default value
# xset dpms 600 600 600 &
# 1 minute blank time
xset dpms 60 60 60 &

# start full screen web app
# change the URL if Roon Web Controller is running on a different system
# set --user-data-dir to restore your login and Home Assistant settings
/usr/bin/chromium --kiosk --user-data-dir=/root/.config/chromium http://server:9330/display/
  1. Save and exit
  2. Make the kiosk.sh executable
  3. chmod +x /root/kiosk.sh
  4. reboot

Source

ToDo