Logitech Media Server
I think I can safely assume that all of us at least one time in ours life listened radio. It’s a great to have “something to play in background” while we enjoy other things. Let’s turn our raspi into greatest radio you’ll ever have.
Logitech back in 2001 introduced first Squeezebox device, It just played music / radio from central server over local network. One great thing about it – it is fully open source. Unfortunately logitech discontinued the line but server and a couple of players preserved and can now be installed on multitude of devices including raspi. Thanks to Allthingpi LMS installation is now painless which we’ll see in a second.
As usual, update and upgrade
sudo apt-get update && sudo apt-get dist-upgrade |
Install required libraries:
sudo apt-get install libjpeg8 libpng12-0 libgif4 libexif12 libswscale2 libavcodec53 |
Instal patch, we’ll use it later on.
sudo apt-get install patch |
Download and install LMS:
wget http://downloads.slimdevices.com/LogitechMediaServer_v7.7.2/logitechmediaserver_7.7.2_all.deb sudo dpkg -i logitechmediaserver_7.7.2_all.deb |
By default LMS starts arter installation but there are a couple of things to do for LMS to work properly on raspi, stop LMS.
sudo service logitechmediaserver stop |
Download package with scripts and patches prepared for raspi to temporary folder of your liking.
wget http://raspberry-at-home.com/files/lms-rpi-raspbian.tar.gz tar -zxvf lms-rpi-raspbian.tar.gz |
Patch bootstrap:
sudo patch /usr/share/perl5/Slim/bootstrap.pm lms-rpi-bootstrap.patch |
Move 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 |
Make sure that permissions are set right
sudo chown -R squeezeboxserver:nogroup /usr/share/squeezeboxserver/ |
Start the Logitech Media Server service.
sudo service logitechmediaserver start |
From now on you can access LMS through your web browser at http://[raspi IP or hostname]:9000 . Using Configure in right bottom corrner ( I have Polish “Ustawienia”) set your library and desired preferences. But, you cannot play your music just yet, head yourself to our Squeezeslave tutorial. There are plenty of Android/iOS apps to control squeezebox devices so if you have Android/iOS device install one of them and control whats raspi’s playing with ease.
Squeezebox on Android
If you have any comments you know what to do, we will be happy to help.
Logitech Media Server
Continue reading here: Video Grabber For Raspberry Pi
Was this article helpful?
Readers' Questions
-
isengrin1 month ago
- Reply
-
NICLA1 year ago
- Reply