Howto: Airplay on a Pogoplug February 01, 2014 10:51PM |
Registered: 11 years ago Posts: 19 |
apt-get install git libao-dev libssl-dev libcrypt-openssl-rsa-perl libio-socket-inet6-perl libwww-perl avahi-utils libmodule-build-perl make libavahi-client-dev libasound2-dev build-essential pkg-config alsa-utils git clone https://github.com/njh/perl-net-sdp.git perl-net-sdp cd perl-net-sdp perl Build.PL sudo ./Build sudo ./Build test sudo ./Build install cd .. git clone https://github.com/hendrikw82/shairport.git cd shairport make
alsamixer
./shairport.pl -a Pogoplay
make install sudo cp shairport.init.sample /etc/init.d/shairport cd /etc/init.d chmod a+x shairport update-rc.d shairport defaults nano shairport
DAEMON_ARGS="-w $PIDFILE -a Pogoplay"
/etc/init.d/shairport start
Re: Howto: Airplay on a Pogoplug May 26, 2017 07:35PM |
Registered: 7 years ago Posts: 156 |
Re: Howto: Airplay on a Pogoplug May 31, 2017 08:33PM |
Registered: 11 years ago Posts: 19 |
Re: Howto: Airplay on a Pogoplug May 31, 2017 10:37PM |
Registered: 7 years ago Posts: 156 |
Re: Howto: Airplay on a Pogoplug May 31, 2017 11:21PM |
Admin Registered: 13 years ago Posts: 18,570 |
Re: Howto: Airplay on a Pogoplug June 01, 2017 09:54AM |
Registered: 7 years ago Posts: 156 |
apt-get install build-essential git xmltoman apt-get install autoconf automake libtool libdaemon-dev libasound2-dev libpopt-dev libconfig-dev apt-get install avahi-daemon libavahi-client-dev
git clone https://github.com/mikebrady/shairport-sync.git cd shairport-sync autoreconf -i -f
./configure --with-alsa --with-avahi --with-metadata --with-systemv —with-pipe make sudo make install sudo update-rc.d shairport-sync defaults 90 10
cd /etc nano shairport-sync.conf
/etc/init.d/shairport-sync restart
Re: Howto: Airplay on a Pogoplug June 01, 2017 11:59AM |
Admin Registered: 13 years ago Posts: 18,570 |
Re: Howto: Airplay on a Pogoplug June 01, 2017 01:58PM |
Registered: 9 years ago Posts: 442 |
Re: Howto: Airplay on a Pogoplug June 01, 2017 04:41PM |
Registered: 7 years ago Posts: 156 |
Re: Howto: Airplay on a Pogoplug January 19, 2018 05:49PM |
Registered: 7 years ago Posts: 156 |
apt-get install shairport-sync
root@debian:~# systemctl status shairport-sync ● shairport-sync.service - ShairportSync AirTunes receiver Loaded: loaded (/lib/systemd/system/shairport-sync.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2018-01-19 15:37:48 PST; 12s ago Docs: man:shairport-sync(7) file:///usr/share/doc/shairport-sync/README.md.gz https://github.com/mikebrady/shairport-sync Process: 1870 ExecStart=/usr/bin/shairport-sync --daemon $DAEMON_ARGS (code=exited, status=0/SUCCESS) Main PID: 1872 (shairport-sync) CGroup: /system.slice/shairport-sync.service └─1872 /usr/bin/shairport-sync --daemon Jan 19 15:37:48 debian systemd[1]: Starting ShairportSync AirTunes receiver... Jan 19 15:37:48 debian systemd[1]: Started ShairportSync AirTunes receiver.
alsamixerOnly to find out that it wasn't installed. I don't know much about Alsa. The mixer was available but default under Wheezy I think. I tried installing alsa-utils and still no mixer, but the following worked to check for the USB sound card:
root@debian:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0
systemctl restart shairport-sync
Re: Howto: Airplay on a Pogoplug March 19, 2018 12:08PM |
Registered: 7 years ago Posts: 156 |
Re: Howto: Airplay on a Pogoplug May 04, 2018 09:31AM |
Registered: 7 years ago Posts: 156 |
alsa = { output_device = "hw:1,0";
Re: Howto: Airplay on a Pogoplug May 04, 2018 05:02PM |
Admin Registered: 13 years ago Posts: 18,570 |
Re: Howto: Airplay on a Pogoplug May 08, 2018 10:23PM |
Registered: 7 years ago Posts: 156 |
Re: Howto: Airplay on a Pogoplug May 09, 2018 04:05AM |
Admin Registered: 13 years ago Posts: 18,570 |
root@T5325:~# uname -a Linux T5325 4.16.1-kirkwood-tld-1 #1 PREEMPT Mon Apr 9 00:51:18 PDT 2018 armv5tel GNU/Linux
root@T5325:~# cat /etc/apt/sources.list deb http://ftp.us.debian.org/debian jessie main deb http://security.debian.org/ jessie/updates main contrib non-free deb http://http.debian.net/debian jessie-updates main contrib deb-src http://http.debian.net/debian jessie-updates main contrib
root@T5325:~# amixer Simple mixer control 'Headphone',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Front Left: Playback 15 [48%] [-24.00dB] [on] Front Right: Playback 14 [45%] [-25.50dB] [on] Simple mixer control 'Speaker',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Front Left: Playback 22 [71%] [-13.50dB] [on] Front Right: Playback 22 [71%] [-13.50dB] [on] Simple mixer control 'Speaker Mix AUXI2SPK',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Speaker Mix DAC2SPK',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Speaker Mix LI2SPK',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Speaker Mix MIC12SPK',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Speaker Mix MIC22SPK',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'SpeakerOut Mux',0 Capabilities: enum Items: 'Vmid' 'HPOut Mix' 'Speaker Mix' 'Mono Mix' Item0: 'Vmid' Simple mixer control 'SpeakerOut N Mux',0 Capabilities: enum Items: 'RN/-R' 'RP/+R' 'LN/-R' 'Vmid' Item0: 'Vmid' Simple mixer control 'PCM',0 Capabilities: pvolume Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Front Left: Playback 22 [71%] [-1.50dB] Front Right: Playback 22 [71%] [-1.50dB] Simple mixer control 'LineIn',0 Capabilities: cvolume Capture channels: Front Left - Front Right Limits: Capture 0 - 31 Front Left: Capture 23 [74%] [0.00dB] Front Right: Capture 23 [74%] [0.00dB] Simple mixer control 'Mic 1 Boost',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 2 Mono: 1 [50%] [20.00dB] Simple mixer control 'Mic 2 Boost',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 2 Mono: 1 [50%] [20.00dB] Simple mixer control 'Mic1',0 Capabilities: cvolume cvolume-joined Capture channels: Mono Limits: Capture 0 - 31 Mono: Capture 23 [74%] [0.00dB] Simple mixer control 'Mic2',0 Capabilities: cvolume cvolume-joined Capture channels: Mono Limits: Capture 0 - 31 Mono: Capture 23 [74%] [0.00dB] Simple mixer control 'AuxI',0 Capabilities: cvolume Capture channels: Front Left - Front Right Limits: Capture 0 - 31 Front Left: Capture 23 [74%] [0.00dB] Front Right: Capture 23 [74%] [0.00dB] Simple mixer control 'AuxOut Mux',0 Capabilities: enum Items: 'Vmid' 'HPOut Mix' 'Speaker Mix' 'Mono Mix' Item0: 'Mono Mix' Simple mixer control 'Auxout',0 Capabilities: pvolume pswitch Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Front Left: Playback 22 [71%] [-13.50dB] [on] Front Right: Playback 22 [71%] [-13.50dB] [on] Simple mixer control 'Mono Mix ADC2MONO_L',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Mono Mix ADC2MONO_R',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Mono Mix AUXI2MONO',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Mono Mix DAC2MONO',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Mono Mix LI2MONO',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Mono Mix MIC12MONO',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Mono Mix MIC22MONO',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'AB-D Amp Mux',0 Capabilities: enum Items: 'AB Amp' 'D Amp' Item0: 'AB Amp' Simple mixer control 'Digital Boost',0 Capabilities: volume volume-joined Playback channels: Mono Capture channels: Mono Limits: 0 - 3 Mono: 2 [67%] [12.00dB] Simple mixer control 'HP Mix AUXI2HP',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'HP Mix DAC2HP',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'HP Mix LI2HP',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'HP Mix MIC12HP',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'HP Mix MIC22HP',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'HPL Mix ADC2HP_L',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'HPR Mix ADC2HP_R',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] Simple mixer control 'Left Capture Mix HPMixerL',0 Capabilities: cswitch cswitch-joined Capture channels: Mono Mono: Capture [off] Simple mixer control 'Left Capture Mix Left AuxI',0 Capabilities: cswitch cswitch-joined Capture channels: Mono Mono: Capture [off] Simple mixer control 'Left Capture Mix LineInL',0 Capabilities: cswitch cswitch-joined Capture channels: Mono Mono: Capture [off] Simple mixer control 'Left Capture Mix Mic1',0 Capabilities: cswitch cswitch-joined Capture channels: Mono Mono: Capture [off] Simple mixer control 'Left Capture Mix Mic2',0 Capabilities: cswitch cswitch-joined Capture channels: Mono Mono: Capture [off] Simple mixer control 'Left Capture Mix MonoMixer',0 Capabilities: cswitch cswitch-joined Capture channels: Mono Mono: Capture [off] Simple mixer control 'Left Capture Mix SPKMixer',0 Capabilities: cswitch cswitch-joined Capture channels: Mono Mono: Capture [off] Simple mixer control 'Left Headphone Mux',0 Capabilities: enum Items: 'Vmid' 'HP Left Mix' Item0: 'Vmid' Simple mixer control 'Rec',0 Capabilities: cvolume Capture channels: Front Left - Front Right Limits: Capture 0 - 31 Front Left: Capture 11 [35%] [0.00dB] Front Right: Capture 11 [35%] [0.00dB] Simple mixer control 'Right Capture Mix HPMixerR',0 Capabilities: cswitch cswitch-joined Capture channels: Mono Mono: Capture [off] Simple mixer control 'Right Capture Mix LineInR',0 Capabilities: cswitch cswitch-joined Capture channels: Mono Mono: Capture [off] Simple mixer control 'Right Capture Mix Mic1',0 Capabilities: cswitch cswitch-joined Capture channels: Mono Mono: Capture [off] Simple mixer control 'Right Capture Mix Mic2',0 Capabilities: cswitch cswitch-joined Capture channels: Mono Mono: Capture [off] Simple mixer control 'Right Capture Mix MonoMixer',0 Capabilities: cswitch cswitch-joined Capture channels: Mono Mono: Capture [off] Simple mixer control 'Right Capture Mix Right AuxI',0 Capabilities: cswitch cswitch-joined Capture channels: Mono Mono: Capture [off] Simple mixer control 'Right Capture Mix SPKMixer',0 Capabilities: cswitch cswitch-joined Capture channels: Mono Mono: Capture [off] Simple mixer control 'Right Headphone Mux',0 Capabilities: enum Items: 'Vmid' 'HP Right Mix' Item0: 'HP Right Mix'
Re: Howto: Airplay on a Pogoplug May 09, 2018 09:59AM |
Registered: 7 years ago Posts: 156 |
root@debian:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0
root@debian:~# amixer amixer: Mixer attach default error: No such file or directory
root@debian:~# apt-get install alsa-utils Reading package lists... Done Building dependency tree Reading state information... Done alsa-utils is already the newest version (1.1.3-1).
alsamixer -c 1
root@debian:~# id -Gn "root"|grep -c "audio"
root@debian:~# usermod -a -G audio root
aplay -l
pcm.!default { type hw card 0 } ctl.!default { type hw card 0 }but changing card 0 to the card number of your sound device (1 in my case).
Re: Howto: Airplay on a Pogoplug May 09, 2018 11:57PM |
Admin Registered: 13 years ago Posts: 18,570 |
Re: Howto: Airplay on a Pogoplug December 31, 2019 10:03AM |
Registered: 7 years ago Posts: 156 |
root@pogoplugpro:~/shScripts# ls -l total 20 drwxrwxrwx 2 root root 4096 Dec 29 14:27 . drwx------ 6 root root 4096 Dec 29 20:06 .. -rwxrwxrwx 1 root root 104 Dec 29 13:56 shairportend.sh -rwxrwxrwx 1 root root 118 Dec 29 13:57 shairportfade.sh -rwxrwxrwx 1 root root 41 Dec 29 14:24 shairportstart.sh
root@pogoplugpro:~/shScripts# cat shairportstart.sh #!/bin/sh /usr/bin/pkill arecord& exit 0
root@pogoplugpro:~/shScripts# cat shairportend.sh #!/bin/sh /usr/bin/arecord -D plughw:CARD=Set -f dat | /usr/bin/aplay -D plughw:CARD=Set -f dat& exit 0
root@pogoplugpro:~/shScripts# bash -x shairportend.sh + exit 0 root@pogoplugpro:~/shScripts# + /usr/bin/arecord -D plughw:CARD=Set -f dat + /usr/bin/aplay -D plughw:CARD=Set -f dat Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
root@pogoplugpro:~/shScripts# bash -x shairportstart.sh + exit 0 root@pogoplugpro:~/shScripts# + /usr/bin/pkill arecord
root@pogoplugpro:~/shScripts# + /usr/bin/arecord -D plughw:CARD=Set -f dat + /usr/bin/aplay -D plughw:CARD=Set -f dat Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo root@pogoplugpro:~/shScripts# Aborted by signal Terminated...