Difference between revisions of "Shairport Sync"

From ArchWiki
Jump to: navigation, search
(Configuration: Give a bit more detail about the one config option. Also changed the service name to reflect what is in the official repos)
(Configuration: Split out service usage from configuration section. Made it prettier.)
Line 16: Line 16:
 
</nowiki>}}
 
</nowiki>}}
  
If using the {{Pkg|shairport-sync}} from the [[official repositories]], the service name is shairport-sync.service:
 
  
 +
==Starting Shairport Sync==
 +
 +
If using the {{Pkg|shairport-sync}} from the [[official repositories]], the service name is shairport-sync.service. <br>
 +
If using the {{AUR|shairport-git}} from the [[AUR]], the service name is shairport.service.  <br>
 +
The daemon may be started for immediate usage and/or enabled for the next startup as described in [[systemd#Using units]]:
 +
 +
{{hc|To start/enable the service from the official package:|<nowiki>
 
  # systemctl start shairport-sync.service
 
  # systemctl start shairport-sync.service
 +
# systemctl enable shairport-sync.service
 +
</nowiki>}}
 +
 +
{{hc|To start/enable the service from the AUR package:|<nowiki>
 +
# systemctl start shairport.service
 +
# systemctl enable shairport.service
 +
</nowiki>}}

Revision as of 07:40, 30 May 2015

Shairport is a utility for emulating AirPlay functionality on Linux. 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 does not support AirPlay v2 (video and photo streaming).

Installation

Install shairport-sync, from the official repositories.

Alternatively, the shairport-gitAUR package is available from the AUR.

Configuration

The configuration file can be found at /etc/conf.d/shairport. It consists on a single variable allowing arguments to be passed to the service. In the example below, iTunes would label the server as 'My Server Name' rather than the default 'Shairport Sync on <hostname>'.

/etc/conf.d/shairport
# Shairport Daemon options
SHAIRPORT_ARGS="--name='My Server Name'"


Starting Shairport Sync

If using the shairport-sync from the official repositories, the service name is shairport-sync.service.
If using the shairport-gitAUR from the AUR, the service name is shairport.service.
The daemon may be started for immediate usage and/or enabled for the next startup as described in systemd#Using units:

To start/enable the service from the official package:
 # systemctl start shairport-sync.service
 # systemctl enable shairport-sync.service
To start/enable the service from the AUR package:
 # systemctl start shairport.service
 # systemctl enable shairport.service