Jacob Meuser <jakemsr () sdf ! lonestar ! org> wrote FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS No error shown in xterm from 'lpr dclean', but a very long excerpt of lpd-errs follows. Nothing printed. -- Edward Ahlsen-Girard Ft Walton Beach, FL Jan 1 13:49:56 poof lpd[21536]: restarted foomatic-rip version 4.0.5.223 running... called with arguments: '-w132', '-l66', '-i0', '-n', 'ed', '-j', 'dclean', '-h', 'poof.my.domain', '/etc/foomatic/HPOJ.ppd' Parsing PPD file ... Added option PageSize Added option ImageableArea Added option PaperDimension Added option ColorModel Added option Resolution Added option InputSlot Added option MediaType Added option Font Parameter Summary ----------------- Spooler: lpd Printer: Shell: /bin/ksh PPD file: /etc/foomatic/HPOJ.ppd ATTR file: Printer model: HP DeskJet Series Options: dclean Job title: dclean File(s) to be printed: <STDIN> Printing system options: Pondering option 'dclean' Unknown boolean option "dclean". Options from the PPD file: ================================================ File: <STDIN> ================================================ Filetype unknown, trying to convert ... Starting converter for non-PostScript files Starting process "kid1" (generation 1) Starting process "kid2" (generation 2) file converter command: a2ps -1 --medium=Letterdj --center-title=dclean -o - Starting process "fileconverter" (generation 2) kid2: writing alreadyread kid2: Then read the rest from standard input kid2: Close out and stdin kid2 finished [stdin (Bourne Shell): 1 page on 1 sheet] Filetype: PostScript Reading PostScript input ... --> This document is DSC-conforming! ----------- Found: %%BeginProlog Inserting option code into "Prolog" section. Found: %%EndProlog ----------- Found: %%BeginSetup Inserting option code into "Setup" section. Found: %%EndSetup ----------- New page: %%Page: (1) 1 Found: %%BeginPageSetup Inserting option code into ...
where did HPOJ.ppd come from? -- jakemsr@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org
fwiw, I just tried with my HP officejet 4500, to see if it prints with ulpt and lpd on my laptop (I normally use ugen and cups on my desktop... I need ugen for the scanner). I installed hpijs and foomatic-filters packages. this pulled in a2ps and ghostscript. located the ppd I want, which is /usr/local/share/foomatic/db/source/PPD/HP/hp-officejet_4500_g510g-m-hpijs.ppd.gz I had to dig for that. well, 'pkg_info -L hpijs | grep 4500' is how I found it. not sure why 'foomatic-ppdfile -P 4500' did not find it. I think it should. anyway ... $ zcat /usr/local/share/foomatic/db/source/PPD/HP/hp-officejet_4500_g510g-m-hpijs.ppd.gz > hpoj4500_hpijs.ppd $ sudo cp hpoj4500_hpijs.ppd /etc/foomatic $ sudo mg /etc/printcap $ cat /etc/printcap # $OpenBSD: printcap,v 1.4 2003/03/28 21:32:30 jmc Exp $ #lp|local line printer:\ # :lp=/dev/lp:sd=/var/spool/output:lf=/var/log/lpd-errs: #rp|remote line printer:\ # :lp=:rm=music.humppa.hu:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs: # basically copied from local/share/doc/pkg-readmes/foomatic-filters # but add the 'sh' to not get the "burst page header" lp:\ :lp=/dev/ulpt0:\ :af=/etc/foomatic/hpoj4500_hpijs.ppd:\ :if=/usr/local/bin/foomatic-rip:\ :sd=/var/spool/output:\ :lf=/var/log/lpd-errs:\ :sh: $ sudo lpd $ lpr bin/aup and viola, aup, a 10 line shell script, is printed on paper moral of the story: use the right PPD file. how did I know which one to use? well, I know ijs works with ghostscript, and I've used the ijs drivers from gutenprint with lpd. seems to me the most likely to work, since ghostscript is a classical lpd filter. -- jakemsr@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org
On Sun, 2 Jan 2011, Jacob Meuser wrote: foomatic-ppdfile only works on xml files, not PPDs (it actually creates a PPD file from an XML definition). HPLIP only provides pre-formatted PPD files but not the XML sources so... yeah you do have to look for it manually. -- Antoine
