由于是从某网站摘抄的,并没有看到原作者信息。所以我没法贴出原作者信息。
做个记号:
编译出错请切换gcc版本
dir=`mktemp -d`
cd $dir
wget wget http://www.chiark.greenend.org.uk/~christi/debian/christi@coraline.org.gpg.key
apt-key add christi@coraline.org.gpg.key
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