Here's Linux running inside a PDF, running inside a browser, running on a Windows PC

https://www.pcgamer.com/software/operating-systems/heres-linux-running-inside-a-pdf-running-inside-a-browser-running-on-a-windows-pc/

115 points · 12 comments · view on lemmy.world

12 Comments

hellofriend@lemmy.world · 27 pts · 1y (4 replies)

BUT CAN IT RUN DOOM?

bjoern_tantau@swg-empire.de · 24 pts · 1y (2 replies)

You missed last week's news.

kubica@fedia.io · 1 pts · 1y
[ removed ]
30p87@feddit.org · 21 pts · 1y (4 replies)

Considering it just exploits the fact that PDFs can execute JavaScript, it's much more "here is Linux running in JavaScript, containered in a PDF"

infeeeee@lemm.ee · 16 pts · 1y (3 replies)

Video without the "article": https://www.youtube.com/watch?v=cWnN-FA3zRM

Sourcecode: https://github.com/ading2210/linuxpdf

It's TinyEMU under the hood:

TinyEMU is a system emulator for the RISC-V and x86 architectures. Its purpose is to be small and simple while being complete.

It has a javascript version, JSLinux, that's embedded in the pdf. You can run other OS-es in the browser with that, see link. It has X window support, so it should be possible to run a full GUI operating system in a pdf.

thefartographer@lemm.ee · 7 pts · 1y (1 reply)

Why is this "win-11" pdf 70GB? Win eleven of what?

Septimaeus@infosec.pub · 2 pts · 1y

Why is this “win-11” pdf 70GB? Win eleven of what?

Eleven. This OS was released in the time before the war. There never was a Windows Twelve.

sik0fewl@lemmy.ca · 2 pts · 1y

I would be more impressed if it was written in Postscript.

RmDebArc_5@sh.itjust.works · 11 pts · 1y

If your not running Linux inside a PDF, inside a browser, inside WSL, inside Windows, inside the Linux version of virtualbox, inside FreeBSD jails, on a Arm System inside a x86 emulator than what are you even doing

Gsus4@programming.dev · 7 pts · 1y (1 reply)

Wtf...pdfs allow js to execute? Who thought that was a good idea? How about it runs flash too while we're at it?

ms5K8oWx@programming.dev · 0 pts · 1y

* Laughs in Firefox where this doesn't work *