Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: diode84 on July 30, 2020, 04: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
-
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:
Logitech Media Server
Then click the Search button. You will get about 12 results.
-
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
-
You could also use the rygel extension.
-
That looks interesting, I will look into that. That will take some time.
-
No got nowhere. What is the rygel extension and how would it help.
Thanks
-
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.
-
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?
-
There’s no coding required and the rygel info file explains what to do.
-
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
-
Do you mean how do you install tinycore to a usb stick or how do you stream media from a usb stick?
-
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.
-
Hi diode84
Is this what you are looking to paste into a terminal:
$ 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.
-
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.
-
Hi diode84
Click on the MountTool icon and mount sdc1 or enter this:
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.
-
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.
-
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
-
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.
-
Found TC 9, loaded it and booted. What is the next best step.
Thanks
-
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.
-
Does this apply to TC booted from USB key, or do I need a frugal instal to HDD.
-
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?
-
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.
-
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
-
I have now installed perl but am having great problems navigating to sdb1.
-
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
-
You could try running the script:
$ tce-load -i git
$ git clone https://github.com/Logitech/slimserver-vendor
$ cd slimserver-vendor/CPAN/
$ tce-load -i bash
$ ./buildme.sh
-
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.
-
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/
-
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:~$
-
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.
-
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.
-
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.
-
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
./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