This is the 3rd part of my quadrology of posts on how to install Logitech Music Server. Since you need a server to work with the clients, I recommend reading the earlier blogs before continuing:
Installing the client software (Squeezelite)
The name of the software client that we will install is called is squeezelite and this is what actually plays the music. In this case I’m going to install the squeezelite client on the same PI as the server but the steps are the same even if installing on a new PI which are
(1) Install the OS
(2) Use raspi-config to set the hostname for the raspberry pi (if you are installing it on the LMS server, then it will be set to something like lmsserver). If using a seperate PI, i would set the hostname to something like “livingroom”, “kitchen” or wherever you plan to place the PI to play the music.
and the go to advanced options and then set hostname.
(3) Install the squeezelite client as follows:
The rest of this section on installing squezzelite is entirely based on the great work done by gerretnl at
but I would recommend following his blog or this one so you dont get confused.
Install some libraries:
-y libflac-dev libfaad2 libmad0
make a work directory for squeezelite and install
wget -O squeezelite-armv6hf http:
Move it to the usr directory, and make it executable:
Starting Squeezelite on startup
In order to get the client running at startup execute the following steps:
You will have to set the soundcard in the settings script.
Open the settings script with nano:
And search for this line:
If you are installing squeezelite on the lmsserver, then you can uncomment this line and change it to something like
but it you are installing squeezelite on a separate pi then you can leave it alone and it will pickup the default hostname.
Then search for this line:
Save the file at this point.
Hardcoding the MAC address at this point will save you some pain later on as the client seems to pick up the wifi MAC address even if connected via ethernet.
You can figure out which MAC address to use by typing
sudo ifconfig -a | grep Hwaddr
eth0 Link encap:Ethernet HWaddr b8:27:xx:xx:15:xx
wlan0 Link encap:Ethernet HWaddr b8:27:xx:xx:40:xx
If the PI is setup to use ethernet then use the eth0 HWaddr, otherwise use the wlan0 HWaddr
If you are using default ALSA output then you may want to use raspi-config to force the audio over HDMI or 3.5mm jackplug (and I dont recommend using the jackplug)
Now run alsa-mixer and set the output to about 80%
When you complete this tutorial, and if you experience bad sound quality, or distortion, then open the settings script again and search for this line:
And uncomment the line (remove the hash (“#”)), this will increase the output buffer size for squeezelite.
I have mine set as follows:
In the settings script other things can be set too, see the comment for more info.
Save and close the settings script file.
This is how you test the daemon script:
The command prompt should return immediately. Now check if the squeezelite process is up:
It should return something like this (the number will be different):
To stop squeezelite:
You can also update squeezelite with this script. When there is a new version of squeezelite (check on the squeezelite homepage) then execute this command:
This will stop squeezelite, download and update it, and start it again.
And that’s it, you’re done, if you now reboot the raspberry (sudo reboot), squeezelite should be started automatically.
At this point, you can point your webbrowser to the LMS server IP address:9000
Then you can select the 1st client you have installed and try to play some music.
Just repeat the above steps for each additional room you would like to setup.
A little video of it all working