Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 1997 10:18:46 -0600
From:      Dave Marquardt <marquard@Zilker.NET>
To:        Eric Eiseman <acolyte@ou.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Setting up hp DeskJet 660C on 2.1.0R 
Message-ID:  <199701261618.KAA08074@localhost.zilker.net>
In-Reply-To: Your message of "Fri, 24 Jan 1997 13:24:35 CST." <3.0.32.19970124132431.007a5510@129.15.2.9> 

next in thread | previous in thread | raw e-mail | index | archive | help
------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <8066.854295525.1@localhost.zilker.net>

> 	So, if someone has gotten an hp DeskJet working, could you please send be
> the config for it?  (printcap, filter).  

Here's what I use with my HP DeskJet 540C.  I stole/borrowed some of
the ideas from others on this list who I don't credit.  Sorry about
that, whoever you are!

This printcap references some filters I occasionally use to print with
the color cartridge.  I lost those filters when I reinstalled my
system with 2.1.6 and forgot to restore the files before removing the
2.1.5 dumps from my Zip disk.  Oops!  But they should be pretty easy
to construct given the other filters--just ask `gs' to use cdj500 (I
think) instead of djet500.


------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <8066.854295525.2@localhost.zilker.net>
Content-Description: printcap

#	@(#)printcap	5.3 (Berkeley) 6/30/90

lp|local line printer:\
	:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:\
	:if=/usr/local/libexec/hp-parallel:df=/usr/local/libexec/hpdj540-dvi:\
	:nf=/usr/local/libexec/hpdj540-ditroff:sh:

cdj500|HP Deskjet 540 with color cartridge:\
	:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:\
	:if=/usr/local/libexec/hp-parallel-color:df=/usr/local/libexec/hpdj540-dvi-color:\
	:nf=/usr/local/libexec/hpdj540-ditroff-color:sh:

------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <8066.854295525.3@localhost.zilker.net>
Content-Description: hp-parallel

#!/bin/sh
#
#  hp-parallel - print to Hewlett Packard printer on parallel port
#  Installed in /usr/local/libexec/hp-parallel.
#
PATH=/usr/bin:/bin; export PATH

read firstline
x=`expr "$firstline" : "\(%!\)"`
if [ "$x" = "%!" ]	# got a PostScript file
then
	(echo "$firstline";cat) | \
		/usr/local/bin/gs -q -sDEVICE=djet500 -sOutputFile=- -r300 -
	exit $?
fi

printf "\033&k2G" && echo "$firstline" && cat && printf "\f" && exit 0
exit 2


------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <8066.854295525.4@localhost.zilker.net>
Content-Description: hpdj540-dvi

#!/bin/sh
#
#  hp-parallel - print to Hewlett Packard printer on parallel port
#  Installed in /usr/local/libexec/hp-parallel.
#
PATH=/usr/bin:/bin:/usr/local/bin; export PATH

dvips -r -f | gs -q -sDEVICE=djet500 -sOutputFile=- -r300 -
exit $?


------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <8066.854295525.5@localhost.zilker.net>
Content-Description: hpdj540-ditroff

#!/bin/sh
#
#  hp-parallel - print to Hewlett Packard printer on parallel port
#  Installed in /usr/local/libexec/hp-parallel.
#
PATH=/usr/bin:/bin:/usr/local/bin; export PATH

grops | gs -q -sDEVICE=djet500 -sOutputFile=- -r300 -
exit $?


------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <8066.854295525.6@localhost.zilker.net>

--
Dave Marquardt
Home: <marquard@zilker.net>
Work: <marquard@austin.ibm.com>



------- =_aaaaaaaaaa0--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701261618.KAA08074>