Multi Room Audio Part 2 Installing The Logitech Music Server

This blog describes how to install the logitech Music Server on a Raspberry PI as part of a whole house audio system but I  would recommend that you read these blogs first

Step 1: Background Reading




and if you dont have the hardware yet then use my handy affiliate links to get it now 🙂

Raspberry Pi 3 Model B 1.2 GHz Quad-Core ARM Cortex-A53 Motherboard – Green

SanDisk Ultra Imaging 8 GB microSDHC Memory Card plus SD Adapter up to 48 MB/s, Class 10

Raspberry Pi Official Universal Power Supply Unit

and finally, you can get started, so the first thing is to install the OS (see here)

Step 2: Install The OS

at this point I would use raspi-config to set the hostname of the raspberry pi to something descriptive such as lmsserver

sudo raspi-config

Step 3:  (Optional) Mount the NAS Drive Music

If you have your music on a hard drive or usb directly connected usb stick then you wont need to follow this step so jump to Step 4.

Now, after reading the earlier blogs, Im assuming that you have all of your music installed on a NAS drive, so you will want to mount that music.

First run raspi-config and select option 4 set “Wait for Network at Boot” to yes

$ sudo raspi-config

Next you will need to edit /etc/fstab and add the location of where your music is installed.

$ sudo nano /etc/fstab

and add the following line (change the details as required for you)

// /mnt/samba/ cifs username=guest,password=,sec=ntlm

and press cntrl-X to save

then run the following command to mount the filesystem:

sudo mount -a

Now you can check if the filesystem is mounted by typing


If you see the entry for /mnt/samba then you are good to go. If it hasnt mounted, you will need to play around with the entry in /etc/fstab to your requirements until it mounts.

Step 4:Installing Logitech Music Server (LMS)

LMS is the brains of the music. Its not a player but a server that is responsible for serving and syncronising music to the clients (to be discussed later).

Its basically a large perl file that was donated by Logitech to the community so many thanks to Logitech for that.

So now we need to install some libraries:

sudo apt-get install -y libsox-fmt-all libflac-dev libfaad2 libmad0

Then we get the latest nightly build of the software

wget -O logitechmediaserver_all.deb $(wget -q -O - "")

Then we install it

sudo dpkg -i logitechmediaserver_all.deb

and finally change some permissions

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

Now reboot the OS

sudo reboot

log back into the raspberry pi and type the following command

ps -ef | grep squeezebox

If you see something like this, you have successfully installed the logitech music server

/usr/bin/perl /usr/sbin/squeezeboxserver –prefsdir /var/lib/squeezeboxserver/prefs –logdir /var/log/squeezeboxserver/ –cachedir /var/lib/squeezeboxserver/cache –charset=utf8 –norestart

Step 5: Setting Up Logitech Music Server

Logitech Music Server (LMS) accepts connections on port 9000 so your browser to connect as follows:


It will ask you to create an account on (which is free) and then where is the location of your music (/mnt/samba in my case). It will then create a database of all our music (this will take a while depending on how much you have).

I would grab a coffee at this point or read the next blog on how to setup the client (in this case on the same PI)








Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s