Tiny Core Linux

Tiny Core Base => Micro Core => Topic started by: Roberto A. Foglietta on July 23, 2021, 08:13:30 AM

Title: base64 is missing
Post by: Roberto A. Foglietta on July 23, 2021, 08:13:30 AM
Hi All,

base64 is missing in busybox but it is useful to embedded in script binary data

tc@box:~$ busybox base64
base64: applet not found

I suggest to add into the next release. Thank you, R.
Title: Re: base64 is missing
Post by: Rich on July 23, 2021, 08:50:07 AM
Hi Roberto A. Foglietta
You should find it in  coreutils.tcz.
Title: Re: base64 is missing
Post by: vinnie on July 23, 2021, 06:27:04 PM
You can search the package contents from the package manager GUI or from the terminal with "tce-ab"
Title: Re: base64 is missing
Post by: Roberto A. Foglietta on July 24, 2021, 12:58:10 PM
@Rich: coreutils.tcz is about 2,24MB, the base64 available in busybox is just a hand of bytes.
Title: Re: base64 is missing
Post by: Roberto A. Foglietta on July 24, 2021, 01:01:27 PM
@vinnie: I developed these scripts to search and download tcz when I am preparing TC on my Ubuntu.

If you like to adopt it for any purpose you can license in any MIT, BSD, GPL-v2 as you like.
Title: Re: base64 is missing
Post by: vinnie on July 25, 2021, 04:57:31 AM
tried it, useful when you are on another distro, even if you need to have bash and sudo installed to be able to run the scripts
Title: Re: base64 is missing
Post by: Roberto A. Foglietta on July 25, 2021, 06:16:34 AM
@vinnie, thank you for your interest.

Only tcgetdistro.sh requires sudo privileges but only because it modify the rootfs.gz. However, the script that modify the rootfs is not included so, the sudo could be easily discarded.

The need of a bash is because these scripts are useful when you are running another distribution and you want to customise your TinyCore Linux. However, if you like you can change /bin/bash with /bin/ash.

EDIT: TinyCore Editor (suite) has been posted here

http://forum.tinycorelinux.net/index.php/topic,25164.0.html
Title: Re: base64 is missing
Post by: Rich on July 25, 2021, 07:34:15 AM
Hi Roberto A. Foglietta
... if you like you can change /bin/bash with /bin/ash. ...
I got an error with your stderr redirection (tcgetdistro.sh) using ash:
http://forum.tinycorelinux.net/index.php/topic,25146.msg160472.html#msg160472
Title: Re: base64 is missing
Post by: vinnie on July 25, 2021, 10:01:27 AM
Hey Roberto, I still don't understand what is the editor that you have developed but if I have the will in these days I will try it.
From what I understand it starts tinycore installed on a flash drive directly on qemu. I used to do it with virtualbox but it's probably worse than doing it on qemu.

As for sudo, it happens that I don't even have it installed and usually I just use su -c "command" or I found another solution that I'm not sure works without any cons:

Code: [Select]
su root <</HEREDOC
root_password
#commands
HEREDOC
Title: Re: base64 is missing
Post by: Roberto A. Foglietta on July 25, 2021, 12:30:51 PM
@vinnie: about TinyCore Editor: git pull or clone it again because I committed few bugfixes since I have released it.
Title: Re: base64 is missing
Post by: Santos on September 11, 2021, 05:58:23 PM
Yes, please!

I second this. base64 is very handy, I got a couple of txt files uploaded to a server so I can grab binary data from it (it just allows text information to be store in the server). From a security stand point less is better (even though is the same busybox binary) but it may be worth to have base64 already available just after booting.


Edit:

Please take into consideration to include (newer versions of busybox): pipe_progress