Slashdot Mirror


Boot Linux (or OpenBSD Or Oberon Or FreeDOS) In Your Browser (copy.sh)

Long-time Slashdot reader DeQueue writes: Back in 2011 Fabrice Bellard, the initiator of the QEMU emulator, wrote a PC emulator in JavaScript that let you boot Linux in your browser. But he didn't stop there.

On his website he now has images that let you boot Oberon, Arch Linux, FreeDOS, OpenBSD, Solar OS and more recent versions of Linux such as 2.6 or 3.18 (the 3.18 image includes internet access). You can also boot to a CD image, or a floppy image, or a hard drive disk image on your local machine. And, if you don't need yet another operating system on your computer, you can even boot to Bootchess and play chess

92 comments

  1. I guess I'm the first to comment because by Anonymous Coward · · Score: 3, Funny

    Everybody is busy playing with it...

    1. Re:I guess I'm the first to comment because by vandamme · · Score: 1

      Playing with what?

      Oh.

  2. Worthless by cerberusss · · Score: 5, Funny

    The first thing I tried to do, is launch Win98. That worked. Then with Internet Explorer, go to Fabrice Bellard's site again and launch Windows 98 inside the VM. But now IE wants to install a modem first :(

    --
    8 of 13 people found this answer helpful. Did you?
    1. Re:Worthless by ledow · · Score: 1, Troll

      Not a chance in hell that IE would run that.

      Edge minimum, I should think.

      You'd even struggle to download a modern Firefox that worked on '98.

    2. Re:Worthless by Anonymous Coward · · Score: 0

      IE 2.0???

    3. Re: Worthless by MayeulC · · Score: 2

      Actually, I installed a modern version of Firefox a couple (was it 4?) years ago on Win95. It required some patched system libraries, though, and was quite slow.

    4. Re:Worthless by Anonymous Coward · · Score: 0

      You could probably use that serial terminal (on page) for modem connection during modem install win98 tries to connect with it.

      It is possible that Opera 12 (with old engine) can run at least that old bellard's demo with linux in JS.

    5. Re:Worthless by hcs_$reboot · · Score: 2

      Tried
      $ wine windows10.exe
      Faster than the original!

      --
      Slashdot, fix the reply notifications... You won't get away with it...
    6. Re:Worthless by Khyber · · Score: 3, Informative

      "You'd even struggle to download a modern Firefox that worked on '98."

      I guess someone doesn't know about OldVersion.

      --
      Still waiting on Serviscope_minor to wake up to fucking reality and realize that Jessica Price isn't going to fuck him.
    7. Re:Worthless by ledow · · Score: 1

      Er... the newest there is Firefox 19.0 from three years ago.

      Good luck!

    8. Re:Worthless by Anonymous Coward · · Score: 0

      You aren't supposed to download the _newest_ version from oldversion.com

      You are supposed to download an _old_ version.

      Also, http://releases.mozilla.org/pub/{phoenix,firebird,firefox}/ has them down all the way to 0.1 if that floats your boat.

  3. Fabrice Bellard is awesome. by queazocotal · · Score: 5, Informative

    Lzexe - exe file compression on the PC to fit more on your floppy.
    Qemu - emulate random processors on your PC.
    tccboot - boot linux using a live C compiler.
    Live broadcast of digital video using a VGA card. ...

    1. Re:Fabrice Bellard is awesome. by Anonymous Coward · · Score: 1

      I can't imagine working without QEMU.

    2. Re:Fabrice Bellard is awesome. by Anonymous Coward · · Score: 2, Informative

      Plus he founded ffmpeg, which has become the standard tool in the industry since.

    3. Re:Fabrice Bellard is awesome. by BarbaraHudson · · Score: 0

      LZ compression was invented by Abraham Lempel and Jacob Ziv in 1977, not Fabrice Bellard. Just saying ... That's why it's called LZ compression.

      --
      "Transparent" is a shit show that trades on every stereotype going. A man in drag is NOT a transsexual.
    4. Re:Fabrice Bellard is awesome. by Cajun+Hell · · Score: 3, Informative

      He is talking about a computer program called lzexe, not the compression algorithm that it used.

      --
      "Believe me!" -- Donald Trump
    5. Re:Fabrice Bellard is awesome. by marcansoft · · Score: 4, Informative

      Too bad this isn't his.

      Fabian Hemmer (http://copy.sh/, copy@copy.sh)

      I have no idea where the submitter got Fabrice Bellard from. This is hosted on a completely different site and authored by a completely different person. Yes, more than one person is capable of implementing an x86 emulator in Javascript. Bellard wrote his and never released the (editable) source; this guy, OTOH, wrote a more compatible emulator of his own (runs more than Linux) and open sourced it.

      This is also old news, I remember seeing it quite some time ago. The site has been up since 2014. Slow news day much?

    6. Re:Fabrice Bellard is awesome. by Anonymous Coward · · Score: 3, Informative

      >> Lzexe - exe file compression on the PC to fit more on your floppy.
      Correct.

      > LZ compression was invented by Abraham Lempel and Jacob Ziv in 1977
      Correct.

      LZ compression mechanism was invented by Abraham Lempel and Jacob Ziv but lzexe, a dos utility using that algorithm to compress EXE files was created by Fabrice Bellard.

  4. Will it run systemd? by Anonymous Coward · · Score: 0

    I would love to be able to use the systemd OS with this!

    1. Re:Will it run systemd? by amiga3D · · Score: 0

      I am almost as sick of hearing about the systemD crap as I am the US presidential election. Almost

    2. Re:Will it run systemd? by Anonymous Coward · · Score: 2, Funny

      I want to see Trump and Clinton argue about SystemD in tonight's debate.

    3. Re:Will it run systemd? by amiga3D · · Score: 2

      Wouldn't that be a hoot. It'd probably make as much sense as anything else those two blather about. I'd rather watch Johnson and Stein debate. Sad!

    4. Re: Will it run systemd? by bestweasel · · Score: 1

      But which one will pick which side?

    5. Re:Will it run systemd? by aliquis · · Score: 1

      Wouldn't that be a hoot. It'd probably make as much sense as anything else those two blather about. I'd rather watch Johnson and Stein debate. Sad!

      Immigrants should be kept in user-land.

      (Well, not me in America (if ever) but others and immigrants here (Sweden.))

    6. Re:Will it run systemd? by Anonymous Coward · · Score: 0

      How about a "steel cage death match".... Winner is the one who is still alive at the end... My money is on Trump...

    7. Re:Will it run systemd? by unixisc · · Score: 1

      If Clinton does it, she can further disprove the idea that she's a neophyte. While Trump can demonstrate that he has a head for details as well.

  5. Fabrice != Fabian by Anonymous Coward · · Score: 1

    Where does it state that it's from Fabrice Bellard?
    The page says it's by Fabian Hemmer

  6. bootception by Anonymous Coward · · Score: 0

    Not enough boots

  7. Yes! by ledow · · Score: 3, Funny

    I beat my record!

    Run the Win98 one.

    Shut it down.

    It BSOD's with 0E exception in VXD VDD.

    That's got to be a world-record in terms of "number of instructions executed before a fatal error".

    1. Re:Yes! by JackieBrown · · Score: 2

      I've gotten the blue screen in 98 before it even finished booting.

    2. Re:Yes! by Thud457 · · Score: 1

      That's a very accurate emulation of the real thing then.

      --

      the preceding comment is my own and in no way reflects the opinion of the Joint Chiefs of Staff

    3. Re:Yes! by Anonymous Coward · · Score: 0

      >> I've gotten the blue screen in 98 before it even finished booting.

      > That's a very accurate emulation of the real thing then.

      Tehehe, very funny...

  8. So Firefox can actually run Chrome now? by Anonymous Coward · · Score: 1

    Mozilla.org must be ecstatic!

  9. Fabrice is a wizard by Anonymous Coward · · Score: 1

    I wish that his improved picture format, BPG, would get more attention and adoption. It truly is a better replacement for both JPG and PNG.

  10. And you'll probably need a 4Ghz, 8 core CPU.. by Viol8 · · Score: 2

    ... to run an OS image 50% of the speed it would run on a 386.

    Also how exactly does the internet access bit work when browsers deliberately limit the net access they allow javascript?

    1. Re:And you'll probably need a 4Ghz, 8 core CPU.. by Anonymous Coward · · Score: 1

      Also how exactly does the internet access bit work when browsers deliberately limit the net access they allow javascript?

      Without reading the article (who does?), I'd say it requires a proxy service in the same origin as the Javascript. Alternatively, it could require turning browser security off (e.g. --disable-web-security in Chrome).

    2. Re:And you'll probably need a 4Ghz, 8 core CPU.. by Anonymous Coward · · Score: 0

      Still more performant than your average javascript framework doing stuff with the DOM

    3. Re:And you'll probably need a 4Ghz, 8 core CPU.. by Espectr0 · · Score: 1

      the 3.18 console version runs decent. booted in about 40 seconds, including the download.

  11. Good idea. Amazing software. Still needs work. by Danathar · · Score: 1

    I think the developer is on the right track. I'd LOVE to have a workable emulator in the browser that is good. It's not there yet but keep working on it! Good job!

    1. Re:Good idea. Amazing software. Still needs work. by blackomegax · · Score: 1

      Better performance would be nice too.

  12. Re: Great news! So exciting! by Anonymous Coward · · Score: 0

    Keep us posted!!!

  13. "boot to a CD image" by Anonymous Coward · · Score: 0

    I'd like to see how they manage that one.

  14. Are you sure it's Fabrice Bellard? by Anonymous Coward · · Score: 0

    I'm not sure that this is created by Fabrice Bellard, since the README.MD says:

    Author

    Fabian Hemmer (http://copy.sh/, copy@copy.sh)

    1. Re: Are you sure it's Fabrice Bellard? by Anonymous Coward · · Score: 0

      It is not by Bellard that is for sure. I really dont have any respect left for this site. fucking retard DeQueue, fuck you!

    2. Re:Are you sure it's Fabrice Bellard? by hey! · · Score: 1

      From the top of "linux.js"
      /*
            Linux launcher

            Copyright (c) 2011-2012 Fabrice Bellard

            Redistribution or commercial use is prohibited without the author's
            permission.
      */

      --
      Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
    3. Re:Are you sure it's Fabrice Bellard? by hcs_$reboot · · Score: 1

      There is a difference between a domain owner and a developper. Nice TLD btw, a bit pricey though.

      --
      Slashdot, fix the reply notifications... You won't get away with it...
  15. No! No Chess! by Anonymous Coward · · Score: 0

    How about Global Thermonuclear War?

  16. Re:Wow by jellomizer · · Score: 1

    There is the concept of using a platform independent to run a platform specific OS and applications which is rather appealing.

    Especially for those who were computing in the 1980's and 1990's where platform independent meant, you were just changing a few #define a full compile away (or if you were lucky you had the make command that did the #defines for you. Then if you had a different enough platform, you may still not be able to get it to compile, because the programmer didn't know that your OS or Linux distribution didn't have such libraries installed by default.

    The holy grail was to be able to run different apps for different OS's on the same system. We now have Wine, Dosbox, and Virtualization technologies that covers most of that.

    As systems are moving away from Plugins, and Interpreters. The browser like it or not, has became the default method of running applications on your system.

       

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
  17. Re:Wow by Anonymous Coward · · Score: 1

    Not on my system. Browsers should browse. Fuck the entire idea that they should run applications too. That's what compilers are for.

    Now get off my lawn.

  18. 32 bit only by Anonymous Coward · · Score: 1

    I can't run TempleOS on it.

    1. Re:32 bit only by RandomSurfer314 · · Score: 1

      I would love TempleOS if it had a network stack and was programmed with something like Pascal, Modula or Lisp instead of some C-ish language. But I guess that's a matter of taste. It's insanely cool anyway.

    2. Re: 32 bit only by Anonymous Coward · · Score: 0

      Heretic! It was written in holy C, and all design decissions were communicated to the nutty developer by god himself.

  19. Why not write kind and encouraging words? by jbrohan · · Score: 1

    Why ever would someone think that it is interesting to find a way to break this. This is obviously a fantastic effort, he needs friends to help.

    1. Re:Why not write kind and encouraging words? by Anonymous Coward · · Score: 0

      Why not write kind and encouraging words?

      Yo, dawg...

    2. Re:Why not write kind and encouraging words? by Anonymous Coward · · Score: 0

      I for one think this is cool. Would I use it every day... Probably not. But it might be a good way to turn an old Pentium D into a nice heater for winter...

      Slashdot has gone to shit - and I it's not entirely because of the editors. I used to read/post regularly back around 99/00 and the feel of this place was different. The humor was way more "usenet style". The pedantic dicks often had a point versus being wannabe's trying to karma whore, or attention whores. Maybe it's because we all got jaded. The internet was revolutionizing everything. It hadn't been *too* long ago when we first sat at an XTerm and used NCSA Mosaic, called up a friend and said "Hey you have to check this world wide web thing out" Broadband was awesome - we still all remembered modems.

      At first I thought I'd just become grumpier and older, and then I realized the same thing hadn't happened in other places in life, and in some places it's worse. I mean the SJW shit is insane. You can't have your feelings hurt at University? WTF? REAL LIFE will hurt your feelings (and your body) very, very, badly. Part of life is dusting yourself off and dealing with it as best you can.

      This isn't about generations either. Many I've worked with are awesome. They are hard working, and they are willing to discuss non-politically correct subjects. It's gen-X and boomers at universities that let them become crap.

    3. Re:Why not write kind and encouraging words? by BarbaraHudson · · Score: 1

      You seem to have missed the point about universities. They are about making money first and foremost. Can't do that if you offend people. Of course, when money is job one, that's what we used to call "selling out."

      --
      "Transparent" is a shit show that trades on every stereotype going. A man in drag is NOT a transsexual.
  20. Recursive by Anonymous Coward · · Score: 0

    So, once I booted up Linux in my browser, I could run a web browser, and in that webbrowser I could boot a Linux image, in which I could boot a browser.

    Or.... I could boot a linux in a Chrome OS machine, in the linux, I could boot Chrome OS, running Android, which starts a browser, which runs a Linux, which runs a Chrome OS which runs Android which runs a browser which runs a linux boot image, which..... etc.

    Can we go for the quadruple and start Windows in a Virtual Machine?... On Linux in Android in Chrome on Linux.

    Want to play.

    1. Re:Recursive by Anonymous Coward · · Score: 1

      Or.... I could boot a linux in a Chrome OS machine, in the linux, I could boot Chrome OS, running Android, which starts a browser, which runs a Linux, which runs a Chrome OS which runs Android which runs a browser which runs a linux boot image, which..... etc.

      It would probably still be faster than the Android emulator that comes with Android Studio. :-P

  21. Why javascript? by Anonymous Coward · · Score: 0

    Why javascript? I thought the JVM, or .NET, were the standard, general purpose VMs?

    Yes, I am a Javascript hater, at least in the browser. Maybe javascript has a better fit somewhere else.

  22. Re:Wow by jellomizer · · Score: 3, Interesting

    Where do you draw the line?

    Browsers use to just do text with hyperlinks, then we added formatted text and then pictures, additional text positional and formatting. Then we added input form features. After that we did some preserver checks to validate information before sending to the server so people didn't have to wait for a response. The types of checks got more complex and also needed better ways to show the validated info. Then we realized we didn't need to reload the whole page just send the data needed, based on the data the display can be changed...

    Once you give a programmer a tool, that can do IF, Loops and store variables it becomes a development platform.

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
  23. Re: Wow by Anonymous Coward · · Score: 0

    You sir are full of shit. I am in no way impressed by your extrairdinary experience in C preprocessor syntax. Moreover, your claim regarding preferences of software runability in an emulated environment, which is constructed using the shittiest method available, is obviously pulled right out of crazy horse's ass. And by crazy I mean of such species crazier than a shithouse rat.

  24. Re: Wow by Anonymous Coward · · Score: 0

    Dude, are you a web-designer or something? You talk just like them.

  25. Pfft. I bet I could do that in emacs. by hey! · · Score: 1

    You don't need a browser.

    Oh ... wait.

    --
    Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
  26. Re: Wow by jellomizer · · Score: 1

    Well I wasn't bragging about my preprocessor syntax. I actually had to look them up, because it had been a while. However back in the day, changing those were the key to cross platform capability. As with #ifdef it would tell the compiler which version of a function to load.

    Now using a browser for emulation is mostly a toy. However why can't we have fun with toys every now and then. Why does technology need to be "enterprise class" all the time?

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
  27. Re: Wow by Anonymous Coward · · Score: 0

    I think it's pretty boring. Just like people trying to do raytracing on a damn C64.

  28. YES! by Anonymous Coward · · Score: 0

    This might be just what I need :)

  29. Windows 98 probably not licensed by Anonymous Coward · · Score: 0

    My bet is the site will have to pull down the Windows images since I doubt a license was obtained.

    1. Re:Windows 98 probably not licensed by BarbaraHudson · · Score: 1

      Microsoft doesn't let you distribute multiple copies of its' OS for free - not even DOS. Ditto with many of their programs, like Office.

      --
      "Transparent" is a shit show that trades on every stereotype going. A man in drag is NOT a transsexual.
  30. Re:Great news! So exciting! by BarbaraHudson · · Score: 0, Redundant

    That's one thing that both Anonymous Cowards and running an OS in the browser have in common - who gives a shit? The only thing both are good for is to ridicule.

    Running a secure OS inside an insecure browser doesn't magically make the browser secure. This whole thing is like a dancing dog - a diversion, but on the whole not very useful.

    --
    "Transparent" is a shit show that trades on every stereotype going. A man in drag is NOT a transsexual.
  31. This,kids, is what it was like back in the day. by hey! · · Score: 2

    The developer of this thing has thoughtfully provided a "hello.c" file and cc. Oh, yes, and emacs. So go ahead and type:

    cc -o hello hello.c

    and marvel at the speed.

    This environment is just like my first full-time, non-student programming job. There was no IDE, so we pretty much lived in emacs. I haven't used emacs in decades, but my fingers still remember the key bindings for the commands -- as long as I'm not trying to consciously remember them.

    It was on a 68020 running at 16 MHz which delivered a grand total of 2 MIPS at 16 MHz. We shared all that computing power among four programmers, which was luxury because the system was supposed to support 16 users (32 max).

    It seems almost inconceivable, but the funny thing is it was really just as fun programming back then as it is now with a supercomputer all to myself. Our office was next to a reservoir, and used to start a compile, wait five minutes for the parsing to catch any syntax error (about 75% of the time), then go for a walk on the 1.5 mile trail around the pond. Then I'd stop in at the convenience store to buy a cup of coffee, and head back to the office, and make would just be finishing up the linking. God forbid you got a link error though. That's why we had time to read the entire Unix manual (all eight sections) cover to cover. Many times.

    This has fed my conviction that user perceptions of system speed are as strongly affected by consistency as it is by absolute speed. If you're used to a build taking fifteen seconds,a sudden change to 30 seconds seems unbearable.

    --
    Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
  32. Re:Wow by BarbaraHudson · · Score: 1

    Really? Not happening, because the bulkier a browser gets, the crappier it gets. Bad enough we have to deal with OS security bugs, now you want everything to also have to deal with browser security bugs? Insane. Might as well just install Flash and be done with it if more bugs is your goal.

    --
    "Transparent" is a shit show that trades on every stereotype going. A man in drag is NOT a transsexual.
  33. Re:Wow by Cajun+Hell · · Score: 2

    Once you give a programmer a tool, that can do IF, Loops and store variables it becomes a development platform.

    And once you give someone a piece of amber with velociraptor DNA inside it, and a way to embryonize it, it becomes a way to make a cool theme park.

    --
    "Believe me!" -- Donald Trump
  34. Re:Great news! So exciting! by Anonymous Coward · · Score: 0

    That's one thing that both Anonymous Cowards and running an OS in the browser have in common - who gives a shit? The only thing both are good for is to ridicule.

    Running a secure OS inside an insecure browser doesn't magically make the browser secure. This whole thing is like a dancing dog - a diversion, but on the whole not very useful.

    But I can run an OS inside a browser and then give the OS Internet access! It's the worst of both worlds

  35. The day is coming by Gavagai80 · · Score: 1

    Maybe you thought waiting for 10 frameworks to load was bad. In a few years, it will be standard practice for websites to load a full operating system to run themselves.

    --
    This space intentionally left blank
  36. Downside by ThatsNotPudding · · Score: 1

    You must have a Microsoft-signed UEFI tab running at boot time.

  37. Re:Wow by ThatsNotPudding · · Score: 1

    Where do you draw the line?

    Ever see the movie Cherry 2000?

  38. Re:Wow by CanadianMacFan · · Score: 1

    Once you can watch porn on it then everything else is just unnecessary.

  39. Re:Great news! So exciting! by unixisc · · Score: 1

    Ain't that something like a VM? Like in SAP, where you open a browser under Windows, which fires up Citrix, and which then runs SAP

  40. Re:Wow by unixisc · · Score: 1

    I was thinking - if I could run SteamOS under a browser, then I could run my Steam games in PC-BSD under Firefox

  41. Re:Wow by CanadianMacFan · · Score: 1

    I really hope that you aren't suggesting that you don't have the checks done only on the browser. You open yourself up for attack that way. Checks on the browser are nice to validate the input and quickly provide feedback to the user if something is wrong. But you never depend on them on the server. First, your client could be out of date and not be doing the right checks. More importantly if someone wants to harm your systems then it isn't that hard to change the data being sent to the server after the checks have been performed. Yes it means that your server is going to be doing a lot of tests that are almost always going to come back fine but it's a lot better than trying to clean out your database or fixing your server because you thought that checking the data on the client side only was good enough.

  42. I knew I was doing something wrong by Anonymous Coward · · Score: 0

    Shit I'm running firefox under linux.

  43. This is from Copy (Fabian). Not Fabrice Bellard. by Anonymous Coward · · Score: 0

    Get your facts right when making the story.

  44. idiots can't read by Anonymous Coward · · Score: 0

    fucking idiot

    OP says CLEARLY

    so people didn't have to wait for a response.

    your attempt to appear intelligent has failed miserably

  45. I managed to get to the Windows 10 recovery screen by Anonymous Coward · · Score: 0

    I inserted a Windows 10 ISO and it got to boot logo and then the recovery screen saying my PC is not 64-bit.

  46. I'm curious to know... by Anonymous Coward · · Score: 1

    When will Linux become a real user OS say like OSX? Really simple so that any of us idiots can use it without it going kablooey. I've tried loading Ubuntu and Linuxmint, I was able to get Ubuntu to work, however; I couldn't get used to the side bar icons and such. With Linuxmint, I wasn't able to get it to load my Nvidia drivers and upon loading it on my hard drive was only able to achieve a black screen with no interaction.

    I'm really ready to make the switch, but I haven't been able to find something that will just load and work without many problems as I'm not tech savvy in the least.

  47. Re: Wow by Anonymous Coward · · Score: 0

    Or you coul run them games on any Unix natively, which is far more efficient, but doesn't happen either. See why?

  48. Re:Wow by thegarbz · · Score: 1

    Where do you draw the line?

    If you can serve porn videos you're all set.

  49. Re: Wow by Anonymous Coward · · Score: 0

    Can't be. A web designer nowadays would start with Javascript and AJAX requests and forgo all these silly things such as hyperlinks and HTML.

  50. In JavaScript by NoSalt · · Score: 1

    Wow ... this is amazing! I had no idea this was even possible with JavaScript. All I can do with JavaScript is manipulate the DOM and other standard browser functions. This guy is the boss.