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.

Tags: english linux nixos printing cups

Posted on: 2024-07-05, last edited on: 2024-07-05, written by: Kavelach