Video summary

Running Linux In a PDF File

Main summary

Key takeaways

Technology

Summary

The video tests LinuxPDF, a proof of concept that runs a small Linux system inside a PDF. Although PDF files can include JavaScript, most PDF readers disable or restrict it for security reasons. LinuxPDF targets Chromium-based browsers, such as Chrome and Brave, using their PDF and JavaScript engines.

To run Linux, the developer compiled a modified version of TinyEMU to asm.js, a subset of JavaScript, using an older version of Emscripten. The result is embedded in a PDF of roughly 6 MB. The demonstrated system is a 32-bit Alpine Linux distribution with a Linux 4.15 kernel, GCC 7.3, and BusyBox utilities. The presenter also mentions a separate project that runs Doom inside a PDF.

Test Results and Limitations

  • Very slow: The system boots and handles commands slowly. The presenter attributes much of the performance issue to Chromium’s PDF engine disabling its JIT compiler. A Firefox build might run faster, but the project was not designed to target Firefox.
  • Limited functionality: The demonstrated setup has no networking. Users interact with the terminal using an on-screen keyboard and controls.
  • Slow storage: Writing 900 KB of random data took about 114.9 seconds, or roughly 7.8 KB/s. The presenter suggests the virtual disk is backed by the browser cache, with a 1 GB limit intended to prevent excessive cache use.
  • No persistence: Files can be created and read during a session, but changes disappear after reboot.
  • 32-bit build used: The presenter tried the project’s 64-bit option in Chromium-based browsers but could not get it to boot. They explain that 64-bit is possible in principle, but slower.
  • Not a practical messaging system: The presenter speculates that persistent storage could allow messages to be hidden in a PDF, but concludes that this would be less efficient and secure than ordinary end-to-end encrypted messaging. A conventional PDF viewer may display the file only as a static document.

Overall, LinuxPDF is presented as a technically impressive hobby project and proof of concept, rather than a practical way to run Linux for everyday tasks.

Guides and Demonstrations

The presenter demonstrates terminal commands, file listing, disk-space checks, and a write-speed test. They also describe how to build the PDF from the project repository, including changing the build setting from 32-bit to 64-bit.

Main Speakers and Sources

  • Main speaker: The video’s narrator from Mental Outlaw.
  • Project source: The LinuxPDF project and its developer, whose work is discussed and demonstrated.

Rate this summary

Your feedback will help improve summaries.

Improve this summary

Reprocess with a stronger model when the summary feels incomplete or inaccurate.

Pro

Translate summary in another language

Pro

Ask questions to this video

Chat for follow-up questions, clarifications, and source-backed answers.

Coming soon

Share this summary

Original video