Game Development Reference
In-Depth Information
Using AirPlayer
There is a project called shairport which works really well on the Pi. It does not
support videos or photos, but streaming music is very stable. We will need to get
the project and compile it. This will only take a few minutes.
# cd /tmp
# git clone -b 1.0-dev git://github.com/abrasive/shairport.git
# cd shairport
# sudo ./configure && sudo make && sudo make install
The files on tmp will be deleted during the next boot, which is fine because the
binaries are now installed on the Pi. Run the server with the following command
and the AirPlay icon will show up on your Apple devices that play music:
# shairport -a 'ShairPortPi'
This will block the console and you will see some messages pop up from time to time
about packets, but that is normal.
Using alsamixer
You can log in to another SSH console and control the volume by using alsamixer.
The Pi only has one output by default, and pressing the up or down keys will
make it louder or quieter.
# alsamixer
Installing RaspBMC
In this section, we will burn a new image on the SD card. You can either use another
SD card or wipe the one you were using until now.
We can use a UI installer made for Windows, Mac OS X, and Linux. Open your
browser and navigate to http://www.raspbmc.com/download . Select the UI
download link and run it on your computer. This burns the network image to SD.
What that means is on the first boot, it will download the latest files, so you need to
have a network connected with Internet access.
The UI installer also gives us an option to install RaspBMC on a USB drive instead of
an SD card. If you select this option, you will need a USB storage device connected
during the first boot. You will also need a keyboard.
The first boot will take about 20 minutes to completely install RaspBMC. It will
reboot and the installation will be complete.
 
Search WWH ::




Custom Search