Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: lykkedk on November 03, 2020, 01:32:50 PM

Title: [Solved] Non "official" .tcz host
Post by: lykkedk on November 03, 2020, 01:32:50 PM
 :) .. Hi here .. Long time no see ya'!

Well i'am test-building .tcz(s) for use with squeezelite & camilladsp to make auto-samplerate switching possible...
(Short explanation i know  ::))
Those .tcz's i'am creating i need to try to host somewhere for testing, changing my /opt/tcemirror to point to this location.

I don't know much about website-building, nor how it works, and it's hard to find information howto create one's own tcemirror.

I was hoping that someone here could help.?
NB. :: As it for testing purpose i rather (for a start at least) only want to use some free service for this.

Rgds; Jesper.
Title: Re: Non "official" .tcz host
Post by: Rich on November 03, 2020, 02:16:08 PM
Hi lykkedk
Maybe something here is of some use:
http://forum.tinycorelinux.net/index.php/topic,24379.0.html
Title: Re: Non "official" .tcz host
Post by: lykkedk on November 03, 2020, 02:37:52 PM
Rich; thank's  :)

The link was usefull, but unfortunately don't give me much information howto host my .tcz's.
I can use them on my own test-rig (when placed there of cause), but i really should try it like in real world tce-load -wo foo.tzc / tce-load -i foo.tcz  ;D

Rgds; Jesper.

Title: Re: Non "official" .tcz host
Post by: Paul_123 on November 03, 2020, 04:54:05 PM
All you need is a web server that can host files....   Nothing special.

tce-load only cares about the .tcz, .tcz.md5.txt and .tcz.dep files.

All of the other extra files are only used by the application browsers/updaters
Title: Re: Non "official" .tcz host
Post by: Rich on November 03, 2020, 05:09:20 PM
Hi lykkedk
You need to set up this type of directory structure to hold your  .tcz  files:
Code: [Select]
http://tinycorelinux.net/11.x/armv6/tcz/Replace  11.x  with the version you are running.
Replace  armv6  with the processor you are running.

If you set up a web server on your LAN at 192.168.1.100, placing this into  /opt/tcemirror  of the machine trying to fetch
an extension should work:
Code: [Select]
http://192.168.1.100/
Title: SOLVED Re: Non "official" .tcz host
Post by: lykkedk on November 04, 2020, 01:07:44 PM
Pheyyyyyw...  ;D

Success, thank's guy's...

Code: [Select]
tc@piCorePlayer:~$ cat /opt/tcemirror
https://repo.picoreplayer.org/repo/
tc@piCorePlayer:~$ sudo nano /opt/tcemirror
tc@piCorePlayer:~$ cat /opt/tcemirror
http://192.168.1.29/
tc@piCorePlayer:~$ tce-load -wi camilladsp_samplerate_control.tcz
camilladsp_samplerate_control.tcz.dep OK
py_websocket.tcz.dep OK
Downloading: py_six.tcz
Connecting to 192.168.1.29 (192.168.1.29:80)
py_six.tcz           100% |*************************************************************************************************************************| 20480  0:00:00 ETA
py_six.tcz: OK
Downloading: py_websocket.tcz
Connecting to 192.168.1.29 (192.168.1.29:80)
py_websocket.tcz     100% |*************************************************************************************************************************| 65536  0:00:00 ETA
py_websocket.tcz: OK
Downloading: camilladsp.tcz
Connecting to 192.168.1.29 (192.168.1.29:80)
camilladsp.tcz       100% |*************************************************************************************************************************| 2472k  0:00:00 ETA
camilladsp.tcz: OK
Downloading: camilladsp_samplerate_control.tcz
Connecting to 192.168.1.29 (192.168.1.29:80)
camilladsp_samplerat 100% |*************************************************************************************************************************|  8192  0:00:00 ETA
camilladsp_samplerate_control.tcz: OK

Server runs like this on my ubuntu server (RaspberryPi 4)::
Code: [Select]
ubuntu@ubuntu:~/tcz/10.x/armv7/tcz$ ps -ef | grep httpd
root      8505     1  0 15:01 ?        00:00:00 busybox httpd -h /home/ubuntu/tcz

Rgds; Jesper.
Title: Re: Non "official" .tcz host
Post by: Greg Erskine on November 04, 2020, 02:35:06 PM
Cool  ;D

BTW: Seeing you are using pCP, try pcp-load -?. Paul added server selection options.
Title: Re: Non "official" .tcz host
Post by: lykkedk on November 04, 2020, 03:08:27 PM
Yep...

I'am glad i have it working now.
This way we (diyaudio user pi r and I) can better test it like it would be in "real" life...

Well real life  ::) I'am a Geek right  ;D

Jesper.
Title: Re: Non "official" .tcz host
Post by: Rich on November 04, 2020, 03:20:54 PM
Hi lykkedk
Well how about that. Looks like it was easier than you thought it would be. :)
Title: Re: Non "official" .tcz host
Post by: lykkedk on November 04, 2020, 03:36:36 PM
Yup!

But i used +++hours to get it going through  :)

I actually created an SourceForge account, and i can also use this repo now - So success!

Jesper.