Run Linux in your browser

Screenshot of a PC emulator running Linux

I came across this on Hacker News and it blew my mind. Fabrice Bellard just created a PC emulator that boots Linux, written in JavaScript. It even works on my iPad.

From the technical notes …

The PC emulator is written in Javascript. The emulated hardware consists in the following devices:

  • 32 bit x86 compatible CPU
  • 8259 Programmble Interrupt Controller
  • 8254 Programmble Interrupt Timer
  • 16450 UART
  • Real Time Clock.

The code is written in pure Javascript using the W3C Typed Arrays. A slightly slower fallback mode is implemented for browsers missing this support. For the exact list of supported browsers, see the FAQ.

It’s officially supported by

  • Firefox 4.x
  • Chrome 11
  • Opera 11.11
  • Internet Explorer 9

Hot damn.

Free Workshops

Watch one of our expert, full-length teaching videos. Choose from either HTML, CSS or Wordpress.

Start learning

Treehouse

Our mission is to bring affordable Technology education to people everywhere, in order to help them achieve their dreams and change the world.

Comments

8 comments on “Run Linux in your browser

  1. Oh my god! Its the beginning of the biggest infinite loop in the history of the web!

    Lets run a webserver on it that hosts a page with javascript linux.

  2. Oh my god! Its the beginning of the biggest infinite loop in the history of the web!

    Lets run a webserver on it that hosts a page with javascript linux.

  3.  weird, it keeps loading forever for me and it gets stuck on `Freeing unused kernel memory: 124k freed` so I can’t use it… :(

  4. I think its the coolest thing since Linux since I’m running it on a crappy Windows laptop (actually a great laptop with a crappy OS) – because I have to debug some windows and I sorely miss my Linux and that little JS Linux jewel Fabrice made just gave me a temporary “FIX” to cure my pangs.
    dang what a gem.

    And then there’s the unforgettable fact Fabrice was the same
    idiot who wrote TCC – another jewel I use as often as possible.

    Yes sir ree Bob, Fabrice is a complete idiot considering a million and one people have developed what he’s done…if he worked for me I’d have to fire him or
    he’d probably shove me aside and take my job…

    Based on his “works” I’d say he’s one of those idiots with more talent and imagination
    in his little finger (must be tiny too)
    … than a busload of developers have in their … ok … you get the idea …

    … I kinda think its neat.

  5. How do you get the Desktop and stuff like that? Or even launch a web browser?