On Thu, 26 Aug 2010 15:25:55 +0200 Didier 'OdyX' Raboud wrote: [...] > Francesco Poli wrote: [...] > > That's great, but it doesn't seem to work: > > > > $ foomatic-searchprinter HP LaserJet 1320 > > HP-LaserJet_1320 > > $ foomatic-ppdfile -p HP-LaserJet_1320 > /tmp/lj.ppd > > ERROR: foomatic-ppdfile: There is neither a custom PPD file nor the > > driver database entry contains sufficient data to build a PPD file. > > It turns out I was wrong, you should rather take a look at > http://bugs.debian.org/590163#10 (Till's answer). > > In short, you need the hplip-data package installed. Does this work for you > then ?
I've just tried the following, after installing hplip-data: # lpinfo -m | grep 1320 | grep -i postscript foomatic:HP-LaserJet_1320-Postscript.ppd HP LaserJet 1320 Foomatic/Postscript lsb/usr/hplip/HP/hp-laserjet_1320n-ps.ppd HP LaserJet 1320 series Postscript (recommended) # lpadmin -p lj -E -v parallel:/dev/lp0 \ -m lsb/usr/hplip/HP/hp-laserjet_1320n-ps.ppd \ -D "HP LaserJet 1320" # lpoptions -p lj -o media=A4 -o sides=two-sided-long-edge # lpadmin -d lj What can I say? It seems to work like a charm, and I even got a more recent version of the PPD file as /etc/cups/ppd/lj.ppd ! :-) OK, Didier, many thanks to you and to Till, for explaining me the Modern Way™ to generate PPD files on the fly! Apologies for not noticing Till's comments before: I must confess that I saw them with great delay (since he didn't Cc: me) and, when I took a look at them on the web bug-log, I thought they were mainly directed at you, rather than at me (again since he didn't Cc: me). I think this bug may be safely closed, once the above mentioned procedure is properly documented in the openprinting-ppds package. Thanks again to you and Till, for your kind assistance! Bye. -- http://www.inventati.org/frx/progs/scripts/pdebuild-hooks.html Need some pdebuild hook scripts? ..................................................... Francesco Poli . GnuPG key fpr == C979 F34B 27CE 5CD8 DC12 31B5 78F4 279B DD6D FCF4
pgpFC6VIW1awy.pgp
Description: PGP signature