Difference between revisions of "Shairport Sync"

From ArchWiki
Jump to: navigation, search
(Created a page describing the basics of setting up shairport on Arch)
 
m (Removed category "Apple")
Line 1: Line 1:
 
[[Category:Streaming]]
 
[[Category:Streaming]]
[[Category:Apple]]
 
 
Shairport is a utility for emulating the functionality of an AirPort Express on a linux box. However, since it has been created by reverse-engineering Apple's key used in its AirPort Express, be advised that the functionality may be removed at Apple's discretion.
 
Shairport is a utility for emulating the functionality of an AirPort Express on a linux box. However, since it has been created by reverse-engineering Apple's key used in its AirPort Express, be advised that the functionality may be removed at Apple's discretion.
  

Revision as of 13:14, 18 May 2013

Shairport is a utility for emulating the functionality of an AirPort Express on a linux box. However, since it has been created by reverse-engineering Apple's key used in its AirPort Express, be advised that the functionality may be removed at Apple's discretion.

Installation

Shairport is available in the AUR through three different packages:

The third package provides ready made systemd scripts and hence comes recommended. The configuration described below will assume you have installed the third package. It is also recommended to install the package perl-io-socket-inet6 in order to prevent the daemon from giving warnings about the unavailability of inet6 and also for compatibility with iTunes.

Configuration

The configuration is managed by the perl script /usr/bin/shairport.pl. For novice users, the defaults should be left as is, unless they wish to set a password for the AirPlay server. In this case, they should change line 56 from my $password = ''; to my $password = '<yourpassword>'; where <yourpassword> is to be replaced by the password of your choice.

For starting the service, simply issue the command:

#systemctl start shairport@<nameofserver>.service

where <nameofserver> can be any name of your choice. While it has not been tested, it would be good if the name avoided any special characters. For automatically starting the service at launch, issue the command:

#systemctl enable shairport@<nameofserver>.service

The result should be an AirPort station by the name <nameofserver> which should be able to accept output from any Apple product.