Linux Running in a PDF

  • Doesn't work, the document is unresponsive. I used a HP DeskJet 2820e Printer btw.

  •     1. Linux Running in a PDF (doompdf.dev)
        114 points by theden 4 hours ago | flag | hide | 37 comments
    
        2. Ingesting PDFs and why Gemini 2.0 changes everything (sergey.fyi)
        978 points by serjester 17 hours ago | flag | hide | 323 comments
    
    As people start bolting various kinds of PDF parsers and evaluators to LLMs, there's got to be some interesting hack potential.

  • Posted few days ago: https://news.ycombinator.com/item?id=42891937. Repo also provides some explanation/info on how the machinery works.

  • Finally! I've been making the joke "put Linux.js in a PDF so I can run Linux, inside a PDF, inside a browser, inside Linux, inside a PDF, inside a browser, inside Linux" for far too long...

  • Using JS for this feels like cheating... I wonder if similar things would be possible with PostScript?

  • Finally, I can `rm -rf /` in a PDF.

  • Copy 10 of these in an USB drive. Enjoy your mobile Kubernetes cluster.

    https://news.ycombinator.com/item?id=42681039

  • At least three detections on VirusTotal, but I'm not sure if it's significant.

    ClamAV: Js.Trojan.Obfus-48

    Cylance: Unsafe

    Google: Detected

  • Set pdfjs.enableScripting in Firefox about:config to false.

  • But is there a Linux PDF editor that runs Linux in a PDF? Evince isn't loading it for me...

  • Does anyone know if running PDFs through the following filter (as in [0]) prevent malicious actors?

        gs \
            -dNOPAUSE \
            -sDEVICE=pdfwrite \
            -sOUTPUTFILE=clean.pdf \
            -dBATCH \
            dirty.pdf
    
    
    [0]: https://tex.stackexchange.com/a/481609/29430

  • Who the hell keeps making those? First I saw Tetris, now a whole OS. Awesome!

  • Missing from headline: It is a RISC-V VM.

  • Right below this in my feed:

    > Ingesting PDFs and why Gemini 2.0 changes everything

    Be afraid.

    Be very afraid.

  • Does it run doom? ;-)

  • Just because you can, doesn't mean you should....

  • These "dynamic pdfs" are the anti-thesis of what pdf files are meant to be: static objects containing text that always looks the same. My state dept. of natural resources loves them which means all the regulations are now inaccessible. All I can see in the "pdfs" (not pdfs, pdf shells that are webpages) are the following lines,

    "Please wait... If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document."

    ... because they pull down their actual contents using JS from some website. They are the anti-thesis to what a pdf file is meant to be. Truly the worst of both worlds and a huge step backwards in accessibility and longevity. All that a screen reader can read is the above text.

  • Doesn't work in Evince or Firefox FWIW.

  • I have not updated my noscript pdf reader in years... The dreade update is coming up though: mupdf.

  • > Note: This PDF only works in Chromium-based browsers.

  • I hear that CSS is Turing complete.

  • Damn this is actually interesting

  • undefined

  • undefined

  • Has anyone tried printing it? I'm afraid!

  • Taste is subjective, but this broke that barrier. It is just absolutely hideous. Good engineering work, but still a total abomination in itself.

  • Doesn't work in Safari (?).

  • What’s next? GPT in PDF?

  • ingest this, gemini

  • I would really appreciate if someone could put a decent PDF reader, like Sumatra, into a PDF so I could have a portable and good PDF reader on locked down computers.

  • undefined

  • [flagged]