Setting up Raspberry Pi as a Squeezebox Server


This guide describes how to setup a Raspberry Pi as a Squeezebox server. It assumes a clean installation of Rasbian is setup and ready on the RPi. This will allow you to stream music from a central server to one or more players via your network. You can combine this with a wireless network and power your RPi from a battery to make this a truely portable music system.

Player clients can be either ‘proper’ Squeezebox products or you can use software players together in the same system. I will detail in a seperate post how to setup the RPi to be a Squeezebox client, you can have the player running on the same device as the server or you can have it running on a seperate RPi. You can also choose to synchronise multiple devices to the same music source and therefore stream the same music to multiple rooms!

Start by updating libraries and installing some dependencies:

sudo apt-get update; sudo apt-get dist-upgrade
sudo apt-get install libjpeg8 libpng12-0 libgif4 libexif12 libswscale2 libavcodec53

Download and install the Logitech Media Server:

sudo dpkg -i logitechmediaserver_7.7.2_all.deb
sudo service logitechmediaserver stop

Download some helpful scripts from All Things Pi:

tar -zxvf lms-rpi-raspbian.tar.gz

Patch the Perl bootstrap module:

sudo patch /usr/share/perl5/Slim/ lms-rpi-bootstrap.patch

Copy files to the correct locations for running and create some symbolic links:

sudo mv arm-linux-gnueabihf-thread-multi-64int /usr/share/squeezeboxserver/CPAN/arch/5.14/
sudo mv /usr/local/lib
sudo mv /usr/share/squeezeboxserver/Bin/arm-linux/faad /usr/share/squeezeboxserver/Bin/arm-linux/faad.old
sudo mv faad /usr/share/squeezeboxserver/Bin/arm-linux
sudo ln -s /usr/local/lib/ /usr/local/lib/
sudo ln -s /usr/local/lib/ /usr/local/lib/
sudo ln -s /usr/local/lib/ /usr/local/lib/
sudo ln -s /usr/local/lib/ /usr/local/lib/
sudo ldconfig

Set permissions for the server files:

sudo chown -R squeezeboxserver:nogroup /usr/share/squeezeboxserver/

Start the server running:

sudo service logitechmediaserver start

Navigate to (where is the IP of your RPi) and configure the Squeezebox server.