Hardware Reference
In-Depth Information
Static network
To use MusicBox in a network with static IP addresses, you have to edit /etc/network/
interfaces . The lines that configure the wired network look like this:
allow-hotplug eth0
iface eth0 inet dhcp
For a static wired network, you should change it to something like this:
iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.1
Change the IP addresses as applicable for your network. For more about finding and
setting your IP address, see Hack #13 .
Updating
When a new version of MusicBox is released, the only way to update it is to do a new
installation. Note that if you update the kernel or other packages on the system man-
ually without a new MusicBox installation, it could eventually break things, so a fresh
installation is preferred.
Wouter van Wijk
Turn Your Pi into a Radio
HACK 49
Sure, it's easy to play an entire library of music files from your Raspberry
Pi. But how about using the Pi itself (which doesn't have any sort of built-
in radio transmitter) as a radio?
The PiFM project, created by Oliver Mattos and Oskar Weigl, was designed to turn your
Raspberry Pi into a radio. By switching a GPIO pin from on to off at a high frequency,
you'll build yourself a makeshift Rapberry Pi FM transmitter.
To get started, download the PiFM files from http://www.icrobotics.co.uk/wiki/
images/c/c3/Pifm.tar.gz to your Raspberry Pi and extract the tarball in the Pi's home
folder. You'll have four files there:
sound.wav
PiFm.py
pifm.c
pifm
 
Search WWH ::




Custom Search