如何在本地托管webbrowser虚拟机:http://bellard.org/jslinux/ [英] How do I locally host the webbrowser Virtual Machine here: http://bellard.org/jslinux/
问题描述
我对Javascript知之甚少,而且我想主持网络浏览器集成的Linux(可以在这里找到) )。原因是我并不总是与网络连接,想知道它是如何工作的。不要不尊重作者的许可证。
I don't know much of Javascript, and I want to host the web browser integrated Linux (which can be found here). Reason being I am not always connected to the net, would like to know how it works. No disrespect of the author's license intended.
我试过复制三个文件的来源( term.js
, cpux86.js
和HTML文件本身)到一个文件夹中,然后运行HTML,它不起作用。
I tried copying sources of the three files (term.js
, cpux86.js
and the HTML file itself) into a folder, and running the HTML, and it doesn't work.
任何方式让它工作?
另外:如果它不起作用,为什么呢?目录结构由我复制并且几乎相同。
Any way around to make it work?
Also: if it doesn't work, why is it? The directory structure is copied by me and is almost the same.
PS:我也使用了Javascript deobfuscator addon for Firefox,但这也没有多大帮助。我做了缩进所有代码以使其更具可读性,但它仍然不可理解:P
PS: I also used Javascript deobfuscator addon for Firefox, but that did not help much either. I did indent all the code to make it more readable, but it's still not understandable :P
推荐答案
除了给出答案你我可以尝试在 http://github.com上的jsmodem项目中查看我在本地服务器上托管jslinux的方式/ ewiger / jsmodem (允许Internet连接)。
In addition to given answers you can try to look at the way I am hosting jslinux on a local server in my jsmodem project at http://github.com/ewiger/jsmodem (allows Internet connectivity).
如果安装了python,只需启动本地Web服务器
If you have python installed just start the local web server as
python -m SimpleHTTPServer
这篇关于如何在本地托管webbrowser虚拟机:http://bellard.org/jslinux/的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!