How to Install Logitech Media Server (lms) in Debian VM


dlandon

Recommended Posts

I installed Ironicbadger's owncloud Debian VM image available here: http://lime-technology.com/forum/index.php?topic=31880.0

 

Use the 'xl console' and log in to your VM.

 

You can't use the Debian instructions to install lms from the squeezeserver website because they are out of date.

 

Follow this procedure to install lms:

Edit the /etc/apt/sources.list using the nano editor and add the following line to access the lms repository:

deb http://debian.slimdevices.com stable main

 

apt-get update

 

apt-get install logitechmediaserver

 

lms is installed at: /usr/share/squeezeboxserver

 

lms data: /var/lib/squeezeboxserver

 

lms preferences are at: /var/lib/squeezeboxserver/prefs

 

Make a directory for your playlists:

cd /var/lib/squeezeboxserver

mkdir playlists

 

lms will be started whenever your VM boots up.

 

If you need to start/stop lms:

/etc/init.d/logitechmediacenter stop

/etc/init.d/logitechmediacenter start

 

That's it.  Now access your VM using the ip address from the 'ip addr' command.  e.g. http://192.168.1.125:9000

 

You will log in and configure lms.

 

If you want access to your unRAID shares, you'll need to edit the /etc/fstab on the VM and add entries:

//192.168.1.10/Music  /mnt/Music  cifs username=****,password=****,iocharset=utf8,file_mode=0777,dir_mode=0777,noperm,_netdev,noatime 0 0

 

To mount shares:

mkdir /mnt/Music

mount -a

 

You'll need a fixed IP address on your unRAID server because the share has to be accessed by IP address, not the "Tower" name.

 

This fstab entry is if your share is password protected.  If the share is not password protected, you can access the share as public.

 

More instructions on how the shares are mounted is on the owncloud VM post.

 

Your shares will be mounted whenever the VM is booted.

 

Link to comment

Is this a 64bit debian install? which version of debian?

 

You may find you need to add multiarch support  (https://wiki.debian.org/Multiarch/HOWTO) and certain ia32 packages to get a fully working install going. As far as I remember, a plain 64bit jessie install ends up with the wrong versions of certain libs (faad particularly, possibly also sox) used which means transcoding fails. This is most noticeable on internet radio streams but it will depend exactly what you use it for.

Link to comment

Is this a 64bit debian install? which version of debian?

 

You may find you need to add multiarch support  (https://wiki.debian.org/Multiarch/HOWTO) and certain ia32 packages to get a fully working install going. As far as I remember, a plain 64bit jessie install ends up with the wrong versions of certain libs (faad particularly, possibly also sox) used which means transcoding fails. This is most noticeable on internet radio streams but it will depend exactly what you use it for.

 

Ironicbadgers DebianVM owncloud image is 64 bit.  Wheezy Version 7.4.

Link to comment

what do you get if you run faad (from the cli)? something like this

 

$ faad -help
*********** Ahead Software MPEG-4 AAC Decoder V2.7 ******************

Patched for Squeezebox Server:
* ALAC decoder integrated
* Seeking support with -j and -e switches
* STDIN support
* Source at http://svn.slimdevices.com/repos/slim/7.5/trunk/vendor/faad2

 

or something like this

 

$ faad -help
*********** Ahead Software MPEG-4 AAC Decoder V2.7 ******************

Build: Oct 24 2013
Copyright 2002-2004: Ahead Software AG
hxxp://www.audiocoding.com
Floating point version

Link to comment

what do you get if you run faad (from the cli)? something like this

 

$ faad -help
*********** Ahead Software MPEG-4 AAC Decoder V2.7 ******************

Patched for Squeezebox Server:
* ALAC decoder integrated
* Seeking support with -j and -e switches
* STDIN support
* Source at http://svn.slimdevices.com/repos/slim/7.5/trunk/vendor/faad2

 

or something like this

 

$ faad -help
*********** Ahead Software MPEG-4 AAC Decoder V2.7 ******************

Build: Oct 24 2013
Copyright 2002-2004: Ahead Software AG
hxxp://www.audiocoding.com
Floating point version

 

Neither.  faad command not found.

Link to comment

what do you get if you run faad (from the cli)? something like this

 

$ faad -help
*********** Ahead Software MPEG-4 AAC Decoder V2.7 ******************

Patched for Squeezebox Server:
* ALAC decoder integrated
* Seeking support with -j and -e switches
* STDIN support
* Source at http://svn.slimdevices.com/repos/slim/7.5/trunk/vendor/faad2

 

or something like this

 

$ faad -help
*********** Ahead Software MPEG-4 AAC Decoder V2.7 ******************

Build: Oct 24 2013
Copyright 2002-2004: Ahead Software AG
hxxp://www.audiocoding.com
Floating point version

 

I installed it and got this - second one.

 

EDIT: I tried Internet radio and it works fine for me.  Not sure what capability faad adds that I might be missing.

Link to comment

faad is used for aac transcoding IIRC so you need to hit particular stations.

 

LMS ships patched versions of a few binaries like that so using packaged ones means stuff like that doesn't work, faad will have been available locally as it is shipped as part of LMS, I imagine it just is not on your path.

 

Anyway the point is that a vanilla install of LMS on a 64 bit debian is not a completely working LMS setup. I think all that is required is adding multiarch and installing ia32-libs. I would argue that makes it more suitable for a separate vm appliance but then I'm not doing the work :)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.