WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Would Tiny Core run Logitech Media Server  (Read 9481 times)

Online Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1228
Re: Would Tiny Core run Logitech Media Server
« Reply #15 on: August 11, 2020, 05:18:01 PM »
Back to the LMS question.....It should run LMS just fine.   The dependency chain is not complicated......perl is the biggest dependency.  There are a few extra perl modules needed, but for a start it will be fine.  As long as you are running a newer version of TC, then you should have a new enough version of perl.  Currently the LMS git includes i386 binaries up to perl5.26.   I would pick the version of TC that uses perl 5.26.    If you go newer, then you will have to do some compiling.

Let me know if you want more help.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11515
Re: Would Tiny Core run Logitech Media Server
« Reply #16 on: August 11, 2020, 09:47:58 PM »
Hi diode84
... Currently the LMS git includes i386 binaries up to perl5.26.   I would pick the version of TC that uses perl 5.26. ...
TC9 should be suitable. It uses perl 5.26.1:
http://tinycorelinux.net/9.x/x86/tcz/perl5.tcz.info

Offline diode84

  • Newbie
  • *
  • Posts: 25
Re: Would Tiny Core run Logitech Media Server
« Reply #17 on: August 12, 2020, 01:02:50 PM »
Back to the LMS question.....It should run LMS just fine.   The dependency chain is not complicated......perl is the biggest dependency.  There are a few extra perl modules needed, but for a start it will be fine.  As long as you are running a newer version of TC, then you should have a new enough version of perl.  Currently the LMS git includes i386 binaries up to perl5.26.   I would pick the version of TC that uses perl 5.26.    If you go newer, then you will have to do some compiling.

Let me know if you want more help.
Yes please I could do with a bit of help.
First a link to the correct version of TC would be good.

Offline diode84

  • Newbie
  • *
  • Posts: 25
Re: Would Tiny Core run Logitech Media Server
« Reply #18 on: August 12, 2020, 01:43:41 PM »
Found TC 9, loaded it and booted. What is the next best step.
Thanks

Online Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1228
Re: Would Tiny Core run Logitech Media Server
« Reply #19 on: August 12, 2020, 02:05:06 PM »
The easiest next step as a test

Mount a separate Drive for persistent data storage.   The drive name below is just an example.

cd /mnt/persistent-storage

Get the current package archive from http://downloads.slimdevices.com/nightly/index.php
I would get the latest 7.9.3 package, you want the file for Logitech Media Server: Unix Tarball (i386, x86_64, i386 FreeBSD, ARM EABI, PowerPC)

extract the tarball into your persistent storage.   Then just try running from command line

perl slimserver.pl

If that works, then you just need to make some startup scripts.  A large part of LMS could be spun into an extension, but the cache directory needs to be persistent.

Offline diode84

  • Newbie
  • *
  • Posts: 25
Re: Would Tiny Core run Logitech Media Server
« Reply #20 on: August 12, 2020, 02:59:04 PM »
Does this apply to TC booted from USB key, or do I need a frugal instal to HDD.

Online Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1228
Re: Would Tiny Core run Logitech Media Server
« Reply #21 on: August 12, 2020, 08:22:03 PM »
You should be able to use whatever version you want.  Im not familiar with booting from USB.  Can you use the same stick as persistent storage?

Where is your music library going to live?

Offline diode84

  • Newbie
  • *
  • Posts: 25
Re: Would Tiny Core run Logitech Media Server
« Reply #22 on: August 13, 2020, 03:08:34 AM »
I will install TC to the HDD before I proceed. May take a bit of time as I am a beginner.
Music will be stored on an external HDD.

Offline diode84

  • Newbie
  • *
  • Posts: 25
Re: Would Tiny Core run Logitech Media Server
« Reply #23 on: August 13, 2020, 01:46:13 PM »
The latest TC in now installed to HDD and it boots fine.
I have USB key, sdb1, with directory called Storage. I have unpacked the LMS
file you recommended to it and can find slimserver.pl. If I input perl slimserver.pl in terminal
terminal says cant find perl.
Any ideas

Offline diode84

  • Newbie
  • *
  • Posts: 25
Re: Would Tiny Core run Logitech Media Server
« Reply #24 on: August 13, 2020, 03:27:18 PM »
I have now installed perl but am having great problems navigating to sdb1.
« Last Edit: August 13, 2020, 03:56:00 PM by diode84 »

Offline diode84

  • Newbie
  • *
  • Posts: 25
Re: Would Tiny Core run Logitech Media Server
« Reply #25 on: August 14, 2020, 03:39:03 AM »
Got as far as running slimserver in perl in terminal and got an error message:
If you'e running some unsupported Linux/Unix platform, please use the buildme.sh script located here,
 h**ps://github.com/Logitech/slimserver-vendor/tree/public/7.9/CPAN
Any ideas

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14755
Re: Would Tiny Core run Logitech Media Server
« Reply #26 on: August 14, 2020, 03:51:14 AM »
You could try running the script:
Code: [Select]
$ tce-load -i git
$ git clone https://github.com/Logitech/slimserver-vendor
$ cd slimserver-vendor/CPAN/
$ tce-load -i bash
$ ./buildme.sh

Online Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1228
Re: Would Tiny Core run Logitech Media Server
« Reply #27 on: August 14, 2020, 06:43:12 AM »
Can you show the full error?   That platform should be supported, unless perl is built with different flags.  It might be easier to build a matching version of perl.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14755
Re: Would Tiny Core run Logitech Media Server
« Reply #28 on: August 14, 2020, 07:02:39 AM »
I think the problem might be that all of this string would have to match between the pre-built packages and tc-9.x:

perl5/site_perl/5.26.1/i486-linux-thread-multi/
« Last Edit: August 14, 2020, 07:25:55 AM by Juanito »

Offline diode84

  • Newbie
  • *
  • Posts: 25
Re: Would Tiny Core run Logitech Media Server
« Reply #29 on: August 14, 2020, 10:08:43 AM »
Can you show the full error?   That platform should be supported, unless perl is built with different flags.  It might be easier to build a matching version of perl.
The full error is
tc@box:~$ perl /mnt/sdb1/Storage/LMS/LMS/slimserver.pl
The following modules failed to load: DBI EV XML::Parser::Expat HTML::Parser JSO                                                                                     N::XS Digest::SHA1 YAML::XS Sub::Name


This is perl 5, version 28, subversion 0 (v5.28.0) built for i486-linux-thread-m                                                                                     ulti

Copyright 1987-2018, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
*******

NOTE:

If you're running some unsupported Linux/Unix platform, please use the buildme.s                                                                                     h
script located here:

https://github.com/Logitech/slimserver-vendor/tree/public/7.9/CPAN

If 7.9 is outdated by the time you read this, Replace "7.9" with the major versi                                                                                     on
You should never need to do this if you're on Windows or Mac OSX. If the install                                                                                     ers
don't work for you, ask for help and/or report a bug.

*******

                       
Exiting..
tc@box:~$