LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Run Linux in your browser (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/run-linux-in-your-browser-881178/)

D1ver 05-17-2011 06:22 AM

Run Linux in your browser
 
I don't know if this has been posted or not, but I saw it on Slashdot and though it was pretty cool..

This Fabrice Bellard fellow has written an x86 emulator in JavaScript that boots Linux in your browser (requires FF 4 or chrome it seems).
http://bellard.org/jslinux/

It seems he also has some other pretty amazing acomplishments. http://en.wikipedia.org/wiki/Fabrice_Bellard

sundialsvcs 05-17-2011 06:35 AM

http://www.urbanlegends.com ... :rolleyes:

D1ver 05-17-2011 06:45 AM

Quote:

Originally Posted by sundialsvcs (Post 4358721)

Did you look at it at all? You can write some basic code in vi and compile it using his C compiler 'tcc'.

jefro 05-17-2011 05:50 PM

Been out a long time. http://jpc.sourceforge.net/home_home.html

MTK358 05-17-2011 06:05 PM

Quote:

Originally Posted by jefro (Post 4359331)

:banghead:

Java != JavaScript. They're not even closely related.

jefro 05-17-2011 07:44 PM

Run linux in your browser was the topic.

JPC is more advanced and really useful right now.

I think the world of qemu and bellards work on it but this is really useless at this point.
http://bellard.org/jslinux/tech.html

KenJackson 05-17-2011 09:20 PM

Is there any practical use for JS/Linux?
 
If you haven't heard, Fabrice Bellard (the developer of QEMU) created JS/Linux, a Javascript PC Emulator.

He then compiled a 2.6.20 Linux kernel and put together a mini distro that's up and running and you can actually play with root access in a shell right here! (Though you must have a very modern browser.)

There's an article in The-H about it.

Is this cool or what?

No wait! That was rhetorical, it's not the question. This little demo isn't practical since there is no network connectivity, and I couldn't see anyway to access a real file system. So there would clearly need to be some more development. But here's the real question:

Is there any practical use for this?

I hope so, but I can't think of anything.

dyasny 05-18-2011 09:48 AM

well, at te very least this is proof that javascript is a very useful tool

seriously though, this might be a beginning of a new level of application sandboxing within browsers

RockDoctor 05-18-2011 09:48 AM

I don't know of any practical use for it (at this time), but it's definitely cool!:cool: :cool: :cool:

wpeckham 05-18-2011 10:00 AM

jslinux
 
Uses? Talk about a secure sandbox for testing!
It may also be an interesting place for a newby to study command-line use and shell scripting. I can see expanding upon the concept to create useful cases. Things I now use virtual machines for might transfer to such an environment.

Mostly it is just a REALLY NEAT TOY! One I would not have thought to create myself, and one that has earned my respect for the author.

jefro 05-18-2011 04:34 PM

Not useful yet or maybe never.

Look at JPC for something that is useful (java not script) right now.

KenJackson 05-18-2011 08:00 PM

Quote:

Originally Posted by jefro (Post 4360333)
Look at JPC for something that is useful (java not script) right now.

At first I thought this was almost spam, jefro. But it's far from it.

It turns out that JPC is a legitimate x86 PC emulator that runs in Java, just like you said.
And it runs DSL. And you can run a demo right on the JPC site.
Impressive.

Both of these are fascinating and surprising, though I still can't think of any real use for them beyond the fun they provide in messing with them, or maybe some kind of demo.

jefro 05-18-2011 08:39 PM

In a very real sense things like virtual machine software was at one time this basic.

XavierP 05-24-2011 04:16 PM

Moved to Linux-Virtualisation

Telengard 05-24-2011 04:56 PM

http://www.oszoo.org/wiki/index.php/Free_Live_OS_Zoo


All times are GMT -5. The time now is 09:54 PM.