# GMediaRender default args on allo image for raspberry pi

**URL:** https://dietpi.com/forum/t/gmediarender-default-args-on-allo-image-for-raspberry-pi/19205
**Category:** Troubleshooting
**Tags:** raspberry-pi-4, services
**Created:** [7 February 2024 17:01 UTC](https://dietpi.com/forum/t/gmediarender-default-args-on-allo-image-for-raspberry-pi/19205 "2024-02-07T17:01:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ransur0t](https://dietpi.com/forum/user_avatar/dietpi.com/ransur0t/32/5806_2.png) [@ransur0t](https://dietpi.com/forum/u/ransur0t)
#### Post date: [7 February 2024 17:01 UTC](https://dietpi.com/forum/t/gmediarender-default-args-on-allo-image-for-raspberry-pi/19205/1 "2024-02-07T17:01:34Z")

</div>

### Creating a bug report/issue

I have searched the existing open and closed issues

#### Required Information

- DietPi version | `cat /boot/dietpi/.version`  
G\_DIETPI\_VERSION\_CORE=9  
G\_DIETPI\_VERSION\_SUB=0  
G\_DIETPI\_VERSION\_RC=2  
G\_GITBRANCH=‘master’  
G\_GITOWNER=‘MichaIng’
- Distro version | `echo $G_DISTRO_NAME $G_RASPBIAN`  
bookworm 0
- Kernel version | `uname -a`  
Linux AlloPiMine 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
- Architecture | `dpkg --print-architecture`  
arm64
- SBC model | `echo $G_HW_MODEL_NAME`  
RPi 4 Model B (aarch64)
- Power supply used  
Raspberry Pi 15W USB-C 5.1V 3.0A DC
- SD card used  
PNY Elite 32GB Class 10

#### Additional Information (if applicable)

- Software title | GMediaRender
- Was the software title installed freshly or updated/migrated? clean install via allo image
- Can this issue be replicated on a fresh installation of DietPi? untested, but very likely

#### Steps to reproduce

1. clean install of allo image for rpi via image flash to sd

#### Expected behaviour

- in $ARGS (/etc/default/gmediarender), -f option should list hostname, or something friendly, i.e. “allo” or “gmrender” value
- is interface option needed? " -I eth0" …
- at present state, no value follows -f so the next option “-I” is interpreted as friendly name and interface option and value is ignored

#### Actual behaviour

- attempt to stream to the device using bubbleupnp, select device from renderer list, find obscure “-I” as newly discovered device

#### Extra details

- this appears to be a simple edit of the default $ARGS for gmediarender.service
- perhaps expose the config file path /etc/default/gmediarender in the webgui for easy access/edit

**EDIT** added clarification to expected behavior.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [8 February 2024 21:54 UTC](https://dietpi.com/forum/t/gmediarender-default-args-on-allo-image-for-raspberry-pi/19205/2 "2024-02-08T21:54:18Z")

</div>

@MichaIng probably you can have a look as you are the master of the GMediaRender package 🙂 )

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [8 February 2024 22:26 UTC](https://dietpi.com/forum/t/gmediarender-default-args-on-allo-image-for-raspberry-pi/19205/3 "2024-02-08T22:26:23Z")

</div>

Thanks for reporting. It was intended that the hostname is set as friendly name, but I forgot that the `$HOSTNAME` variable exists only in `bash`, but not in bourne shell `sh` or `dash`. This should fix it: [v9.1 · MichaIng/DietPi@a0d3107 · GitHub](https://github.com/MichaIng/DietPi/commit/a0d3107)

It is also fixed on next DietPi update, if not manually done, with this command:

```sh
sed -i "s/ -f -I / -f $HOSTNAME -I /" /etc/default/gmediarender

```

---

<div class="post-metadata">

### Author: ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)
#### Post date: [8 May 2024 22:26 UTC](https://dietpi.com/forum/t/gmediarender-default-args-on-allo-image-for-raspberry-pi/19205/4 "2024-05-08T22:26:28Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
