Tiny Core Linux

General TC => General TC Talk => Topic started by: Roberto A. Foglietta on July 25, 2021, 06:04:22 AM

Title: TinyCore Editor (suite)
Post by: Roberto A. Foglietta on July 25, 2021, 06:04:22 AM
Hi all,

 I developed this TinyCore Editor: https://github.com/robang74/tinycore-editor
 
 This is a suite for quickly editing and testing a USB bootable disk based on TinyCore Linux. It makes use of qemu and it should be installed. I hope you will find useful and decide to adopt and contribute to it.

 Cheers,
-R
 
Title: Re: TinyCore Editor (suite)
Post by: xor on July 25, 2021, 08:08:32 AM
(Google translate is used.)

This is the content you wrote;
On TCL, it runs my dCore!?
in this way dcore package content; Builds TCZ for TCL!?
If that's the case, it would be super beyond.

if it's not like this;
please : can you write this programming script!? 
Title: Re: TinyCore Editor (suite)
Post by: Roberto A. Foglietta on July 25, 2021, 11:12:40 AM
@Xor: nope, it is a suite not to build TCZ but to combine them to produce a customised bootable USB disk based on TC

@All: I have update the repository fixing few annoying bugs.
Title: Re: TinyCore Editor (suite)
Post by: xor on July 25, 2021, 01:02:13 PM
The idea may sound silly, but I think a script should be developed to take advantage of different Linux distribution libraries.
Title: Re: TinyCore Editor (suite)
Post by: Roberto A. Foglietta on July 25, 2021, 02:26:13 PM
@Xor: it would be nice to have a Core ported with musl libc, just the basics not all TCE, to see how much would be the difference in terms of size and performance. It makes no sense porting all TCE because a lot of applications uses a lot of libraries and libc are just one of many. But for a hand of them like core.gz and coreutils & co could make a lot of difference.

https://musl.libc.org/
Title: Re: TinyCore Editor (suite)
Post by: nick65go on July 26, 2021, 06:38:15 AM
@Roberto: The TCZs are the main power of this TC linux. A basic (Tiny)Core ONLY is as useless as a WinXP with just notepad. Good just for didactical purpose only. Porting TC to use musl libc is near useless if you want speed and size gains. What do we talk here about, 1-3 seconds boot speed, few KB gain size?

The power of musl libc is for static linked of MANY small apps, so we talk about TCZs. And of course security of a small musl vs. glibc.
Unfortunatly most recent versions of the apps make use of gnu libc, and libc+. (firefox, libreoffice, vlc, whatever), as you said. I do not see the point of a small head/"core" with musl-libc and the a fat "body" with gnu-libc.

But in the end, if you "make" a TC with musl, then you get an "Alpine" ;) You compile the free kernel (whatever version you want), and "borrow" the free TC scripts already made for you by TC team (tune-up them a little if you want). What else do you need to "build" it as you like? No need to answer me.

PS: tinycore= kernel + core.gz (modules.gz + root.gz). So your main target should be root.gz. And inside are tc scripts and busybox + few static-linked small progs. Where do you expect to get speed/size gain from? Q.E.D.
Title: Re: TinyCore Editor (suite)
Post by: vinnie on July 27, 2021, 11:49:41 AM
I think your editor can be useful, especially for those who use more than one distro and not only tinycore, but also to make the editing work more orderly and smooth.

O.t. I had read that actually, as much as apps compiled with musl are smaller, they seem to be slower, but I haven't done any tests.
I use alpine and tinycore and both have some feature or detail that the other lacks. But I think a musl version of tinycore would be less interesting for me than the glibc one.
However it is true that LOTS of unknown musl-based experimental static linked distros are coming out, so probably in the distant future musl might have more support.
Title: Re: TinyCore Editor (suite)
Post by: Roberto A. Foglietta on July 27, 2021, 10:55:36 PM
@Vinnie: for having appreciated my work. I am start to versioning the code

