Newbie USB Printer Problem

Warren Block wblock at
Sat Nov 8 20:02:14 PST 2003

On Sat, 8 Nov 2003, Alex Kelly wrote:

> I cannot get my HP Deskjet 3420 printer to work. I've read all the prior posts
> for USB printers, checked the handbook and the complete freebsd book. After
> doing so, I've come up with this...
> I edited printcap in /etc to look like this:
> lp|ps|local hp deskjet 3420:\
>         :lp=/dev/ulpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:sh:mx#0:\
> 	:if=/usr/local/libexec/magicfilter/deskjet-filter:

Did you create the /var/spool/output/lpd directory?  Actually, you
should probably create one with the same name as the printer, since lpd
doesn't want to share directories between multiple printers.

> I issued this command to test the printer:
> lptest > /dev/ulpt0
> The printer did nothing.
> Any suggestions?

That's a separate issue, since 'lptest > /dev/ulpt0' doesn't go anywhere
near lpd.  Some HP printers will flash an LED when they are receiving
data, so you could look for that.  Or it might be that the printer won't
print anything until it gets a form feed, so you could send it one

perl -e 'print chr(12)' > /dev/ulpt0

-Warren Block * Rapid City, South Dakota USA

More information about the freebsd-questions mailing list