Skip to content

Instantly share code, notes, and snippets.

@simonhaenisch
Last active February 15, 2018 00:50
Show Gist options
  • Save simonhaenisch/28663e7baa05cf52a3ef6844b845782c to your computer and use it in GitHub Desktop.
Save simonhaenisch/28663e7baa05cf52a3ef6844b845782c to your computer and use it in GitHub Desktop.
RPi: OSMC & shairport-sync #raspberrypi

Raspberry Pi with OSMC and shairport-sync

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
@tristan-k
Copy link

W: GPG-Fehler: http://ftp.debian.org jessie-backports InRelease: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
gpg --keyserver pgpkeys.mit.edu --recv-key  8B48AD6246925553 7638D0442B90D010    
gpg -a --export 8B48AD6246925553 7638D0442B90D010 | sudo apt-key add -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment