Open deeplow opened 2 months ago
This is also warned when running _setup_printer(). Running the same line manually on my system succeeds but shows the following on stderr:
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
I have confirmed now that this line also appears on the sd-device
's logs.
We have sadly known about this for a while and even tried to suppress those warnings: https://github.com/freedomofpress/securedrop-client/commit/9bcd76a6561889da66b10d999fb0c47329ae8c91 Another good reason to move away from this approach and towards the modern age :)
I looked a bit into this yesterday. I was able to successfully set up an HP printer without drivers (IPP).
avahi
and cups
sudo apt install ipp-usb cups
system-config-printer
, just add the printer, selecting the "Generic" driver and then "IPP Everywhere". (note, the printer showed up in two places: close to the top of the list and then also under Network printers. In my case, both worked)That was it. In the final version we may want to automate some of the steps using lp
commands, but for now I'd say this already provides satisfactory results.
I found the Debian wiki a very valuable resource. Many of my findings come from there.
Run
lsusb -v | grep -A 3 bInterfaceClass.*7
Then check for a value of 4 for bInterfaceProtocol indicates a USB IPP device:
bInterfaceClass 7 Printer bInterfaceSubClass 1 Printer bInterfaceProtocol 4 iInterface 0
The interface is usually referred to as being a 7/1/4 one.
@rocodes and I have both had successful experiences with setting up driverless printers. The Debian wiki provides a lot of detail on the topic and it was my main resource to get things working. However, none of us managed to fully automate the process (yet).
Description
The workstation's print workflow relies on PPD files, which according to the CUPS's lpadmin manpage:
update: found the respective CUPS issue about the removal of PPD https://github.com/OpenPrinting/cups-sharing/issues/4
This is also warned when running
_setup_printer()
. Running the same line manually on my system succeeds but shows the following on stderr:Steps to Reproduce
Not relevant,
Expected Behavior
Use of supported system.
Actual Behavior
Warning about using something that may not be supported in the future.
Comments