Subject: Re: lpd not working with hp deskjet 3745
To: someone_u_know <cariley_ja@yahoo.com>
From: Ben Collver <collver@peak.org>
List: port-i386
Date: 09/05/2005 17:47:09
A useful database is maintained at http://www.linuxprinting.org
Based on the entry there, I would guess that something like the
following may work.
from pkgsrc, install print/enscript, print/ghostscript, and print/hpijs
cat >>/root/bin/lpd-filter.sh
#!/bin/sh
PATH=$PATH:/usr/pkg/bin
export PATH
/usr/pkg/bin/enscript --lineprinter --pass-through --output=- 2>/dev/null |\
/usr/pkg/bin/gs -q -dSAFER -dBATCH -dQUIET -dNOPAUSE \
-sDEVICE=ijs -sIjsServer=hpijs \
-sDeviceManufacturer="HEWLETT-PACKARD" \
-sDeviceModel="deskjet 3320" \
-dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -r300 \
-sIjsParams=Quality:Quality=1,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=0 \
-dIjsUseOutputFD \
-sOutputFile=- - && \
exit 0
exit 2
# Quality:Quality 0=normal, 1=draft, 2=best
# Quality:ColorMode 0=grey_k, 1=grey_cmy, 2=color
# Quality:MediaType 0=plain, 1=premium, 2=photo
# Quality:Penset 0=black_pen, 1=color_pen, 2=both_pens, 3=mdl_pen, 4=mdl_both
# Quality:FullBleed 0=no, 1=yes
# Quality:MediaPosition 1=upper_tray, 4=lower_tray, 7=autoselect
^D
cat >>/etc/printcap
lp|Ghostscript to HP DeskJet 3745:\
:lp=/dev/lpa0:sd=/var/spool/output/lp:\
:lf=/var/log/lpd-errs:\
:mx#0:sh:\
:if=/root/bin/lpd-filter.sh:
^D
# if needed, create spool dir and start lpd
mkdir /var/spool/output/lp
echo lpd=YES >>/etc/rc.conf
/etc/rc.d/lpd start
Anything interesting in the log files?
Cheers,
Ben
On Mon, Sep 05, 2005 at 04:22:50PM -0700, someone_u_know wrote:
>
> Long time since my last reply. The HP Deskjet 3745 I
> have does not respond to anything from lpd; so i guess
> it's safe to say that it either isn't a "good" printer
> :> or it isn't supported yet.
>
> The Hp Deskjet 3745 was a waste of good money. Going
> to see if I can get something about the same price but
> better. I don't recommend this printer to anyone.