WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: base64 is missing  (Read 5286 times)

Offline Roberto A. Foglietta

  • Full Member
  • ***
  • Posts: 212
    • personal home page
base64 is missing
« on: July 23, 2021, 11: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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: base64 is missing
« Reply #1 on: July 23, 2021, 11:50:07 AM »
Hi Roberto A. Foglietta
You should find it in  coreutils.tcz.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: base64 is missing
« Reply #2 on: July 23, 2021, 09:27:04 PM »
You can search the package contents from the package manager GUI or from the terminal with "tce-ab"

Offline Roberto A. Foglietta

  • Full Member
  • ***
  • Posts: 212
    • personal home page
Re: base64 is missing
« Reply #3 on: July 24, 2021, 03:58:10 PM »
@Rich: coreutils.tcz is about 2,24MB, the base64 available in busybox is just a hand of bytes.

Offline Roberto A. Foglietta

  • Full Member
  • ***
  • Posts: 212
    • personal home page
Re: base64 is missing
« Reply #4 on: July 24, 2021, 04: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.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: base64 is missing
« Reply #5 on: July 25, 2021, 07: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

Offline Roberto A. Foglietta

  • Full Member
  • ***
  • Posts: 212
    • personal home page
Re: base64 is missing
« Reply #6 on: July 25, 2021, 09: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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: base64 is missing
« Reply #7 on: July 25, 2021, 10: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

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: base64 is missing
« Reply #8 on: July 25, 2021, 01:01:27 PM »
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

Offline Roberto A. Foglietta

  • Full Member
  • ***
  • Posts: 212
    • personal home page
Re: base64 is missing
« Reply #9 on: July 25, 2021, 03:30:51 PM »
@vinnie: about TinyCore Editor: git pull or clone it again because I committed few bugfixes since I have released it.

Offline Santos

  • Full Member
  • ***
  • Posts: 106
Re: base64 is missing
« Reply #10 on: September 11, 2021, 08: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
« Last Edit: September 11, 2021, 09:28:07 PM by Santos »