更新系统至最新
$ sudo apt-get update
$ sudo apt-get upgrade
关闭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
编译安装 shairport-sync
$ 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
备注
调整音量
$ alsamixer
原文:https://my.oschina.net/firxiao/blog/2223191
参考: https://github.com/mikebrady/shairport-sync/blob/master/INSTALL.md
网友评论