Last week, I downloaded Shairport from github (using the 1.0-dev
branch), compiled it and installed it as a service on my WandBoard. I
tested it, and then disabled it since I normally want Squeezelite to
have full control of my USB audio device.
So, last evening my 18-year-old son comes into my listening room and
wants to play me a track from his iPhone (Radioactive cover by
Pentatonix & Lindsey Stirling). I was already working on my Laptop doing
something else, so I fired up putty and typed a few lines at the
prompt:
Code:
--------------------
sudo su
systemctl stop squeezelite
systemctl enable shairport
systemctl start shairport
--------------------
My son was able to select the Wandboard from his phone and play the
track, which sounded pretty good. After that, I put things back how
they were:
Code:
--------------------
systemctl stop shairport
systemctl disable shairport
systemctl start squeezelite
exit
--------------------
This made me think how cool it would be if I could do that from the
Jivelite menus or the web UI. I really don't want to keep an Apple AP
express running at all times next to my CSOS set-up, but if I could
switch between the two modes at the drop of a hat, that would be neat.
My shairport service was created by creating
/usr/lib/systemd/system/shairport.service as follows. The
RemainAfterExit=yes seems to be necessary to keep the service running.
Code:
--------------------
[Unit]
Description=Shairport AirTunes receiver
After=sound.target
Requires=avahi-daemon.service
After=avahi-daemon.service
[Service]
ExecStart=/usr/local/bin/shairport -o ao -d alsa -o dev=plughw:3,0
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
--------------------
This all just FYI, no action required :-)
------------------------------------------------------------------------
dsdreamer's Profile: http://forums.slimdevices.com/member.php?userid=12588
View this thread: http://forums.slimdevices.com/showthread.php?t=98544
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix