Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: diode84 on July 30, 2020, 01:09:39 PM

Title: Would Tiny Core run Logitech Media Server
Post by: diode84 on July 30, 2020, 01:09:39 PM
Hello to all on Forum.
I have Tiny Core-Current iso on USB on a Wyse Thin Client, 1GB ram, 1GHZ, Via CPU.
It's brilliant and I wondered if it could run Logitech Media Server to make a music server.
Has anyone tried this or has any advise.
Thanks.
diode84
Title: Re: Would Tiny Core run Logitech Media Server
Post by: Rich on July 30, 2020, 01:29:06 PM
Hi diode84
This should get you started. Go to the forums search page:
http://forum.tinycorelinux.net/index.php?action=search
Enter this in the  Search for  field:
Code: [Select]
Logitech Media ServerThen click the  Search  button. You will get about 12 results.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: diode84 on July 31, 2020, 09:44:41 AM
Thanks for that Rich
All replies had a lot of code. What I need to know before I go any further is what language is the code as I will need to learn to us this.
It may be too complicated for me, a beginner, but I will try..
I do run pCorePlayer for the Pi but that's easy, its ready formed but I need similar for x86 PC and not Daphile as it is not open source.
Thanks again.
diode84
 
Title: Re: Would Tiny Core run Logitech Media Server
Post by: Juanito on July 31, 2020, 10:23:51 AM
You could also use the rygel extension.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: diode84 on July 31, 2020, 12:12:54 PM
That looks interesting, I will look into that. That will take some time.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: diode84 on August 09, 2020, 10:17:42 AM
No got nowhere. What is the rygel extension and how would it help.
Thanks
Title: Re: Would Tiny Core run Logitech Media Server
Post by: Juanito on August 09, 2020, 10:22:42 AM
http://tinycorelinux.net/11.x/armv7/tcz/rygel.tcz.info

It's a media streamer - I've used it on an RPi3 to stream music/videos for a number of years.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: diode84 on August 09, 2020, 11:19:06 AM
juanito,
I may have to admit that this is too complicated for me. my understanding of code is very limited.
My wish was to make a piCorePlayer for x86 using Tiny Core Linux but I am out of my depth.
So its back to Daphile and closed source software,
I will try to learn about code, any advise?
Title: Re: Would Tiny Core run Logitech Media Server
Post by: Juanito on August 09, 2020, 11:55:03 PM
There’s no coding required and the rygel info file explains what to do.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: diode84 on August 11, 2020, 07:51:23 AM
I am still working on it
But how do I read a usb stick
And should I be using Tiny Core or Core plus to start.
Thanks
Title: Re: Would Tiny Core run Logitech Media Server
Post by: Juanito on August 11, 2020, 08:08:31 AM
Do you mean how do you install tinycore to a usb stick or how do you stream media from a usb stick?
Title: Re: Would Tiny Core run Logitech Media Server
Post by: diode84 on August 11, 2020, 08:31:07 AM
No I have copied code from rygel extension to text file to a usb key. I now want to paste it into terminal on Tiny Core and see what happens.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: Rich on August 11, 2020, 09:23:16 AM
Hi diode84
Is this what you are looking to paste into a terminal:
Code: [Select]
                $ xdg-user-dirs-update
                $ sudo /usr/local/etc/init.d/dbus start
                $ /usr/local/lib/tracker-2.0/tracker-extract &
                $ /usr/local/lib/tracker-2.0/tracker-miner-fs &
                $ gdbus call -e -d org.freedesktop.DBus -o /org/freedesktop/DBus -m org.freedesktop.DBus.StartServiceByName org.freedesktop.Tracker1 0
                $ rygel & [to stream av files]

