Run Linux on the Web

Source: Internet
Author: User

From: http://coolshell.cn/articles/4722.html

 

A programmer named Fabrice bellard wrote a piece of JavaScript to start Linux in a web browser.

, I put this webpage IFRAME below), currently, you can only use Firefox 4 and chrome 11 to run this Linux. This is not a false imitation of Linux. It is actually a Linux running. This action has aroused the attention of many cool people, including the Javascript creator Brendan eich.
.

Clear startup
Start

 

 

Subsequently, Fabrice bellard released related technical instructions: http://bellard.org/jslinux/tech.html

From this document, we can see:

  • This module is completely written in JavaScript.
  • The CPU simulator uses qemu.

    (Close to 486 of the original version). Some changes have been made to install Linux.

  • The javascript terminal can use termlib

    But he wrote one by himself, because the OS buttons are different from those of the Web browser (here

    )

  • Linux uses the 2.6.20 kernel. Here is the compilation configuration.

    And made some minor changes.

    .

  • The disk uses a RAM disk and is loaded at startup. Its file system is built by buildroot

    And busybox

    .

  • There is a hello. C program in the home directory. You can use tinycc

    Compile (TCC, refer to this article on cool shell

    )

From these feelings,

  1. Running a Linux operating system on the Web is not a problem. So what else can't be done on the web?
  2. Linux really has a high performance, and it doesn't feel slow to run in JavaScript.
  3. Techno-geek.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.