Adding printer under Gnome settings

Hi,

I could add my printer with a custom ppd only the old way with localhost:631 in my browser. The automatic installation only offered to install some foomatic driver from Gnome Software, which doesn’t work with my printer. As a consequence, no printer showed up in Gnome settings, hence I couldn’t change the ppd file there.

Yet, when I try to print it always says “Printing stopped.” I looked for different drivers in Sodtware - same result.

Debian stable lets me install a ppd file in Gnome settings and prints flawlessly on the same printer.

Regards
Jüs

It would help to know what printer you’re trying to setup and how it’s connected, network , USB or maybe parallel port ? :laughing:

the “old” way should still work though.
I usually use lpadmin to setup new printer queues.

try running lpinfo --make-and-model <some string describing your printer> -m and check if a ppd is listed matching theprinter
e.g.

$ lpinfo --make-and-model 2055  -m
drv:///hp/hpijs.drv/hp-laserjet_p2055-pcl3-hpijs.ppd HP LaserJet p2055 hpijs pcl3, 3.26.6
drv:///hp/hpcups.drv/hp-laserjet_p2055-pcl3.ppd HP LaserJet p2055 pcl3, hpcups 3.26.6
lsb/usr/HP/hp-laserjet_p2055-pcl3.ppd.gz HP LaserJet p2055 pcl3, hpcups 3.26.6
lsb/usr/HP/hp-laserjet_p2055_series-ps.ppd.gz HP LaserJet P2055 Postscript (recommended)
[more lines deleted]

You might need to install additional packages like gutenprint or hplip (for HP printers ).
Newer printers should support the IPP everywhere standard or Mopria and don’t require any ppd file.

I have a solution, but it’s not as straightforward as I thought at first.

To begin with, Gnome Settings refuses to install the printer, a quite ordinary Brother HL-2035. I have to do it in a Browser on localhost:631, where I can add the custom ppd file. Then, the printer shows up.

Next, I follow the instructions on footmatic rip. Which means that I check

lpstat -l

It shows me

Status: Process is dying with "ERROR: The value of the key FoomaticRIPOptionSetting is not among the allowed values - see foomatic-rip man page for more instructions.

So I run

sudo foomatic-hash --ppd /etc/cups/ppd/Brother_HL-2030_series.ppd file_to_review local_hashes. It creates the two files.

Then, after inspecting file_to_review I copy local_hashes to /etc/foomatic/hashes.d/. It’s important to copy the file and not to move or to change the permissions.
After removing failed attempts from the printing queue and restarting cups with sudo systemctl restart cups.service, I am finally able to print.

To me, it’s more a workaround than a solution, to be honest. The Gnome settings printing dialogue should give users some kind of assistance instead of just refusing to install a printer (that obviously works).