Open the file in an editor. Highlight a line (without the $ sign) using the left mouse button. Then center click in a terminal and hit Enter.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: diode84 on August 11, 2020, 10:14:07 AM
Yes I have that saved to a usb key but cant find how to read the usb in Tiny Core. It installs it as sdc1. What can I read it with.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: Rich on August 11, 2020, 12:37:07 PM
Hi diode84
Click on the  MountTool  icon and mount  sdc1  or  enter this:
Code: [Select]
mount /mnt/sdc1
Then click on the  Editor  icon (looks like a fountain pen with blue handle)  or  right click the desktop and  SystemTools->Editor.
Then in the editor  File->Open File...  and navigate to  /mnt/sdc1/  and find the file you saved.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: Paul_123 on August 11, 2020, 02: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.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: Rich on August 11, 2020, 06: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
Title: Re: Would Tiny Core run Logitech Media Server
Post by: diode84 on August 12, 2020, 10:02:50 AM
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.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: diode84 on August 12, 2020, 10:43:41 AM
Found TC 9, loaded it and booted. What is the next best step.
Thanks
Title: Re: Would Tiny Core run Logitech Media Server
Post by: Paul_123 on August 12, 2020, 11:05:06 AM
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.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: diode84 on August 12, 2020, 11:59:04 AM
Does this apply to TC booted from USB key, or do I need a frugal instal to HDD.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: Paul_123 on August 12, 2020, 05: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?
Title: Re: Would Tiny Core run Logitech Media Server
Post by: diode84 on August 13, 2020, 12: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.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: diode84 on August 13, 2020, 10:46:13 AM
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
Title: Re: Would Tiny Core run Logitech Media Server
Post by: diode84 on August 13, 2020, 12:27:18 PM
I have now installed perl but am having great problems navigating to sdb1.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: diode84 on August 14, 2020, 12: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
Title: Re: Would Tiny Core run Logitech Media Server
Post by: Juanito on August 14, 2020, 12: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
Title: Re: Would Tiny Core run Logitech Media Server
Post by: Paul_123 on August 14, 2020, 03: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.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: Juanito on August 14, 2020, 04: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/
Title: Re: Would Tiny Core run Logitech Media Server
Post by: diode84 on August 14, 2020, 07: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:~$

Title: Re: Would Tiny Core run Logitech Media Server
Post by: Paul_123 on August 14, 2020, 10:31:20 AM
This is perl 5, version 28, subversion 0 (v5.28.0) built for i486-linux-thread-m                                                                                    ulti

Yes, perl is the source of the incompatibility.  LMS included binaries are expecting.  i386-linux-thread-mulit-64int.

It's much easier to build a perl with that arch tag than trying to build the CPAN files for the perl that is built into TinyCore9.    I can followup with instructions a bit later today.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: diode84 on August 14, 2020, 10:36:23 AM
This is perl 5, version 28, subversion 0 (v5.28.0) built for i486-linux-thread-m                                                                                    ulti

Yes, perl is the source of the incompatibility.  LMS included binaries are expecting.  i386-linux-thread-mulit-64int.

It's much easier to build a perl with that arch tag than trying to build the CPAN files for the perl that is built into TinyCore9.    I can followup with instructions a bit later today.
Yes that would be good.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: diode84 on September 02, 2020, 10:17:45 AM
This is perl 5, version 28, subversion 0 (v5.28.0) built for i486-linux-thread-m                                                                                    ulti

Yes, perl is the source of the incompatibility.  LMS included binaries are expecting.  i386-linux-thread-mulit-64int.

It's much easier to build a perl with that arch tag than trying to build the CPAN files for the perl that is built into TinyCore9.    I can followup with instructions a bit later today.
I would really appreciate any suggestions to get this going.
Title: Re: Would Tiny Core run Logitech Media Server
Post by: Paul_123 on September 02, 2020, 07:15:16 PM
Sorry, forgot to post the instructions.....

The only dependency should be the compiletc.tcz extension.

I see you have a disk mounted at /mnt/sdb1.  Its going to be important that the disk is always mounted this way, as we are going to install a persistent perl to the drive, and once configured and installed you won't be able to change it.  (Without rebuilding perl)

-make a source directory there....../mnt/sdb1/source
-get perl 5.26.3 from https://www.cpan.org/src/README.html
-extract the source
-configure the perl with the following
Code: [Select]
./Configure -des -Dprefix=/mnt/sdb1/perl5.26 -Duseshrplib -Dusethreads -Duse64bitint -Darchname=i386-linux-thread-multi-64int
-once configured, run make
-then make install

From here, you just need to make sure you use this version of perl to start LMS, if all your using is LMS on this system, then just remove the perl extension, and add /mnt/sdb1/perl5.26/bin to your path.....


You also may need to install some extra perl libraries to your system, especially if you are using https based streaming services.  One common one is IO::Socket::SSL

You can use cpan to install them