Saturday 9 February 2013

Running linux on the browser using jslinux

This is simply amazing, at http://bellard.org/jslinux/ you can run Linux on a browser:

Here is its booting up:

image

after a couple seconds you have a full interactive shell:

image

which you can use to run commands like ls

image

or ps

image

or cat

image

As you can see by the comments in the screenshot above, you can compile and execute the hello.c file

image

vi hello.c will open the vi editor

image

which we can edit:

image

and execute

image

and all running from JavaScript:

image

with 1.78Mb  of data received!

image

For more info here is the FAQ and technical notes

Pretty impressive stuff from the Super productive programmer (see also this thread at reddit)

More info (including a link to a NodeJS port) at http://news.ycombinator.com/item?id=2572915