首次知道可以使用DLNA,还是在网易云音乐的设置选项里面发现的,之前家里有电视盒子,可以直接用,但是每次都要按开关感觉有点麻烦,正好有树莓派,在网上查了一下,基本上都是DLNA服务器端的安装,少有几个客户端配置的,结合了两个博客的内容糅合出这篇文章,修复了一些有问题的命令:
0
dir=`mktemp -d`
cd $dir
wget wget http://www.chiark.greenend.org.uk/~christi/debian/[email protected]
apt-key add [email protected]
touch /etc/apt/sources.list.d/upnprender.list
echo "deb http://www.chiark.greenend.org.uk/~christi/debian/ wheezy main" > /etc/apt/sources.list.d/upnprender.list
apt-get install libupnp-dev libgstreamer1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-alsa -y
git clone https://github.com/hzeller/gmrender-resurrect.git
cd gmrender-resurrect
apt-get install autoconf -y
./autogen.sh
./configure
make install
echo "gmediarender -I \`ifconfig wlan0 | grep -P 'inet\s' | awk '{print \$2}'\` -f \"RaspberryPI\" &" > /etc/rc.local
#gmediarender -I `ifconfig wlan0 | grep -P 'inet\s' | awk '{print $2}'` -f "RaspberryPI"
cd /tmp
rm -rf $dir