Run Linux Inside a PDF: How a Teen Turned a PDF into a Live OS

A teenage developer has ingeniously run a full Linux system inside a PDF by adapting the TinyEMU RISC‑V emulator to asm.js and using PDF‑embedded JavaScript, enabling interactive command‑line access via a virtual keyboard in Chromium‑based browsers.

Open Source Linux
Open Source Linux
Open Source Linux
Run Linux Inside a PDF: How a Teen Turned a PDF into a Live OS

A foreign high school student recently succeeded in porting the classic 1993 shooter Doom to a PDF file, allowing it to be played directly in a browser.

Now the latest achievement is that the same student, known as vk6_ (also ading2210/Allen), has managed to run a Linux system inside a PDF file.

vk6_ modified the TinyEMU RISC‑V emulator, compiled it to asm.js, and leveraged the PDF format’s JavaScript support to execute Linux within the PDF.

For display, he created a separate text field for each pixel row, filling it with different ASCII characters to produce simple graphics.

Input is handled via a virtual keyboard; key presses are sent through a text box to the virtual machine, enabling users to interact with the Linux PDF, run commands, or send keystrokes.

The Linux PDF runs in Chromium‑based browsers such as Google Chrome or Microsoft Edge. Users can try a live demo on the website or view the source code on GitHub to build it themselves.

Website: https://linux.doompdf.dev/linux.pdf GitHub: https://github.com/ading2210/linuxpdf

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

PDFBrowserasm.jsRISC-VTinyEMUvirtual keyboard
Open Source Linux
Written by

Open Source Linux

Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.