From owner-freebsd-questions Thu Mar 9 15:07:27 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA25292 for questions-outgoing; Thu, 9 Mar 1995 15:07:27 -0800 Received: from ibp.ibp.fr (ibp.ibp.fr [132.227.60.30]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id PAA25280 for ; Thu, 9 Mar 1995 15:07:22 -0800 Received: from blaise.ibp.fr (blaise.ibp.fr [132.227.60.1]) by ibp.ibp.fr (8.6.11/jtpda-5.0) with SMTP id AAA05254 for ; Fri, 10 Mar 1995 00:06:29 +0100 Received: by blaise.ibp.fr (4.1/SMI-4.1) id AA15817; Fri, 10 Mar 95 00:07:22 +0100 Received: (from roberto@localhost) by keltia.frmug.fr.net (8.6.10/keltia-uucp-1.21) id AAA02220 for questions@FreeBSD.ORG; Fri, 10 Mar 1995 00:04:18 +0100 From: Ollivier Robert Message-Id: <199503092304.AAA02220@keltia.frmug.fr.net> Subject: /etc/printcap for Deskjet 500 and gs To: freebsd-hackers@FreeBSD.org (FreeBSD Hackers' list) Date: Thu, 9 Mar 1995 22:49:58 +0100 (MET) Reply-To: roberto@blaise.ibp.fr (Ollivier Robert) X-Operating-System: FreeBSD 2.1.0-Development ctm#437 X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1847 Sender: questions-owner@FreeBSD.org Precedence: bulk Here is my /etc/printcap file ------------------------------------------------------------ # @(#)printcap 5.3 (Berkeley) 6/30/90 deskjet|lp|hp|local line printer:\ :lp=/dev/lpt0n:sd=/var/spool/lp:lf=/var/log/lpd-errs:\ :pw#80:pl#64:sb:sh:\ :if=/usr/libexec/lpr/lpf2: ps|djps|local printer with Postscript:\ :lp=/dev/lpt0n:sd=/var/spool/ps:lf=/var/log/lpps-errs:\ :pw#80:pl#64:sb:sh:\ :if=/usr/libexec/lpr/ps2dj:\ :mx#0:sf: ------------------------------------------------------------ The first entry is for text printing. The filter just converts LF into CR+LF. Now that I don't have DOS any more I could modify the printer's jumpers but I'm too lazy :-) The /dev/lpt0n -- which I recreate by hand -- is for stopping the driver of resetting the printer each time... The minor is 16. crw-rw---- 1 root wheel 16, 0 Feb 4 17:31 /dev/lpt0 crw-rw---- 1 root wheel 16, 16 Mar 9 22:19 /dev/lpt0n I'm afraid I don't have the source of lpf2 anymore but it should not be too difficult to recreate : -r-xr-xr-x 1 root wheel 24576 Dec 31 1992 /usr/libexec/lpr/lpf2* It is a 386BSD executable :-) The second entry is for PS printing. Just specify "lpr -Pps something". The "source" for ps2dj follows too. ------------------------------------------------------------ #!/bin/sh exec /usr/local/bin/gs -q -sDEVICE=djet500 -sPAPERSIZE=a4 -dNOPAUSE -sOutputFile=- - ------------------------------------------------------------ You just have to replace the printer name in the script to suit your own model. I could -- and should -- use Klemmer's package which by far better than that but the principle "if it ain't broken, don't fix it" just suits me. -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.frmug.fr.net FreeBSD keltia 2.1.0-Development #5: Wed Mar 8 23:56:33 MET 1995