Live data from Hacker News

Toybox: All-in-one Linux command line

github.com

41–50 of 60 posts

Re: Toybox: All-in-one Linux command line

#41
post #14
post #12

But what IS it?

Toybox is a clone of Busybox with a less restrictive license. Toybox is used on Android to implement a number of POSIX.2 utilities. https://en.wikipedia.org/wiki/BusyBox#Controversy_over_Toybo...

Is it fair to say GNU coreutils "inspired" the need for Busybox?

Re: Toybox: All-in-one Linux command line

#42
post #14

Earlier quoted context omitted.

Toybox is a clone of Busybox with a less restrictive license. Toybox is used on Android to implement a number of POSIX.2 utilities. https://en.wikipedia.org/wiki/BusyBox#Controversy_over_Toybo...

Is it fair to say GNU coreutils "inspired" the need for Busybox?

I'm actually surprised that there wasn't a fork of the last GPLv2 release.

The benefit of starting over is that Landley was able to relicense Toybox as BSD, after he first released it as GPLv2. That would not have been possible with a fork.

If this were commercial software, he would have been forced to "cleanroom" the new code.

Re: Toybox: All-in-one Linux command line

#43
post #27

Earlier quoted context omitted.

please teach me how to do this, I have a webos lg tv which is literally not being used because my father used to watch youtube but then youtube almost stopped working on it and there are no more updates and I tried to root it but i couldn't and I just want to use it instead of it being a junk. Any guide on helping me prevent some e-waste at my home. I would prefer to have complete linux access of my lgtv and use some…

Normally how you realize your TV runs busybox is by looking at the last parts of the manual, not by just casually sshing into it and running busybox --version.

It is however a lot easier to SSH into it.

root@lgwebostv:~# busybox

BusyBox v1.29.2 (2024-06-12 00:33:13 UTC) multi-call binary.

Re: Toybox: All-in-one Linux command line

#44
post #29

Earlier quoted context omitted.

A static binary that contains a huge variety of useful posix commands (ls/cp/mv/cat/md5sum/nohup/mount etc etc), all baked into one program, which exhibits different behaviour depending on how it is called - if you name the executable to one of these, or provide a hard or soft link with that name, it will behave as that program. This generally makes things easier on devices with strict storage space constraints by re…

The Nixpkgs search page for it https://search.nixos.org/packages?channel=25.05&show=toybox&... shows the list of its outputs (executables): [ acpi arch ascii base32 base64 basename blkdiscard blkid blockdev bunzip2 bzcat cal cat chattr chgrp chmod chown chroot chrt chvt cksum clear cmp comm count cp cpio crc32 cut date dd deallocvt devmem df dirname dmesg dnsdomainname dos2unix du echo egrep eject env expand factor f…

Just for reference. Here is the full list of completed and in-progress commands from the toybox website:

https://landley.net/toybox/status.html

And here is the list of the Linux standard core commands (toybox covers more than this):

https://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-gene...

Re: Toybox: All-in-one Linux command line

#45
post #29
post #12

But what IS it?

A static binary that contains a huge variety of useful posix commands (ls/cp/mv/cat/md5sum/nohup/mount etc etc), all baked into one program, which exhibits different behaviour depending on how it is called - if you name the executable to one of these, or provide a hard or soft link with that name, it will behave as that program. This generally makes things easier on devices with strict storage space constraints by re…

thanks, that is the most understandable explanation I've seen!

Re: Toybox: All-in-one Linux command line

#47
post #46

It looks to me that busybox is abandoned [1]. Let's hope google money keeps toybox alive. [1] https://lists.busybox.net/pipermail/busybox-cvs/2024-January...

That is by no means the most recent message to the list, I don't see what causes you to claim it's abandoned.

Re: Toybox: All-in-one Linux command line

#48
post #46

It looks to me that busybox is abandoned [1]. Let's hope google money keeps toybox alive. [1] https://lists.busybox.net/pipermail/busybox-cvs/2024-January...

That is by no means the most recent message to the list, I don't see what causes you to claim it's abandoned.

I don't understand the deduction, either.

But it seems that no BusyBox bug-fixer has spotted an easy-to-fix error that is stopping the BusyBox Bugzilla from working, and causing the hyperlink in that e-mail to lead to an error message that dumps out a glob of SQL and stack trace in black on red. It has a table named groups, and Bugzilla is attempting to use the table without quoting the MySQL keyword.

* https://github.com/bugzilla/bugzilla/commit/08679016bd83d2b1...

This bug was fixed in Bugzilla over a year ago. BusyBox's instance of Bugzilla is still exhibiting it today. It makes Buzilla unusable. Thus I do wonder at all of the automated messages to that mailing list with hyperlinks to stuff that does not work. Perhaps no-one is reading the mailing list as well as no-one using the bug tracker.

Post reply on HN