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,
- Running a Linux operating system on the Web is not a problem. So what else can't be done on the web?
- Linux really has a high performance, and it doesn't feel slow to run in JavaScript.
- Techno-geek.