From owner-freebsd-questions Fri Oct 27 04:47:39 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id EAA14525 for questions-outgoing; Fri, 27 Oct 1995 04:47:39 -0700 Received: from tippy.vnet.net (tippy.vnet.net [166.82.197.240]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id EAA14520 for ; Fri, 27 Oct 1995 04:47:36 -0700 Received: (from root@localhost) by tippy.vnet.net (8.6.12/8.6.9) id HAA00667; Fri, 27 Oct 1995 07:47:27 -0400 Date: Fri, 27 Oct 1995 07:47:26 -0400 (EDT) From: Chris Madison To: Daniel Baker cc: questions@FreeBSD.ORG Subject: Re: Printing with HP Deskjet In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG Precedence: bulk On Wed, 25 Oct 1995, Daniel Baker wrote: > I have a HP Deskjet 560c, and even after reading the handbooks, FAQs, and > getting ghostscript running, I still cna't print correctly. > > Whenever I print by typing lpr filename, or doing a cat foobar.ps > >/dev/lpt0, I just get three lines like this: This is what I did (which other people contributed the bits and pieces of): /etc/printcap # @(#)printcap 5.3 (Berkeley) 6/30/90 lp|ps|local line printer:\ :lp=/dev/lpt0n:sd=/var/spool/lpd: where /dev/lpt0n looks like: crw-rw-r-- 1 root wheel 16, 16 Oct 27 01:00 /dev/lpt0n and then finally have this done in one of the rcs during boot up: /usr/local/sbin/setdj >/dev/lpt0n where setdj is a compiled this: #include void main() { printf("\x01b\x026\x06b\x033\x047"); } It works for an 550c anyway. I use gs for the ps stuff. ================================================================ cmadison@vnet.net | SHUT UP! SHUT UP! SHUT UP!!!!! root@tippy.vnet.net | LEAVE ME ALONE!