Boot Linux In Your Browser

Boot Linux In Your Browser: Fabrice Bellard, the initiator of the QEMU emulator, wrote a PC emulator in JavaScript. You can now boot Linux in your browser, provided it is recent enough (Firefox 4 and Google Chrome 11 are reported to work). This Linux image includes his own realtime C compiler as the C compiler.

French hacker Fabrice Bellard says his JavaScript PC Emulator can run the 2.6.20 Linux kernel inside Mozilla’s Firefox 4 and Google’s Chrome 11. I tested and it runs well on both browsers.

Fabrice Bellard wrote his PC Emulator with pure JavaScript using the typed array specification, which provides an API for using native binary data, and he has tested his creation on browsers running atop Linux, Windows, and Mac OS.

jslinux

The emulated hardware includes a 32-bit x86 compatible CPU, a 8259 programmable interrupt controller, a 8254 programmable interrupt timer, and a 16450 UART. The emulated CPU is comparable to an Intel 486 chip without FPU. The processor information in emulated Linux tells the speed to be around 20 bogomips.

4 Comments

  1. Tomi Engdahl says:

    JavaScript JVM Runs Java
    http://developers.slashdot.org/story/11/11/21/0454254/javascript-jvm-runs-java

    Java Virtual Machine JVM written in JavaScript seems like another level of insanity. A lone coder, Artur Ventura, has implemented a large part of the standard JVM using JavaScript.

    So you could write a browser that supports JavaScript in Java, and then run the browser in itself?
    … will be eventually written in JavaScript. ~ Atwood’s Law [codinghorror.com] (circa 2007):
    http://www.codinghorror.com/blog/2007/07/the-principle-of-least-power.html
    Atwood’s Law: any application that can be written in JavaScript, will eventually be written in JavaScript.

    http://www.i-programmer.info/news/167-javascript/3360-javascript-jvm-runs-java.html

    Bonus: on Ventura’s website is a set of visual notes from a talk he gave titled “My Language Is Better Than Yours.”
    http://www.surf-the-edge.com/2011/11/16/live-sketching/

    Reply
  2. Jared Sacca says:

    I have been exploring for a little bit for any high-quality articles or blog posts on this sort of house . Exploring in Yahoo I ultimately stumbled upon this web site. Studying this info So i’m glad to show that I have a very excellent uncanny feeling I came upon exactly what I needed. I so much unquestionably will make certain to don’t put out of your mind this site and give it a glance regularly.|

    Reply
  3. Tomi Engdahl says:

    JSLinux. Run Linux or other Operating Systems in your browser! You did what? Linux in JavaScript? You monster. https://bellard.org/jslinux/

    Reply

Leave a Comment

Your email address will not be published. Required fields are marked *

*

*