A programmer named Fabrice Bellard wrote a JavaScript in a Web browser to launch Linux (the original page, I put this page iframe below), currently, you can only use Firefox 4 and Chrome run this Linux one at a- It's not a fake Linux thing to imitate, it's actually running a Linux. The move also attracted a lot of attention, including the creator of JavaScript, Brendan Eich.
==============================================================================
Csdn How to use iframe?
<p Align=center><button id= "jslinux-stop" style= "Display:none" onclick= "document.getElementById (' Jslinux ') ). src= ' About:blank ';d ocument.getelementbyid (' Jslinux-stop '). style.display= ' None ';d ocument.getelementbyid (' Jslinux-start '). style.display= ' block '; > Clear Startup </button>
<button id= "Jslinux-start" onclick= "document.getElementById (' Jslinux '). src= ' http://bellard.org/jslinux/' ;d Ocument.getelementbyid (' Jslinux-start '). style.display= ' None ';d ocument.getelementbyid (' Jslinux-stop '). style.display= ' block '; > Start Start </button></p>
<p align=center><iframe id= "jslinux" frameborder= "0" style= "background: #000; border:0" width= "" height= " 540 "src=" ></iframe></p>
==============================================================================
Run:
Subsequently, Fabrice Bellard released the relevant technical note: Http://bellard.org/jslinux/tech.html, from this document we can see:
- The mold is completely written by JavaScript.
- The CPU emulator uses QEMU (close to the original 486) and has made some changes in order to install Linux.
- JavaScript's terminal could have used termlib, but he wrote it himself, because the keys to the OS are different from the Web browser (here)
- Linux uses the 2.6.20 kernel, compiled configuration here, and made some minor changes.
- The disk uses RAM disk, which is loaded at boot time. Its file system is produced by BuildRoot and BusyBox.
- In the home directory there is a HELLO.C program, you can use TINYCC compile (TCC, see the cool shell of this article)
I have these feelings from this thing,
- Running a Linux operating system on the Web is not an issue. So what else can't be done on the Web?
- Linux is really high performance and it doesn't feel too slow to run under JavaScript.
- It's techno-geek.
Link: Potatoes installed linux:08 Hackers successfully install Linux on a Potato
That's incredible, unbelievably!.
Also think of that web version of the windows3.1. http://michaelv.org/
can also be nested.
ps:js/linux author, man of God Fabrice bellard the introduction
Fabrice Bellard1972 was born in France and studied at the Paris Institute of Advanced Integrated Technology and the French Telecommunication Academy. The computer has a strong interest in him, high school, the emergence of the Lzexe , which is the first widely used in DOS file compression program.
Fabrice Bellard is a computer whiz and has an important influence in the industry. 1996 Year he wrote a concise but complete C compiler and a Java virtual machine harissa . The TINYCC invented by Fabrice Bellard is the smallest ANSI C language compiler in the Gnu/linux environment , and is currently the fastest-compiling C compiler. Fabrice Bellard masterpiece Numerous and extensive, 1998 wrote a concise OpenGL implementation TINYGL , 2003 years developed Emacs cloned qemacs , 2005 also designed a cheap digital TV system.
an important masterpiece of Fabrice Bellard is the Linux kernel that writes a CPU simulator QEMU, a set of open-source emulator software with Bochs , PearPC is approximate, but it has the characteristics of high-speed and cross-platform. QEMU can run independently developed operating systems and software on different machines, via Kqemu, an open source accelerator, that simulates the speed of being close to a real computer. QEMU is cleverly conceived and highly efficient, and the analog code can be executed even closer to the real machine after the KQEMU accelerator with a nuclear mindset. Qemu has become the most widely used simulator, and both KVM and Google Android emulators are based on qemu .
Fabrice Bellard is very knowledgeable, his other heavyweight project is FFmpeg . F-Fmp e g word f f refers to f a s TForward, FFmpeg This year launched the famous open source multimedia play is the sister project of MPlayer. This is such an important accomplishment, without this project, there is no such player as the storm video and so on which we are widely used today. This multi-platform, multi-functional multimedia codec was initiated and managed by Fabrice Bellard and is now being maintained by Michael Niedermayer .
Genius innovation is often a deviant transcendence, fabriced Bellard Some of the projects that make people feel crazy. For example, he had a project to convert a PC with VGA card into DVB -T signal transmitter. In this way, in order to prevent leaks, the company not only to seal the sound card socket, but also to solder the video card socket.
Fabrice Bellard has amazing achievements in the PI algorithm, and 1997 year Fabricebellard proposes the fastest PI algorithm formula. In the process of calculating pi, Fabrice bellard uses the modified Chadnovsky equation algorithm to calculate pi, and uses the Bailey - Powen - Ralph algorithm to verify the results of the calculations. To commemorate his outstanding contribution to the PI algorithm, the improved algorithm used by Fabrice Bellard is named the Fabrice bellard algorithm, which is the fastest of all pi algorithms, and this calculation the formula of N -bit PI is faster 47% than the traditional BBQ algorithm .
on the last day of the year, Fabr ice Bellard announced another major breakthrough: he used a desktop computer to break records of PI operations maintained by supercomputers. This is a feat, he calculates PI to 2.7 trillion bit after decimal point ! What is even more surprising is that he uses a personal PC that is less than the price of EUR , and only uses a few days to calculate the 2.7 trillion bit of PI after the decimal point , exceeding the target The world 's first t2k Open supercomputer was created on the 8- month date of the year. The new record is more than the original record , however, he used the desktop computer Configuration only: 2.93GHz Core i7 CPU , 6GB memory, 7.5TB HDD /c19>!
but this time in order to speed up the completion of the calculation to maintain the position of the first place, Fabrice Bel Lard uses 9 networked computers to verify the data and, if a computer is used to verify the results, it will require an additional calculation time of more than two days.
Fabrice Bellard 's brilliant achievements in PI led him to create multiple pi-single-digit world records (calculating The power-level of the whole), and thus boarded the French version of Scientific American.