Upgrade Debian
At this step, it’s a good idea to upgrade pre-installed packages :
# aptitude update
# aptitude upgrade
Change audio output
To force audio output to stereo jack, a single line is required :
# amixer cset numid=3 1
0 -> HDMI
1-> Stereo Jack
Install shairport
Before download and compile shairport, we need to install prerequisites :
# aptitude install git libao-dev libssl-dev libcrypt-openssl-rsa-perl libio-socket-inet6-perl libwww-perl avahi-utils
Then download shairport sources and compile it :
# git clone https://github.com/albertz/shairport.git shairport
# cd shairport
# make
Finally, launch shairport foreground :
# ./shairport.pl -a AirPi
You can now use your iDevice to try AirPlay audio, don’t forget to plug an headphone or speakers into the 3.5mm stereo jack.
If you want or need your Pi load automatically shairport, follow next procedure :
root@raspberrypi:~/shairport# make install
root@raspberrypi:~/shairport# cp shairport.init.sample /etc/init.d/shairport
root@raspberrypi:~/shairport# cd /etc/init.d
root@raspberrypi:/etc/init.d# chmod a+x shairport
root@raspberrypi:/etc/init.d# update-rc.d shairport defaults
Before starting the daemon, we have to add the AP Name in the launch parameters. Edit the file using nano shairport then change the DAEMON_ARGS variable line so it looks like to : [shairport file]
DAEMON_ARGS="-w $PIDFILE -a AirPi"
Replace AirPi by whatever you want, save, quit and start the service to enjoy shairport in background and your AirPi :
root@raspberrypi:/etc/init.d# ./shairport start
At this step, it’s a good idea to upgrade pre-installed packages :
# aptitude update
# aptitude upgrade
Change audio output
To force audio output to stereo jack, a single line is required :
# amixer cset numid=3 1
0 -> HDMI
1-> Stereo Jack
Install shairport
Before download and compile shairport, we need to install prerequisites :
# aptitude install git libao-dev libssl-dev libcrypt-openssl-rsa-perl libio-socket-inet6-perl libwww-perl avahi-utils
Then download shairport sources and compile it :
# git clone https://github.com/albertz/shairport.git shairport
# cd shairport
# make
Finally, launch shairport foreground :
# ./shairport.pl -a AirPi
You can now use your iDevice to try AirPlay audio, don’t forget to plug an headphone or speakers into the 3.5mm stereo jack.
If you want or need your Pi load automatically shairport, follow next procedure :
root@raspberrypi:~/shairport# make install
root@raspberrypi:~/shairport# cp shairport.init.sample /etc/init.d/shairport
root@raspberrypi:~/shairport# cd /etc/init.d
root@raspberrypi:/etc/init.d# chmod a+x shairport
root@raspberrypi:/etc/init.d# update-rc.d shairport defaults
Before starting the daemon, we have to add the AP Name in the launch parameters. Edit the file using nano shairport then change the DAEMON_ARGS variable line so it looks like to : [shairport file]
DAEMON_ARGS="-w $PIDFILE -a AirPi"
Replace AirPi by whatever you want, save, quit and start the service to enjoy shairport in background and your AirPi :
root@raspberrypi:/etc/init.d# ./shairport start
Comments