Initial source: http://trouch.com/2012/08/03/airpi-airplay-audio-with-raspberry/
What is AirPi?
AirPi is the RaspberryPi implementation of Apple’s protocol called AirPlay.
Using AirPlay you can send audio and video streaming from you Apple Device (ipad, iPod, iPhone, Mac) to RaspberryPi. This implementation is sending only the sound.
Why all this trouble?
Do you know those expensive devices called Sonos?
I want to do the same using a Raspberry Pi and a cheap radio I got for free with a magazine ( popcube.de ).
I will post pictures here.
Why AirPi and not XBMC’s AirPlay support?
I guess because XBMC is using a lot of resources … I can’t find another reason why someone would not use it directly.
Install and setup AirPi
sudo su –
apt-get install git libmodule-build-perl libao-dev libssl-dev libcrypt-openssl-rsa-perl libio-socket-inet6-perl libwww-perl avahi-utils cpanminus -y
# and the rest is repeating the install instructions from the original post
./shairport.pl -a AirPiTest
# check it works then Ctrl-C
cp shairport.init.sample /etc/init.d/shairport
chmod a+x shairport
update-rc.d shairport defaults
# edit DAEMON_ARGS line: eg DAEMON_ARGS=”-w $PIDFILE -a AirPiFinal”
The script will start automatically on reboot.
Improvements if you have problems with the sound:
Add in the /etc/init.d/shairport the following lines in the routine start:
#set audio to the jack
amixer cset numid=3 1
#set volume to max
amixer set PCM 1dB
amixer set PCM 1dB-
amixer cset numid=1 100
© Copyright 2013 Sorin Mustaca, All rights Reserved. Written For: Sorin Mustaca on Cybersecurity
Check www.mustaca.com for the IT Consulting services I offer.
Visit www.itsecuritynews.info for latest security news in English
Besuchen Sie http://de.itsecuritynews.info für IT Sicherheits News auf Deutsch