Hacker News new | ask | show | jobs
by ESMP 571 days ago
Might be of use, however do I need to keep the mac running? If that's the case I see no benefit over just using the mac itself to print directly.

However, if this could be installed on my linux server, that would be make this really useful.

3 comments

It continues to work while the Mac is sleeping as long as you have an Apple TV, HomePod, or AirPort Express (as those devices run the bonjour sleep proxy).

I’m working on making the script run seamlessly on Linux as well. The only benefit to Linux is that one probably has an always on server or raspberry pi running 24/7.

The macOS version is good for those that have a Mac that’s plugged in at home even if it’s sleeping. Also resource utilization is 0.0% so not too shabby.

I use a small Linux vm to host cups with AirPrint setup - it lets us use my old laser printer that would otherwise be e waste.

It's super neat. Except for when my wife has random issues printing. Then I fucking hate it.

I shoved a disused Raspberry Pi running cups behind my Laserjet MFP connected over USB. Works great. As a plus, I could install SANE and get network scanning from it, including from the ADF. scanservjs is a nice frontend for that.

https://sbs20.github.io/scanservjs/

I cheated adding power to it by just using a power cable splitter so I could shove a reliable USB power brick up next to the printer.

https://www.amazon.com/Tekit-Splitter-Single-Female-Adapter/...

THANK YOU. I've been looking for something like scanservjs for ages as a web frontend to my network scanner to feed Paperless. For whatever reason I never could find something when I would search. That looks like exactly what I wanted, penciling it in for a weekend project.
I tried this and had too many issues with other devices. I finally just bought a Brother laser printer with built in AirPrint that worked fine for many years but lately it seems to disconnect once in awhile. Current fix for that has been a smart switch that I programmed to just power cycle the printer twice a day.

Eventually I’ll just upgrade to a newer one with color and hopefully better AirPort support, but I’m glad cups and AirPrint works alright since I haven’t tried it in a few years. The issues your wife is experiencing though are likely the same ones that led me to just get a printer that supports it and from what I read at the time Brother has the best AirPrint support (purely anecdotal)

The most egregious problem that I've found is a GhostScript issue with transparent elements in PDFs that makes the printing process take way too long (and use 100% CPU) to start.

https://github.com/OpenPrinting/cups-filters/issues/569

Presumably useful in a multicomputer environment with a printer shared across the network, such as an office?
Yep or home especially for printing those return labels from your phone.