搜索
您的当前位置:首页正文

【转载】树莓派配置Airplay服务

来源:二三娱乐

更新系统至最新

$ 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

编译安装

$ git clone 
$ 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
Top