I'm running Arch Linux on two computers. I have been trying to share a USB printer which is connected to a server, so that a client computer can print to it.
Following instructions I found here https://www.cups.org/doc/sharing.html, I ran the following commands on my server to share my printer:
cupsctl --share-printers lpadmin -p printer -o printer-is-shared=true
This made it possible see the printer on the client machine via the CUPS web interface, "List Available Printers". However, when I added the printer, selected a PPD, and tried to print a test page, I got an error
"Unable to locate printer "server_name.local"."
According to this post which mentions mDNS, I thought maybe this is because I have disabled
systemd-resolved which breaks nscd and causes other problems for me. However, when I started it on the client and server I still got the same error.
When I edited
/etc/cups/printers.conf to change "DeviceURI" for the printer from
and tried to print a test page, I saw that a connection was established, but eventually got an error "The printer is in use.".
I tried creating a new printer via "Add Printer > LPD/LPR Host or Printer" and tried various device URIs following the URIs under "Examples", like:
This resulted in errors like "The printer configuration is incorrect or the printer no longer exists." or "Filter failed".
I think this technology worked at some point in the past. How can I print to another CUPS server reliably in Linux?