Welcome! Log In Create A New Profile

Advanced

Howto: Airplay on a Pogoplug

Posted by ubermacin 
Howto: Airplay on a Pogoplug
February 01, 2014 11:51PM
I don't know how many folks know about (or might care about) running an airplay service on their plug. I have an E02 (Pink) pogoplug with wheezy installed and I stumbled on this tutorial for a pi:Raspberry Pi Airplay Tutorial. It was pretty close to what I needed to get started. I first purchased this Syba USB sound card for about $8.50 (price changes though). The tutorial above is very well done, here is the process I followed:

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

At this point, everything is basically installed, lets first set the volume (mine was defaulted to max)

alsamixer

left and right to change which part your changing, up and down to set (I set my mic to 0 and main to 20). Esc will save the settings. Plug in speakers and lets test it:

./shairport.pl -a Pogoplay

Now you should be able to airplay to the pogo plug (of course, you can change the name from Pogoplay to whatever you wish).

Ctrl-c will end it once you have tested it. I continued to follow the tutorial above to have the shairport script run on startup:

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

In that last script, change the following line to include -a Pogoplay

DAEMON_ARGS="-w $PIDFILE -a Pogoplay"

Ctrl-x, yes, and you will be ready to go! You will have to run the script manually the first time, and then should load automatically at each boot.

/etc/init.d/shairport start

Thanks again to Adam Burkepile from the tutorial linked at the beginning, I really only had to tweak a few small things to make it work on mine.



Edited 1 time(s). Last edit at 06/12/2015 11:47PM by ubermacin.
Re: Howto: Airplay on a Pogoplug
May 26, 2017 08:35PM
Has anyone managed to do something like this except using the newer and supported Shairport-Sync? I'd like to be able to use the Pogoplug Pro as an airplay receiver amongst other things.

Edit: I've got this working at least at a base level. There are a lot of options in the settings and compiling stage for shairport-sync. I'll try to write up a tutorial.



Edited 1 time(s). Last edit at 05/27/2017 10:26AM by cdlenfert.
Attachments:
open | download - airplay-pogo.jpg (23.6 KB)
Re: Howto: Airplay on a Pogoplug
May 31, 2017 09:33PM
Cool! It's funny, I just found a few pogo plugs in my basement I had with this setup. I think a few years ago I had a power outage and of course, the partitions crashed. I never fooled around with fixing them. I'd be interested to see what you come up with though. I wanted to get wheezy into read-only mode to keep it from that problem
Re: Howto: Airplay on a Pogoplug
May 31, 2017 11:37PM
Oh nice. I didn't know you could set up a read only mode for Wheezy. For a dedicated device like an airplay speaker that makes a lot of sense. I managed to tweak settings a bit and make the volume control a lot better. In my testing the Pogoplug hasn't dropped a stream nearly as much as my old original airport express (1st gen wireless G model)
Re: Howto: Airplay on a Pogoplug
June 01, 2017 12:21AM
cdlenfert Wrote:
-------------------------------------------------------
> Oh nice. I didn't know you could set up a read onl
> y mode for Wheezy. For a dedicated device like an
> airplay speaker that makes a lot of sense. I manag
> ed to tweak settings a bit and make the volume con
> trol a lot better. In my testing the Pogoplug hasn
> 't dropped a stream nearly as much as my old origi
> nal airport express (1st gen wireless G model)

You don't need make a read-only rootfs. Use Ext3 or Ext4 file system and it will survive all power outages.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Howto: Airplay on a Pogoplug
June 01, 2017 10:54AM
Thanks bodhi. Good to know.

Here's my guide for shairport-sync

A majority of the steps are available at the github page (link below), but steps for multiple platforms are provided and it can get confusing on which ones to follow. Here’s what you need to do to get shairport-sync running on a PogoPlug Pro running Debian Wheezy and a cheap usb sound card (specifically this one - http://amzn.to/2rokplS)
https://github.com/mikebrady/shairport-sync

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


There are some additional installs for things like encryption and libsoxr-based resampling. I don’t think I need these, and don’t really know what resampling is??

git clone https://github.com/mikebrady/shairport-sync.git

cd shairport-sync

autoreconf -i -f


There are a lot of options for how you compile shairport-sync, here are the ones I’ve elected to use (metadata and pipe are optional):

./configure --with-alsa --with-avahi --with-metadata --with-systemv —with-pipe

make

sudo make install

sudo update-rc.d shairport-sync defaults 90 10


Configuring shairport-sync

cd /etc

nano shairport-sync.conf


By default shairport-sync will use the devices hostname, let’s change it! (optional)
under “general” find “name =…”
uncomment by removing the // and add your desired name in the parenthesis removing %H

Look for the option “mixer_control_name”, if you have my same sound card, uncomment this line and enter “Speaker” in the parenthesis.
If you have a different sound card run command “alsamixer” and look at the name of column on the left. Mine says “Speaker” but yours could say “PCM” or something else entirely. Use this name for “mixer_control_name”.

Start shairport-sync

/etc/init.d/shairport-sync restart


Now go forth and Airplay everything! shairport-sync should start automatically on a reboot (takes a minute or two).
Re: Howto: Airplay on a Pogoplug
June 01, 2017 12:59PM
Re: Howto: Airplay on a Pogoplug
June 01, 2017 02:58PM
If you're using Debian Jessie shairport-sync is available in jessie-backports.

Ray
Re: Howto: Airplay on a Pogoplug
June 01, 2017 05:41PM
Thanks Ray! That would have been nice to know when I set it up on my Pi Zero. On the main git page it says it would be back ported to Jessie if there was enough interest. I guess they had enough interest.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: