Where can I get the latest installation files for Logitech Media Server and how do I install properly?
(I am running it on a Raspberry Pi 2 and I had to re-install it several times due to a failing SD card. So I will answer this question mostly as a reminder for myself.)
At the moment of writing latest version is 7.9.2.
It is availlable here. You can find an overview of several other versions here. Copy the
link
to a file according to your system into clipboard.Download the file to your system with
wget link
. Install thefile
withsudo dpkg -i file
. This will fail to install due to missing dependencies.Fix it with
sudo apt -f install
.Start it with
sudo service logitechmediaserver start
.Check if running with
top
.Connect to the server via Web-GUI availlable at
http://IPofYOURserver:9000
.Settings are in
/var/lib/squeezeboxserver/prefs/server.prefs
.This includes directories for the media library but also settings for local clients, like the size of the information shown in the display of an old Squeezebox Boom.
In case you want to avoid setting up everything new you can override
server.prefs
. To be able to do this you have tosudo systemctl stop logitechmediaserver
.Then copy the file and
sudo chown squeezeboxserver:nogroup /var/lib/squeezeboxserver/prefs/server.prefs
.Finally,
sudo systemctl start logitechmediaserver
.UPDATE: Maybe the user
squeezeboxserver
needs to be added to groupusers
. Also, locations for Playlists should bechmod 775
.If you use a firewall like
ufw
handling ports is explained here.Other files can be found here: http://wiki.slimdevices.com/index.php/Logitech_Media_Server_file_locations#Ubuntu_.3E12.04
I upgraded to Ubuntu 20.04 and that broke my installation but I figured out how to make it work again:
After some tempering around, I considered to do a fresh install. So I deleted the old stuff in /var/lib/squeezeboxserver/
Then I got me a fresh deb-packet for version 8.0 (beta) from: http://downloads.slimdevices.com/nightly/?ver=8.0
Personally I used the most plattform version but depending on plattform just select a fitting deb:
Installed it with: dpkg -i logitechmediaserver_8.0.0_1588799628_all.deb
As I tried older versions too and even tried a git checkout I hope I lack no detail another script has already done for me without noticing it.
If the dpkg installation not already added a user and group please do so:
Create a directory for the pid file:
And give it to that user and group:
Same goes for the stuff in /var/lib/squeezeboxserver/
The problem comes with the startup script in /etc/init.d. It simply does not work, as Ubuntu 20.04 does not have the start-stop-daemon any more. It is simply linked to /bin/true which might work for some scripts but does not work for the logitechmediaserver. I tried a C implementation for this program, but it had it hinges so I dropped the start-stop-daemon and modified the startup program arcordingly.
Just store the old startup script away (just to be save) and copy this content into an editor of your choice:
Yeah, it's not pretty, but it does the job for me and will hopefully help you too. You have to place it in /etc/init.d under the name logitechmediaserver
After that you have to run the following command to make systemctl happy:
Just give it a test run with starting it:
You should be able to log in with your webbrowser to http://YourServerIP:9000/ and configure it.
And test if it does shut down again:
When everything has worked out, enable the service: