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=xtermEnable backports:
sudo nano /etc/apt/sources.listAdd the following line:
deb http://ftp.debian.org/debian jessie-backports main
Then update the package lists:
sudo apt-get updateInstall alsa-utils and shairport-sync:
sudo apt-get -t jessie-backports install alsa-utils
sudo apt-get -t jessie-backports install shairport-syncConfigure Shairport (under general set name = "OSMC" or whatever name you like):
sudo nano /etc/shairport-sync.confEnable Shairport auto-start:
sudo systemctl enable shairport-syncExtra: 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