简单记录下树莓派配置airplay服务
更新系统至最新
$ sudo apt-get update$ sudo apt-get upgrade$ sudo rpi-update
关闭wifi节能模式
$ sudo iwconfig wlan0 power off
安装依赖
$ sudo apt-get install build-essential git xmltoman autoconf automake libtool libdaemon-dev libpopt-dev libconfig-dev libasound2-dev avahi-daemon libavahi-client-dev libssl-dev
编译安装
$ git clone https://github.com/mikebrady/shairport-sync.git$ cd shairport-sync$ autoreconf -i -f$ ./configure --sysconfdir=/etc --with-alsa --with-avahi --with-ssl=openssl --with-systemd$ make$ sudo make install
设置开机自启并启动
$ sudo systemctl enable shairport-sync$ sudo systemctl start shairport-sync
至此安装配置完毕, airplay设备名称默认为 raspberrypi
备注
调整音量(测试超过85会出现爆音)
$ alsamixer
参考: