It is assumed that OSMC is installed and running on the Raspberry, and the Airport service should be disabled (though it doesn't have to be, but who needs two Airplay services). OSMC is based on Debian 8 (Jessie).
If you get Error opening terminal
when opening nano
or alsamixer
, update the current TERM
:
export TERM=xterm
Enable backports:
sudo nano /etc/apt/sources.list
Add the following line:
deb http://ftp.debian.org/debian jessie-backports main
Then update the package lists:
sudo apt-get update
Install alsa-utils and shairport-sync:
sudo apt-get -t jessie-backports install alsa-utils
sudo apt-get -t jessie-backports install shairport-sync
Configure Shairport (under general
set name = "OSMC"
or whatever name you like):
sudo nano /etc/shairport-sync.conf
Enable Shairport auto-start:
sudo systemctl enable shairport-sync
Extra: How to auto-mount a USB HDD/SSD
sudo nano /etc/fstab
Add the following line, but in /dev/sdx#
replace x
with your drive letter and #
with the partition number (use fdisk -l
to list them) and instead of my-drive
you can use a custom name. Also if your drive's partition is not ext4
formatted, use its format accordingly.
/dev/sdx# /mnt/my-drive ext4 defaults,noatime 0 0
Hi there, I've got
shairport-sync
installed and up and running successfully on OSMC (RPi 3), but audio only comes through the TV via HDMI. I want the audio fromshairport-sync
to come through the analogue output only.I'm not sure what your configuration was, but would you mind sharing the
alsa
section of your config file that you used to get it working on OSMC?