Last Updated 12 hours by cneuhaus

Just some stuff I learned after a long Sunday on printing:

Setup:

  • HP107w printer connected via USB to a local server
  • CUPS installed on this server

Requirements:

  • print from local server, e.g. via echo "This is a test print" | lp
  • print from any desktop PC (windows or Linux from my network)
  • driverless installation -no need to install the HP 107 driver
  • Do not use the Wifi-Part of the printer – dont like to have it enabled

Solution:

  • Driverless printing: use IPP:Everywhere – that is a protocol where the printer gets pdf or postscript and manages the rest by itself – no need to install a driver
  • Use ipp-usb on the local server to connect the USB printer and make it available via ipp, once installed it looks for usb-printers, that should be visible via lsusb before
  • Find the ipp-url of this printer, this is the URL to reach the printer *locally* , magic command is below, check that (USB) is there
    • sudo lpinfo -v
      network ipp://HP%20Laser%20107w%20(HPF4390959C9CB)%20(USB)._ipp._tcp.local/
  • To make the printer available in the network, you have cups installed on the local server,  the trick to configure cups:
    • create new printer, and select “Internet Printing Protocoll (ipp)
    • image.png
    • on the next page copy the ipp-URL just connected.
  • CUPS moves the printer from the local domain and makes it available on the network.

Result:

  • Printing from Linux works fine
  • Printing from Windows is still a bit buggy .. following up on this

 

Categories: Uncategorized