安裝Shairport需要的檔案打入以下指令
sudo apt-get update
sudo apt-get install git libao-dev libssl-dev libcrypt-openssl-rsa-perl libio-socket-inet6-perl libwww-perl avahi-utils libmodule-build-perl
安裝 cd perl-net-sdp
git clone https://github.com/njh/perl-net-sdp.git perl-net-sdp
cd perl-net-sdp
perl Build.PL
sudo ./Build
sudo ./Build test
sudo ./Build install
cd ..
編譯Shairport
git clone https://github.com/hendrikw82/shairport.git
cd shairport
make
安裝Shairport
make install
測試Shairport, IPAD上會顯示AirPI
./shairport.pl -a AirPI
使用 Ipad 開啟音樂播放程式,將音樂輸出指到AirPI,這樣Raspberry PI 就可以聽到IPAD音樂
設定Raspberry pi 開機就啟動Shairport
輸入以下指令,Copy Shairport檔案
cd shairport
sudo make install
sudo cp shairport.init.sample /etc/init.d/shairport
修改/etc
cd /etc/init.d
sudo chmod a+x shairport
sudo update-rc.d shairport defaults
修改Shairport設定檔
|