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

56 of 92 comments (clear)

  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 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.

    3. 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...
    4. 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.
    5. Re:Worthless by ledow · · Score: 1

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

      Good luck!

  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 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
    4. 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?

    5. 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. 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

  5. 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

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

    Mozilla.org must be ecstatic!

  7. 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.

  8. 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 Espectr0 · · Score: 1

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

  9. 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.

  10. 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.
  11. 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.

  12. 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.

  13. 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.

  14. 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 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.
  15. 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!

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

    But which one will pick which side?

  17. 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.
  18. 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.))

  19. 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.
  20. 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.
  21. 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.
  22. 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...
  23. 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.
  24. 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.
  25. 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.
  26. 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
  27. 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
  28. Downside by ThatsNotPudding · · Score: 1

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

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

    Where do you draw the line?

    Ever see the movie Cherry 2000?

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

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

  31. 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

  32. 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.

  33. 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

  34. 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.

  35. 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

  36. 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.

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

    Where do you draw the line?

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

  38. 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.