4 ms·
How would you get an application, such as Firefox or Chrome, to know to use netcat to print?
by herpderperator 5y ago
How would you get an application, such as Firefox or Chrome, to know to use netcat to print?
- Evidlo 5y agoChoose Jetdirect/Appsocket in the printer add menu and it will do the same thing. There is nothing magic about netcat. You are just dumping Postscript/PDF data on a TCP port the printer is listening on.
- r3trohack3r 5y agoOh fascinating. If I use the system dialogue, I can choose the application to print to. There is an `lpr` option, and I can specify the application it invokes in a "Command Line" field. I can put `nc [printer_ip] 9100` there and it will just print. I just printed your comment this way. That's cool! Thank you for teaching me something!
- gsich 5y agoBack in the day I opened telnet on that port. Typed some stuff and was fascinated that it got print.
- jkingsman 5y agoYou'd need to set up a system printer using the JetDirect/socket protocol, then you could print via normal print dialog.
- r3trohack3r 5y agoToday I: CTRL+P -> Save to PDF. If I want to print multiple pages per sheet: Open PDF in Firefox, CTRL+P -> Save to PDF and configure the document. You can also pipe through `gs` to do this. For _huge_ documents (100s of pages), I'll pipe through `gs` first to do the pdf->ps conversion on my laptops CPU. The printer can do it, it just takes a lot longer.