https://github.com/robang74/tinycore-editor/releases

If you like to partecipate to the development, let me know: roberto.foglietta AT gmail.com
Title: Re: TinyCore Editor (suite)
Post by: Roberto A. Foglietta on July 29, 2021, 09:52:26 PM
@Vinnie: I have created a m-list for the used and development of TinyCore Editor

m-list: https://groups.google.com/g/tinycore-editor
Title: Re: TinyCore Editor (suite)
Post by: vinnie on July 30, 2021, 08:24:18 AM
Hey Roberto, the first time I replied to you I think I had greeted you with a "ciao", but actually I think I wasn't clear enough :P
I am Italian too :)
Ok, for the newsgroup I'll see if I can subscribe, my computer routines are intermittent, I always do so many things together but I'll try to follow it.
Title: Re: TinyCore Editor (suite)
Post by: Roberto A. Foglietta on August 10, 2021, 09:35:37 AM
Hi all,

The TinyCore Editor Suite version 0.4.0 has a fast lane to compile and include the last busybox into the distro.

Moreover, using busybox/busybox.sh update [suid|nosuid] it is possible to check quickly any modification to the busybox source code

https://github.com/robang74/tinycore-editor/archive/refs/tags/v0.4.0.tar.gz

Ciao,
-R
Title: Re: TinyCore Editor (suite)
Post by: Roberto A. Foglietta on August 15, 2021, 09:26:32 AM
Hi all,

TinyCore Editor version 0.4.4 runs in TinyCore.

https://github.com/robang74/tinycore-editor/archive/refs/tags/v0.4.4.tar.gz

So, you can compile busybox directly into TC, for example.

Choose "develop" in tinycore/tinycore.conf and follow the quick start in README.txt

Cheers,
-R
Title: Re: TinyCore Editor (suite)
Post by: Roberto A. Foglietta on August 18, 2021, 01:25:07 AM
Hi all,

 TinyCore Editor version 0.4.7 has been tested compatible with TinyCore (again).

 https://github.com/robang74/tinycore-editor/archive/refs/tags/v0.4.7.tar.gz

 It includes all the changes since v0.4.4 and still compatible.

 Cheers,
-R
Title: Re: TinyCore Editor (suite)
Post by: Roberto A. Foglietta on August 18, 2021, 05:42:00 PM
Hi all,

TinyCore Editor v0.4.8 it is able to recompile itself into the virtual guest 

https://github.com/robang74/tinycore-editor/archive/refs/tags/v0.4.8.tar.gz

Compatibility:
- TinyCore 12: tested ok (busybox recompiling is fine, native)
- Ubuntu 18.04: tested ok (busybox recompiling is acceptable)
- Ubuntu 20.04: tested ok (busybox recompiling inherits libcrypt-1.1.0)

The libcrypt-1.1.0 inheritance is not deeply tested yet but could be avoided:

- avoid to recompile busybox but only the ISO image
- use qemu and the ISO image to produce a native custom rootfs.gz
- transfer the native custom rootfs.gz via SSH and use it for any changes which are not involved with the busybox.

 After all, inheritance could be acceptable for testing busybox changes/developments but native compilation is the way to go.

Cheers, R-
Title: Re: TinyCore Editor (suite)
Post by: Roberto A. Foglietta on August 20, 2021, 11:57:56 AM
Hi,

 TinyCore Editor version 0.4.9 is able to build a 89 MB ISO/USB image that contains everything necessary to compile TinyCore Linux (compiletc.tz and more).

https://github.com/robang74/tinycore-editor/archive/refs/tags/v0.4.9.tar.gz

 Edit the meta packages in tinycore.conf including "develop" and "devtools". 

 Moreover - after having produced your first ISO you can do in tinycore folder sudo ./tczmetamerge.sh and all the packages will be aggregate in four meta-packages: sshonly, usbdisk, develop, devtools. This kind of configuration reduce drastically the boot time which arrives to be less than 9 seconds on a VirtualBox machine.

 For the 32bits architecture bridge-utils are still missing but they could be removed from develop.lst - they are useful to run qemu that in any case require X and it is not installed.

 I hope will enjoy it, R-
