Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3178

HowTo Install Logitech Media Server on armel and Jessie (7 replies)

$
0
0
Install Logitech Media Server, LMS

LMS 7.9 has not been officially released yet. But someone has compiled a version of it for armel processors. The file is found here:

Link to compiled armel version of LMS 7.9.0

But there are no detailed instructions on how to use it. The only direction is:
“extract to /usr/share/squeezeboxserver/CPAN/arch/5.20/"

If you go to your Terminal now and cd to: /usr/share/squeezeboxserver/CPAN/arch/5.20
you will get:
-bash: cd: /usr/share/squeezeboxserver/CPAN/arch/5.20: No such file or directory

First we install LMS 7.9.0, even though we know it would not work because the link to the nightly below here is not compiled for armel. The idea is to give us the directory structure we need to extract the compiled version into. And this is a crucial bit of information not provided in the link above.

PLEASE NOTE: The download link below here might now work. As LeggoMyEggo pointed out below, the link changes often. It's the nightly build. The best way to resolve this problem is go here:

Nightly build link to LMS

Then right click on "Logitech Media Server: Debian Installer Package (i386, x86_64, ARM EABI, PowerPC)" then if you're using Firefox, do "Copy Link Location," paste the result in a text document, and then add "wget" in front of that result and that will be your download link. I believe that will give you the latest build link. Use that instead of the one below here, which you should now use as a reference to compare with your results.

wget http://downloads.slimdevices.com/nightly/7.9/sc/858e1e0/logitechmediaserver_7.9.0~1466175427_all.deb
dpkg -i logitechmediaserver_7.9.0~1465358341_all.deb

You are mostly likely to get a dependency error. Follow through with the directions and do:

apt-get -f install

Perl will be happy and your version of it might be: 5.20.2-3+deb8u5
And now the needed directory we need is created, you can check using, again:

cd: /usr/share/squeezeboxserver/CPAN/arch/5.20

Stop server:
service logitechmediaserver stop

And you can tell your current install won't work by issuing:
service logitechmediaserver start

You are likely to get:

"Making sure that Logitech Media Server is not running first: start-stop-daemon: warning: failed to kill 10653: No such process
No process in pidfile '/var/run/logitechmediaserver.pid' found running; none killed.
Starting Logitech Media Server."

Despite that last line, if you cd to /var/log/squeezeboxserver
and then:
nano: server.log,
you will find plenty of this line:
2016-06-18 22:42:32 Logitech Media Server died. Restarting.
2016-06-18 22:42:37 Logitech Media Server died. Restarting.
2016-06-18 22:42:42 Logitech Media Server died. Restarting.
2016-06-18 22:42:47 Logitech Media Server died. Restarting.
2016-06-18 22:42:52 Logitech Media Server died. Restarting.

To fix this, go to the Terminal

The first thing we do here is add a normal user to the system. So far, after the install of Jessie with bohdi's rootfs ‘Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2”, “root” is the only user. And root is not a normal user, it's a super-user: the maker and destroyer of all things Linux.

adduser (YOUR CHOSEN USER NAME)

Follow the prompts and accept defaults, or play around with more additions from here:
Add user to Debian

Then: cd /tmp, this is where you will download the compiled version of LMS 7.9 for Jessie on armel
wget http://server.vijge.net/static/squeezebox/arm-linux-gnueabi-thread-multi-64int.tar.gz

Then you extract it to the directory we needed and created earlier. This one: /usr/share/squeezeboxserver/CPAN/arch/5.20

tar -xf arm-linux-gnueabi-thread-multi-64int.tar.gz -C /usr/share/squeezeboxserver/CPAN/arch/5.20

And finally, reboot the box:
reboot -n

If you're lucky as I was, LMS 7.9 is now working. And you can test by entering the IP address of your box: X.X.X.X:9000 in your browser. And there you will see the web-interface you will use to configure the server.

I've done what's described here and it works for me. I was able to listen to music from a USB stick. During configuration, if you external drive is mounted to media, you will find it there, along with your tunes, videos, pictures, etc. You don't need to monkey around with fstab for the server. But you should ensure your USB sticks or hard drive are mounting, or have mounted.

As regards this, I've chosen to use fstab for now, as USBmount is no longer supported. I got irritated with pmount, which is another alternative being maintained.

Before I go, thanks to bohdi, Gravelash and others who pushed me down the river on this one. I learned a few things along the way. And no damage was done. Now I have two USB sticks with installed and configured packages. If one fails, I simply plug the other and change directory settings, etc. Plenty more to learn, so off I go.....

Viewing all articles
Browse latest Browse all 3178

Trending Articles