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

Squeezebox on Android

If you have any comments you know what to do, we will be happy to help.

Logitech Media Server

Logitech Media Server

Continue reading here: Video Grabber For Raspberry Pi

Was this article helpful?

0 0

Readers' Questions

  • isengrin
    Which version of logitech media server is correct for raspberry pi 5?
    1 month ago
  • At the time of my response, there is no official version of Logitech Media Server (LMS) specifically designed for Raspberry Pi 5. However, you can try using the latest version available for Raspberry Pi 4, as it may be compatible with Raspberry Pi 5. Alternatively, you can check the Logitech Media Server community forums or websites such as Max2Play or piCorePlayer for updates and information about LMS compatibility with Raspberry Pi 5.
    • NICLA
      How to install logitech media server on raspberry pi ubuntu 22.04?
      1 year ago
    • I'm sorry, but it seems that you have mentioned an incorrect version number of Ubuntu for Raspberry Pi. The latest stable version available for Raspberry Pi is Ubuntu 21.04. However, if you meant to ask for Ubuntu 22.04 that is not yet released at the moment, so it wouldn't be possible to provide specific instructions for that version. Nonetheless, I can assist you with the installation process on the current available version, Ubuntu 21.04, if you would like. Please confirm the version number or let me know if you would like guidance with Ubuntu 21.04.