Title: Re: TinyCore Editor (suite)
Post by: Roberto A. Foglietta on August 22, 2021, 07:11:13 AM
Hi all,

 Compared to the previous version:

 TinyCore Editor (suite) version 0.5.0 is able to deliver a 32 bit TinyCore Linux in an ISO/USB image.
 That image is able to compile natively source code for 32 bit x86 platform, so the 32 support is full.

 https://github.com/robang74/tinycore-editor/archive/refs/tags/v0.5.0.tar.gz

 It reduces the boot time to 5 seconds on a 2 CPUs virtual machine which is very handful achievement.
 This achievement is for "sshonly usbdisk develop devtools" 90MB ISO/USB image using meta packages.
 Read the README at the bottom in order to know how to leverage the mata packages.

 In future versions, I will work on enhance the compatibility with original TinyCore Linux especially the use of tce/cde folders instead of using the tcz folder like now. I have a plan to do it but I need time for delivering it.

 If you like to join the project or submit your feedback, feel free to use the discussion forum or the mailing-list

 https://github.com/robang74/tinycore-editor/discussions
 
 https://groups.google.com/g/tinycore-editor

 I hope you will enjoy it, -R
Title: Re: TinyCore Editor (suite)
Post by: Roberto A. Foglietta on August 24, 2021, 09:23:39 AM
Hi all,

 TinyCore Editor v0.5.2 is compatible with tce/cde

 https://github.com/robang74/tinycore-editor/archive/refs/tags/v0.5.2.tar.gz

 this means that application installed are saved after boot on USB image

tc@box:~$ sudo unlock.sh
tc@box:~$ tce-load -wi tar
tc@box:~$ sudo reboot
tc@box:~$ which tar

 enjoy it, R-
Title: Re: TinyCore Editor (suite)
Post by: nick65go on September 06, 2021, 09:39:27 AM
Roberto, may I share a joke, to do not be a monolog?
#joke: a poor man walking, but he needs a bicycle (more comfort) [1]. So, he will borrow some resources [2] to build a factory [3] which will produce many (motor)bicycles, but he only needs one bicycle for him.

Legend:
[1] = novice/lethargic Linux user, wanting a custom Tiny core.
[2] = time spent to understand your scripts (not blindly run them); plus compile some programs, knowledge about git, etc.
[3] = need for a full OS (Ubuntu?) + tools, a new shell (bash, not ash), etc.

PS: for me, it is like the “Mexican Fisherman and the Investment Banker” parable. YMMV.
https://renewablewealth.com/the-parable-of-the-mexican-fisherman/
Title: Re: TinyCore Editor (suite)
Post by: Roberto A. Foglietta on September 06, 2021, 02:44:39 PM
Roberto, may I share a joke, to do not be a monolog?
#joke: a poor man walking, but he needs a bicycle (more comfort) [1]. So, he will borrow some resources [2] to build a factory [3] which will produce many (motor)bicycles, but he only needs one bicycle for him.

Legend:
[1] = novice/lethargic Linux user, wanting a custom Tiny core.
[2] = time spent to understand your scripts (not blindly run them); plus compile some programs, knowledge about git, etc.
[3] = need for a full OS (Ubuntu?) + tools, a new shell (bash, not ash), etc.

PS: for me, it is like the “Mexican Fisherman and the Investment Banker” parable. YMMV.
https://renewablewealth.com/the-parable-of-the-mexican-fisherman/

Desktop users: you are right, it is too complex.
Embedded Developing/Integration: it is useful.
Container Developing/Deployment: it is useful.
Title: Re: TinyCore Editor (suite)
Post by: bmarkus on September 06, 2021, 10:33:33 PM
Well, it is a Forum, not a Blog. There are much more suitable possibilities for blogging :(