railsbob / puppet-pi_shairport

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pi-Shairport

This is a puppet recipe to install shairport on a Raspberry Pi running raspbian wheezy.

Requirements

  • Raspberry Pi running raspbian wheezy
  • SSH enabled and connected to the network

Getting started

  1. Copy your public key to the Raspberry Pi to allow ssh login without a password.
  cat ~/.ssh/id_rsa.pub | ssh pi@<ip-address> "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"
  1. Bootstrap raspbian wheezy - run this on the Pi.
  curl -sSL https://raw2.github.com/railsbob/puppet-pi_shairport/master/bootstrap.sh | sudo bash

This will install the necessary packages required to run the puppet recipe.

  1. Initiate a puppet run from your machine.
  git clone git@github.com:railsbob/puppet-pi_shairport.git
  cd puppet-pi_shairport
  ./puppet-run.sh <ip-address>

That's it! The command will install shairport and configure it to run on the boot. Reboot the pi and you should see an Airplay logo on your iTunes status bar. Select 'Shairport on raspberrypi' and test the streaming by connecting a headphone to the 3.5mm audio port.

Credits

About


Languages

Language:Ruby 92.7%Language:Puppet 5.3%Language:Shell 2.0%