Last active
January 18, 2016 00:06
-
-
Save hepto/3ebc99877951beacdb3b to your computer and use it in GitHub Desktop.
Raspberry Pi Dedicated Airplay Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Install rasberry pi | |
| Write image to SD card | |
| grab Raspbian Jessie image from https://www.raspberrypi.org/downloads/raspbian/ | |
| unount card then | |
| sudo dd bs=1m if=path_of_your_image.img of=/dev/rdiskn | |
| login locally pi/raspberry | |
| sudo raspi-config | |
| -- resize SD card | |
| -- set hostname | |
| connect to network | |
| sudo nano /etc/wpa_supplicant/wpa_supplicant.conf | |
| network={ | |
| ssid="The_ESSID_from_earlier" | |
| psk="Your_wifi_password" | |
| } | |
| update packages | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| configure the audio by creating | |
| /etc/modprobe.d/audio.conf | |
| that contains | |
| blacklist snd-bcm2835 | |
| options snd_usb_audio index=0 | |
| and reboot | |
| now install shairport-sync | |
| sudo apt-get install autoconf libtool libdaemon-dev libasound2-dev libpopt-dev libconfig-dev | |
| sudo apt-get install avahi-daemon libavahi-client-dev | |
| sudo apt-get install libssl-dev | |
| sudo apt-get install libsoxr-dev | |
| sudo apt-get install git | |
| cd ~ | |
| git clone https://github.com/mikebrady/shairport-sync.git | |
| cd shairport-sync | |
| autoreconf -i -f | |
| ./configure --with-alsa --with-avahi --with-ssl=openssl --with-metadata --with-soxr --with-systemd | |
| make | |
| getent group shairport-sync &>/dev/null || sudo groupadd -r shairport-sync >/dev/null | |
| getent passwd shairport-sync &> /dev/null || sudo useradd -r -M -g shairport-sync -s /usr/bin/nologin -G audio shairport-sync >/dev/null | |
| sudo make install | |
| sudo systemctl enable shairport-sync | |
| reboot just for the fun of it | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment