4 ms·
Does anyone have an idea how a minimal base Linux image can run inside a browser? Like can we create a small virtual Linux server right inside a browser?
by diminish 11y ago
Does anyone have an idea how a minimal base Linux image can run inside a browser? Like can we create a small virtual Linux server right inside a browser?
- mwcampbell 11y agohttp://jslinux.org/ http://jslinux.org/ It's a clever hack, but I don't know of any practical application. Did you have one in mind? Or is it just for the hack value?
- diminish 11y agoa test / development environment inside the browser where a server is emulated for testing purposes too, accompanied with a code editor. I d like to describe the vm configuration similar to chef or ansible in js and run some dev/test code.
- homarp 11y agoDepending what you want to do, there is also the OR1K Emulator running Linux - http://jor1k.com http://jor1k.com and a generic x86 emulator - v86 - https://github.com/copy/v86 https://github.com/copy/v86 you can check a small benchmark here: https://github.com/s-macke/jor1k/wiki/Benchmark-with-other-emulators https://github.com/s-macke/jor1k/wiki/Benchmark-with-other-e... via https://news.ycombinator.com/item?id=10498305 https://news.ycombinator.com/item?id=10498305
- s-macke 11y agoYou need just the Linux kernel and Busybox in order to run Linux with a working shell. 2-4 MB all together I would say. My first Internet router ran a Linux from a 1.44MB disk 15 years ago.
- vidarh 11y agoYou're in the right ballpark. I ported a network monitoring app to Linux and helped bring Linux up on a custom board a long time ago, and that device had 4MB for the kernel, shell/utilities and the application itself. It fit nicely.
- wtallis 11y agoEven a modern OpenWRT distribution still fits in 4MB of flash if you leave out the web interface and only include the basic features.