From owner-freebsd-questions Wed May 3 19:49:36 2000 Delivered-To: freebsd-questions@freebsd.org Received: from darkstar.qx.net (darkstar.qx.net [208.235.88.101]) by hub.freebsd.org (Postfix) with ESMTP id 9E4AC37BEC9 for ; Wed, 3 May 2000 19:49:30 -0700 (PDT) (envelope-from gchil0@pop.uky.edu) Received: from mail2.qx.net (mail.qx.net [208.235.88.233]) by darkstar.qx.net (8.9.3/8.9.3) with ESMTP id WAA23452 for ; Wed, 3 May 2000 22:49:29 -0400 Received: from k7 ([208.200.111.115]) by mail2.qx.net (Netscape Messaging Server 3.6) with ESMTP id AAA2CF3; Wed, 3 May 2000 22:47:41 -0400 Message-Id: <4.2.0.58.20000503224204.00958e50@pop.uky.edu> X-Sender: gchil0@pop.uky.edu X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Wed, 03 May 2000 22:49:51 -0400 To: mateus@gold.com.br From: Greg Childers Subject: Re: HP Deskjet 660 under FreeBSD 4.0-RELEASE Cc: freebsd-questions@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I use apsfilter from the ports with my HP Deskjet 660C, but if you just want to print text and postscript files, the following should work... /etc/printcap contents: -------------------- lp|HP Deskjet 660C:\ :sh:sd=/var/spool/output/lpd:\ :lp=/dev/lpt0:lf=/var/log/lpd-errs:\ :if=/usr/local/libexec/hpif: -------------------- /usr/local/libexec/hpif contents: -------------------- #!/bin/sh # # ifhp - Print Ghostscript simulated PostScript on a Deskjet 660C # Installed in /usr/local/libexec/hpif # # Treat LF as CR+LF: # printf "\033&k2G" || exit 2 # # Read first 2 character of file # read first_line first_two_chars=`expr "$first_line" : '\(..\)'` if [ "$first_two_chars" = "%!" ]; then # # It is PostScript - use ghostscript # /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=cdj550 -sOutputFile=- -\ && exit 0 else # #Plain Text or HP/PCL so print directly include formfeed at end # echo $first_line && cat && printf "\f" && exit 0 fi exit 2 -------------------- and make sure /usr/local/libexec/hpif is executable. Hope this helps, Greg Mateus wrote: Hi! I'm trying to make my HP Deskjet 660 printer work under FreeBSD 4.0-RELEASE, but anything seems to work. Tried several tutorials, and howtos, configured my printcap with several filters and following several handcaps but it still doesnt work. It startx to work, get paper in but doesnt print anything. Sometimes it prints a couple of characters in the top but thats all. Anyone who made a HP Deskjet 660 work under FreeBSD, could please mail me (mateus@gold.com.br) how can I do the same? Thanks a lot Mateus mateus@gold.com.br To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message