> Jacob Meuser <jakemsr () sdf ! lonestar ! org> wrote
> at 2011-01-02 1:24:20 wrote:
>
> > On Sun, Jan 02, 2011 at 12:26:38AM +0000, Jacob Meuser wrote:
> > > On Sat, Jan 01, 2011 at 02:07:02PM -0600, Ed Ahlsen-Girard wrote:
> > > > Jacob Meuser <jakemsr () sdf ! lonestar ! org> wrote
> > > > at 2011-01-01 19:34:40:
> > > >
> > > >
> > > > > On Sat, Jan 01, 2011 at 07:03:52AM -0600, Ed Ahlsen-Girard
> > > > > wrote:
> > > > > > First, Happy New Year!
> > > > > >
> > > > > > I resolved last week to stop using Windows to print from my
> > > > > > OpenBSD machine, so I re-read man pages for and re-tried
> > > > > > CUPS, lpd, foomatic, etc. As it stands now, here is my
> > > > > > 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:
> > > > > > lp|5510:\
> > > > > > > lp=/dev/ulpt0:\
> > > > > > > af=/etc/foomatic/HPOJ.ppd:\
> > >
> > > where did HPOJ.ppd come from?
> >
> > 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
>
> Shameless cloning using the hp-officejet_5500-hpijs.ppd file worked
> pretty well.
>
> Eventually I'll want to put in scan support too, but that can wait until
> I'm worn out from the dance of joy over just printing. Many, many
> thanks.