apt install --no-install-recommends libasound2
snapserver:armhf : Depends: libasound2:armhf (>= 1.0.18) but it is not installable
Depends: libavahi-client3:armhf (>= 0.6.16) but it is not installable
Depends: libavahi-common3:armhf (>= 0.6.16) but it is not installable
Depends: libc6:armhf (>= 2.34) but it is not installable
Depends: libexpat1:armhf (>= 2.0.1) but it is not installable
Depends: libflac12:armhf (>= 1.3.0) but it is not installable
Depends: libgcc-s1:armhf (>= 3.5) but it is not installable
Depends: libogg0:armhf (>= 1.0rc3) but it is not installable
Depends: libopus0:armhf (>= 1.1) but it is not installable
Depends: libsoxr0:armhf (>= 0.1.0) but it is not installable
Depends: libssl3:armhf (>= 3.0.0) but it is not installable
Depends: libstdc++6:armhf (>= 11) but it is not installable
Depends: libvorbis0a:armhf (>= 1.1.2) but it is not installable
Depends: libvorbisenc2:armhf (>= 1.1.2) but it is not installable
cmake -DBUILD_CLIENT=ON -DBUILD_SERVER=ON -DBOOST_ROOT=/home/to/boost_1_8x_0
cmake .. -DBOOST_ROOT=/root/tmp/boost-1.88.0
Depends: libc6:armhf (>= 2.34) but it is not installable
sudo apt-get upgrade libc6:armhf
snapserver.service
snapserver
systemctl status snapserver
Created symlink /etc/systemd/system/multi-user.target.wants/snapserver.service → /lib/systemd/system/snapserver.service
apt install libmosquitto-dev
https://github.com/mikebrady/alac
$ git clone https://github.com/mikebrady/shairport-sync.git
$ cd shairport-sync
$ autoreconf -fi
$ ./configure --sysconfdir=/etc --with-alsa \ --with-soxr --with-avahi --with-ssl=openssl --with-systemd --with-airplay-2
$ ./configure --sysconfdir=/etc --with-alsa --with-stdout --with-soxr --with-avahi --with-ssl=openssl --with-systemd --with-airplay-2 --with-mqtt-client --with-pipe --with-metadata --with-apple-alac --with-soxr
$ make
$ make install
安装后配置文件的位置
./scripts/shairport-sync.conf /etc/shairport-sync.conf.sample
cp ./scripts/shairport-sync.conf /etc/shairport-sync.conf
scripts/shairport-sync.service-avahi /lib/systemd/system/shairport-sync.service
git clone https://github.com/mikebrady/nqptp.git
cd nqptp
autoreconf -fi
./configure --with-systemd-startup
make
make install
$ git clone https://github.com/mikebrady/nqptp.git
$ cd nqptp$ autoreconf -fi
$ ./configure --with-systemd-startup
$ make
$ make install
# systemctl enable nqptp
# systemctl start nqptp
general = {
name = "AirMusic";
output_backend = "stdout";
port = 5200; #7000
airplay_device_id_offset = 0;
alac_decoder = "apple";
};
metadata = {
enabled = "yes";
include_cover_art = "yes";
cover_art_cache_directory = "/tmp/shairport-sync/.cache/coverart-snap";
pipe_name = "/tmp/shairport-sync-metadata-snap";
pipe_timeout = 5000;
};
mqtt = {
enabled = "yes";
hostname = "192.168.1.227";
port = 1883;
username = "admin";
password = "zxcvbnm111";
topic = "player/shairport";
publish_parsed = "yes";
empty_payload_substitute = "--";
publish_cover = "yes";
enable_remote = "yes";
};
sessioncontrol = {
active_state_timeout = 30.0;
allow_session_interruption = "yes";
session_timeout = 120;
};
threads = 4
enabled = true
bind_to_address = 0.0.0.0
port = 1780
doc_root = /usr/share/snapserver/snapweb/
enabled = true
bind_to_address = 0.0.0.0
port = 1705
bind_to_address = 0.0.0.0
port = 1704
source = airplay:///shairport-sync?name=Airplay&devicename=AirMusic&port=5200&output_backend=std

