From owner-freebsd-stable Sat Apr 14 20:59:43 2001 Delivered-To: freebsd-stable@freebsd.org Received: from h24-69-46-74.gv.shawcable.net (h24-69-46-74.gv.shawcable.net [24.69.46.74]) by hub.freebsd.org (Postfix) with ESMTP id 24E9637B449 for ; Sat, 14 Apr 2001 20:59:39 -0700 (PDT) (envelope-from michael@tenzo.com) Received: from h24-69-46-74.gv.shawcable.net (localhost.gv.shawcable.net [127.0.0.1]) by h24-69-46-74.gv.shawcable.net (8.11.1/8.11.1) with SMTP id f3F42B200746 for ; Sat, 14 Apr 2001 21:02:11 -0700 (PDT) (envelope-from michael@tenzo.com) Content-Type: text/plain; charset="iso-8859-1" From: "Michael O'Henly" Reply-To: michael@tenzo.com Organization: TENZO Design To: freebsd-stable@FreeBSD.ORG Subject: Printer madness... Date: Sat, 14 Apr 2001 21:02:11 -0700 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <01041421021102.00431@h24-69-46-74.gv.shawcable.net> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi... I'm trying to set up printing with FreeBSD 4.2 and an HP LaserJet 4050 connected to the parallel port. I've been following the procedure in the Handbook -- but I'm having some trouble... Here's what I've done so far: 1. Compiled a new kernel with these options: # Parallel port device ppc0 at isa? irq 7 device ppbus # Parallel port bus (required) device lpt0 # Printer device plip # TCP/IP over parallel device ppi # Parallel port interface device device vpo # Requires scbus and da (As you can see, there are options enabled that I don't need. My approach so far has been to get the basic services running, then go back and turn off the things I don't need.) 2. When I do 'dmesg | grep lpt' I get this: lpt0: on ppbus0 lpt0: Interrupt-driven port 3. I've done '/dev/MAKEDEV lpt0' and checked to make sure it worked: # ls -asl /dev/lpt* 0 crw------- 1 root wheel 16, 0 Apr 14 19:23 /dev/lpt0 0 crw------- 1 root wheel 16, 1 Apr 12 15:05 /dev/lpt1 0 crw------- 1 root wheel 16, 2 Apr 12 15:05 /dev/lpt2 4. Tested communication to printer by printing a test Postscript file: # cat testPrinter.ps > /dev/lpt0 No problems with this. 5. Created the following /etc/printcap entry: lp|hp4050|HP LaserJet 4050:\ :sh:\ :lp=/dev/lpt0:\ :sd=/var/spool/lpd/lp:\ :lf=/var/log/lp-errs:\ :if=/usr/local/libexec/psif:\ :df=/usr/local/libexec/psdf:\ :tf=/usr/local/libexec/pstf: FWIW, I've tested the following pared-down version as well (with identical results): lp:\ :sh:\ :lp=/dev/lpt0:\ sd=/var/spool/lpd/lp: 6. Made a spooling directory and made it private to the print daemon: # mkdir /var/spool/lpd/lp # chmod 770 /var/spool/lpd/lp 7. Installed and made executable some print filters. (Note that I've tested without filter entries in /etc/printcap and had identical resutls.) 8. Added to /etc/rc.conf: lpd_enable="YES" 9. Rebooted. 10. At this point, tests like "lptest 20 5 | lpr -Plp" and even just 'lpr' result in 'lpr: lp: unknown printer '. I'm stumped. Any advice? Thanks. M. -- Michael O'Henly TENZO Design To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message