Logitech Media Server

Logitech Media Server is a superb package. Thank you Logitech for keeping it free!

This how-to guide also includes setting up Squeezeslave, a Squeezebox client. Squeezebox server and Squeezeslave can coexist on the same Raspberry Pi so at the end of this how-to guide you will have a device that can also play the music it serves.

I use the Squeezebox Controller app on my iPhone as a remote control.

Installing Logitech Media Server

This how-to guide expects that you are using the official Raspian image downloaded and prepped as per the home page of this site.

1. Update some stuff and install some libraries. If you are prompted to reboot your Pi after this step, type reboot and hit enter.

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

2. Download Logitech Media Server and install.

wget http://downloads.slimdevices.com/LogitechMediaServer_v7.7.2/logitechmediaserver_7.7.2_all.deb
sudo dpkg -i logitechmediaserver_7.7.2_all.deb

3. Stop the Logitech Media Server service.

sudo service logitechmediaserver stop

4. Download and extract some files used for this how-to guide to save you having to build everything yourself.

wget http://allthingspi.webspace.virginmedia.com/files/lms-rpi-raspbian.tar.gz
tar -zxvf lms-rpi-raspbian.tar.gz

5. Patch the bootstrap perl module.

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

6. Move some files into place, create symbolic links, refresh dynamic linker bindings.

sudo mv arm-linux-gnueabihf-thread-multi-64int /usr/share/squeezeboxserver/CPAN/arch/5.14/
sudo mv libmediascan.so.0.0.0 libfaad.so.2.0.0 /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/libmediascan.so.0.0.0 /usr/local/lib/libmediascan.so
sudo ln -s /usr/local/lib/libmediascan.so.0.0.0 /usr/local/lib/libmediascan.so.0
sudo ln -s /usr/local/lib/libfaad.so.2.0.0 /usr/local/lib/libfaad.so
sudo ln -s /usr/local/lib/libfaad.so.2.0.0 /usr/local/lib/libfaad.so.2
sudo ldconfig

7. Fix some permissions.

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

8. Start the Logitech Media Server service.

sudo service logitechmediaserver start

Point your browser at "http://<pi ipaddress here>:9000" and configure the Logitech Media Server. After this you should be able to connect with a player, or if you want to use the same Pi to play the music as well as serve it, continue on.........

Installing Squeezeslave

1. Get sound up and running.

apt-get install alsa-base
modprobe snd_bcm2835
echo snd_bcm2835 >> /etc/modules

2. Move squeezeslave binary.

mv squeezeslave /usr/local/sbin

3. Set squeezeslave to start on bootup.

mv squeezeslave.init /etc/init.d/squeezeslave
mv squeezeslavestart /usr/local/sbin/
patch /etc/init.d/logitechmediaserver lms.init.patch
update-rc.d -f logitechmediaserver defaults
update-rc.d -f squeezeslave defaults
Last updated: 23/07/12