I hate working with printers, but I know this feeling is widespread. Today I tried printing something and it didnāt work, obviously. Since my setup is slightly more complicated than āPrinter connected via USB directly to the machineā it is always a hell to debug.
I have been trying to run networked printers forā¦ 12 years? Iāve tried hosting a network printer on Windows and on Linux and stuff always breaks for no reason. Right now I have an HP LaserJet printer that is connected to a laptop running Linux. There CUPS shares it over the network used by two Linux PCs.
On my fiancĆ©eās PC printing worked fine. But on my PC, with the same config, it didnāt. My deduction was on the fact that something is different between our OSes - I run NixOS, she runs Manjaro.
I was debugging it for hours. The only error I was getting was that
the printerās configuration is incorrect. After fiddling with it, I
finally decided to not use the printer that CUPS discovered
automatically (its URI began with dnssd://
) and I instead
used the http://
CUPS URI:
http://192.168.1.201:631/printers/Printer
and I used the
Generic
make and Raw Queue
driver. After that
it started working.