February 22, 2016
Quick & Easy: Turning your Raspberry Pi into a headless DLNA/UPNP Audio Endpoint Render
sudo apt-get update && sudo apt-get upgradesudo apt-get install build-essential git automake libglib2.0-dev libupnp-dev libxml2-dev pulseaudio gstreamer0.10-alsa gstreamer0.10-tools gstreamer0.10-plugins-* gstreamer1.0-libav gstreamer0.10-pulseaudiogit clone https://github.com/hzeller/gmrender-resurrect.gitcd gmrender-resurrect && ./autogen.sh./configure LIBS=-lm && make -j4sudo make installgmediarender -f Pi --logfile=/dev/stdout(test if it works)sudo crontab -e- insert
@reboot /sbin/runuser -l pi -c 'gmediarender -f Pi -d' - ctrl + o to save, then ctrl + x to quit
gmediarender -f Pi -d(now daemonize it)
Tips*
- change
Pito your favorite anime character pkill -9 "gmediarender"will kill all instancesgmediarender -f Pi --logfile=/home/pi/g.logwill log to g.log
if you want to disable onboard audio, you can run
echo "blacklist snd_bcm2835" >> /etc/modprobe.d/alsa-blacklist.confreboot
startup altenative: rc.local
sudo cp /etc/rc.local /etc/rc.local.bak(backup rc.local)sudo nano /etc/rc.local- insert
/sbin/runuser -l pi -c 'gmediarender -f Pi -d'aboveexit 0 - save file (ctrl + o) and exit (ctrl + x)
Sources:
westernwillow (Ubuntu),
scphillips (Raspbian)