Tiny Core Linux
General TC => Tiny Core on Virtual Machines => Tiny Core in Containers => Topic started by: innovarew on September 07, 2022, 06:15:30 AM
-
Hi there,
I was looking for running TinyCoreLinux as a docker container on x86-64, found some links from 3 years ago:
https://github.com/tatsushid/docker-tinycore/
However, I ended building a tinycore 13.x docker image from scratch, for my use, that can be found at:
https://github.com/innovarew/docker-tinycore
I'm just letting you know, to see if there's interest / or is useful for the tinycorelinux community.
Best, and thanks.
--
innovarew
-
Hi innovarew! I find your project awesome! I learned a lot!
I wanted to make an image of 14.x x86 so I made this https://github.com/linic/docker-tcl-core-x86.
Thanks for making https://github.com/innovarew/docker-tinycore and posting here!
-
For anyone interested, I made TCL Core x86 image with rust-1.75.0 here https://hub.docker.com/repository/docker/linichotmailca/tcl-core-rust-i586/general
There's the github repo that goes with it https://github.com/linic/tcl-core-rust-i586
In the image, if you sudo docker exec -it tcl-core-rust-i586-main-1 sh
you'll be in /home/tc
and you'll see 2 .tcz files. There's rust tcz compiled for i586 CPUs like the Pentium II from the IBM 560Z and an accompanying openssl tcz with libssl.so and libcrypto.so also compiled for i586. The tcz files can be retrieved by using sudo docker cp tcl-core-rust-i586-main-1:/home/tc/<name>.tcz .
My IBM 560Z doesn't have enough RAM to tce-load them, but I believe they should work. I tested the code in the rust tcz file by adding it to my path and it works like it does in the docker container.
-
Thank you innovarew and linic
I have been looking at both https://github.com/innovarew/docker-tinycore and https://github.com/linic/docker-tcl-core-x86
I tried to patch /opt/bootlocal.sh to have some additional commands executed during start-up, but found /opt/bootlocal.sh is not executed.
From what I get it should have started via: /etc/init.d/tc-config > /opt/bootsync.sh > /opt/bootlocal.sh
Still need to dig some more in the scripts, but if you have some pointers...
-
Mostly solved while trying to debug:
/etc/init.d/tc-config
changed
/opt/bootsync.sh
to
touch /tmp/bootsync.txt
/opt/bootsync.sh > /tmp/bootsync.txt 2>&1
/opt/bootsync.sh
changed
/opt/bootlocal.sh &
to
touch /tmp/bootlocal.txt
/opt/bootlocal.sh > /tmp/bootlocal.txt 2>&1
Suspect background a process didn't work.
-
Hi rhermsen
... Suspect background a process didn't work.
What you have done is block the completion of tc-config until bootlocal.sh completes.
Some things don't belong in bootlocal.sh, kmaps for example. This explains why and
describes the timing of events:
https://forum.tinycorelinux.net/index.php/topic,23698.msg148996.html#msg148996
The blueman.tcz.info suggests bluez should be started before a GUI:
https://forum.tinycorelinux.net/index.php/topic,25702.msg164798.html#msg164798
When it comes to automatically starting programs, scripts, daemons, etc., the basic rules of thumb are:
1. Things that need to run before a GUI are started (like kmaps) should go into /opt/bootsync.sh.
2. Things that need to run after a GUI are started (like starting a GUI app) should go into ~/.X.d.
3. Things that are not sensitive to when they are started can go into /opt/bootlocal.sh which runs in the background.
When starting something from numbers 1 or 3, you need to specify a full path. They run before any user is logged in.
Item 2 is unique to each user.
-
Hi Rich,
Thanks for all the info. Will keep this for reference...
Tested with just 'touch /tmp/bootlocal_started' in /opt/bootlocal.sh
and 'touch /tmp/bootsync_started' in /opt/bootsync.sh.
After boot I only see 'bootsync_started' in /tmp.
No idea why background a process is not working during bootup.
And indeed understand it is blocking the completion of the lines in tc-config following bootsync.sh if '/opt/bootlocal.sh' is not a background process.
After bootup 'sudo /opt/bootlocal.sh &' is normally working.