LearnRun Linux in your browser

   
Treehouse

Treehouse
writes on May 23, 2011

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.

GET STARTED NOW

Learning with Treehouse for only 30 minutes a day can teach you the skills needed to land the job that you've been dreaming about.

Get Started

8 Responses to “Run Linux in your browser”

  1. Spencera on June 10, 2013 at 5:38 pm said:

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

  2. grandma on March 18, 2013 at 7:02 am said:

    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.

  3. It’s a little complex for me to undertand the article fully.

  4. Anonymous on May 23, 2011 at 2:10 pm said:

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

  5. Anonymous on May 23, 2011 at 11:08 am said:

    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.

  6. Anonymous on May 23, 2011 at 11:08 am said:

    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.

Leave a Reply

You must be logged in to post a comment.

man working on his laptop

Are you ready to start learning?

Learning with Treehouse for only 30 minutes a day can teach you the skills needed to land the job that you've been dreaming about.

Start a Free Trial
woman working on her laptop