Skip to content

Instantly share code, notes, and snippets.

@kaplas
Created May 8, 2020 12:05
Show Gist options
  • Save kaplas/0496a1a8383e77234f5d1f090413b23a to your computer and use it in GitHub Desktop.
Save kaplas/0496a1a8383e77234f5d1f090413b23a to your computer and use it in GitHub Desktop.
Setting up a RPi3 to work as a dedicated UPnP renderer

Setting up a RPi3 to work as a dedicated UPnP renderer

From https://dietpi.com/phpbb/viewtopic.php?p=9#p9

  • Download the latest DietPI image
  • Write the image to an SD card (eg. with BalenaEtcher on MacOS)
  • Edit WiFi details to /boot/dietpi-wifi.txt, if you plan to use WiFi. I wasn't able to get WiFI to work later on anymore, so please fill the details already now.
  • Start the RPi3 with the SD card
  • Find out the IP address of the device, and log in via SSH (username root, password dietpi)
  • Setup utility starts on login, and guides you through via the steps needed. This will take some time though.

From https://community.audirvana.com/t/which-dnla-renderer-is-100-reliable-with-a/8800/4

  • Run dietpi-config and under Audio Options choose the Hifiberry as your sound card.
  • Run dietpi-software and enable GMediaRender (checkbox)

From MichaIng/DietPi#3348 (comment)

As for some reason the gmrender did not start automatically on my RPi3, I needed the do this. YMMV.

The following should resolve the autostart issue:

  • Open dietpi-services and select gmrender
  • Select Edit
  • nano opens with commented service file content. Below the commented ExecStartPre= line, add the following (uncommented):
ExecStartPre=
ExecStartPre=/DietPi/dietpi/func/obtain_network_details
ExecStartPre=+/bin/dash -c 'systemctl set-environment ACTIVE_IP=$(mawk 'NR==4' /DietPi/dietpi/.network)'

After saving the file and closing the config utility, reboot the RPi3 with reboot -n.

Changing the advertised "friendly name" of the UPnP endpoint

nano /etc/systemd/system/gmrender.service

Find the -f Dietpi part of the start command, and change it to be whatever you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment