Live data from Hacker News

Toybox: All-in-one Linux command line

github.com

21–30 of 60 posts

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

#22
post #10

Earlier quoted context omitted.

I think Samsung still use Tizen (still Linux, seems to use Toybox) and LG uses WebOS (Linux again, not sure if it uses Toybox).

Just looked through my TV, webOS uses Busybox.

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 something like tiny core linux on my webos tv or something, is something like this possible or?

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

#24
post #15

Earlier quoted context omitted.

How would you improve the description in the readme file? The toybox build produces a multicall binary, a "swiss-army-knife" program that acts differently depending on the name it was called by (cp, mv, cat...). Installing toybox adds symlinks for each command name to the $PATH.

The app provides various subcommands, which can also be invoked based on its name. Symlinks are used to expose the subcommands as regular app names. My rewording/simplification of the description

Symlinks or hardlinks.

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

#25
As a contrast, in the DOS world the file COMMAND.COM provided both the shell as well as most of the basic file management commands which would be separate files on Unix-like systems (cp, ls, mkdir, mv, rm, rmdir, etc.); and some specialised DOS-compatible systems had the whole basic OS including the kernel, device drivers, and shell along with its builtins in a single flat-loaded binary.

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

#26
post #10

Earlier quoted context omitted.

Just looked through my TV, webOS uses Busybox.

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…

Try https://cani.rootmy.tv/

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

#27
post #10

Earlier quoted context omitted.

Just looked through my TV, webOS uses Busybox.

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.

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

#28
post #12

But what IS it?

It's sort of a remastered Version of busybox. Please refer to Rob himself for explaining.

There's a good intro on yt [1] and a "demo" in [2]

edit: Well Sorry, [2] was about mkroot. I just skipped through the video. I thought it was related to toybox/busybox. Maybe somewhere in the talk. Has been a while since I last watched it.

[1] https://www.youtube.com/watch?v=MkJkyMuBm3g [2] https://www.youtube.com/watch?v=Sk9TatW9ino

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

#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 reducing the overhead of having separate executables and/or libraries for the code for all these. It may reduce load times in very constrained systems compared to dynamic linking too, as everything is bundled in the one image, and in some cases it can exhibit performance gains.

It's generally (but not exclusively) of interest to embedded device manufacturers. Toybox is licensed very permissively, compared to busybox's use of GPL, so manufacturers like it. IIRC it is now used in android.

Post reply on HN