Run Real Linux In Your Web Browser
While on the topic of amazing things people have done with JavaScript (WASM), check this out!
Yes, it is a whole Linux distro running right there in your web browser.
See the list of operating systems here - there is also Windows and DOS, and both graphical and console only systems.
That's not the only one, there's also https://webvm.io/ from the people who made a Java to WASM compiler, you can even convert old Java applets to JS!
In fact they have a whole bunch of neat tools, it's worth exploring around. Live Java REPL?
So you can have an operating system, how about an OS running in a container, running in a web browser?
https://ktock.github.io/container2wasm-demo/
container2wasm is a container-to-wasm image converter that enables to run the container on WASM.
Converts a container to WASM with emulation by Bochs (for x86_64 containers), TinyEMU (for riscv64 containers) and QEMU.
Runs on WASI runtimes (e.g. wasmtime, wamr, wasmer, wasmedge, wazero)
Runs on browser
x86_64, riscv64 or AArch64 containers are recommended.
Hmmm this one has apt ... wonder if I can install docker in a wasm container in an emulated linux running in a browser ...
Not enough for you?
Whole honking massive list here of alternatives for you to launch and play with ...
I just tried to boot Fedora to a GUI, but I guess it will take a while. Ages ago I tried the QEMU advent calendar that had some fairly random systems. Got to admire the dedication of these people.
Some serious skills too, I have tried to do far simpler things with WASM and struggled!
Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!
Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).
Consider setting @stemsocial as a beneficiary of this post's rewards if you would like to support the community and contribute to its mission of promoting science and education on Hive.
I wonder what kind of RAM that takes up on your machine. I mean, I know Linux is pretty light in general, but Chrome is kind of horrible for RAM and then you are running a full OS inside of it... Seems like it would be an interesting sandbox environment at the very least.