Printing on OpenBSD II by Darrin Chandler [16 May 2007 22:00 MST]
A while back I wrote about how I got my HPDeskJet printing well under OpenBSD. Since then I've blown away the setup on the computer that had the printer, and moved everything around, and basically forgotten all about it. Lately I've had a desire to be able to print again, so I dusted off the printer, plugged it into the USB port on my laptop, and tried again.
This time, if anything, was even easier than before, and I'll do the steps...
$ sudo pkg_add -i hpijs
$ sudo pkg_add -i a2ps
$ sudo vim /etc/printcap
# hpdeskjet 5550
lp|DeskJet:\
:lp=/dev/ulpt0:\
:af=/etc/foomatic/HP-DeskJet_5550-hpijs.ppd:\
:if=/usr/local/bin/foomatic-rip:\
:sd=/var/spool/output:\
:lf=/var/log/lpd-errs:\
:sh:
:wq
$ sudo mkdir /etc/foomatic
$ sudo cp /usr/local/share/ppd/HP/HP-DeskJet_5550-hpijs.ppd.gz /etc/foomatic
$ sudo /usr/sbin/lpd # add lpd_flags="" to /etc/rc.conf.local
$ lpr /etc/printcap # print a test page
That's all there was to it. Bop over to firefox and color printing works there, too. I haven't been able to print a PDF document without pulling it up in xpdf and printing from there, which is pretty workable anyway.
Back to Darrin Chandler's Weblog
Hosting by Intrepid