From owner-freebsd-questions Tue Oct 17 23:31:55 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.visi.com (baal.visi.com [209.98.98.3]) by hub.freebsd.org (Postfix) with ESMTP id 78ED237B4E5 for ; Tue, 17 Oct 2000 23:31:52 -0700 (PDT) Received: from localhost.visi.com (orpheus.static.visi.com [208.42.12.80]) by mail.visi.com (8.8.8/8.7.5) with ESMTP id BAA25886 for ; Wed, 18 Oct 2000 01:31:41 -0500 (CDT) Posted-Date: Wed, 18 Oct 2000 01:31:41 -0500 (CDT) Received: (from orpheus@localhost) by localhost.visi.com (8.9.3/8.9.3-CONDOLAN) id BAA08501 for questions@freebsd.org; Wed, 18 Oct 2000 01:32:29 -0500 Date: Wed, 18 Oct 2000 01:32:28 -0500 From: Jeffrey Dunitz To: questions@freebsd.org Subject: LaserJet 4L printing difficulty Message-ID: <20001018013228.O1929@lemieux.condolan.asn> Reply-To: orpheus@avalon.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i X-Blargh: This message is Blargh. (lemieux) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello everyone...perhaps someone can help me with this problem. I have an LJ4L connected locally to the parallel port of a machine running FreeBSD 4.0. I want to be able to print to this machine remotely, particularly from Netscape, but also from lpr (text) on other unix machines on the local net. I've successfully used this printer on a RedHat machine, which would do the right thing, accepting printjobs from unix machines (text and postscript (netscape) ) as well as NT machines via samba. I want to try to move printing services onto my freebsd machine and let the red hat box do...other stuff. So anyway-- I decided to use magicfilter, because I've heard it's very flexible. I installed it from the ports collection. I'm using magicfilter-1.2 and ghostscript-5.50. My printcap looks like this: lp|local line printer:\ :sh:\ :if=/usr/local/libexec/magicfilter/ljet4l-filter:\ :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs: Now, I can print text, both from the local machine and from a remote unix box, and it works fine--no stair-stepping or other problems. However, when I try to print from netscape, one of three things happens: 1) nothing happens, and I get a message in lpd-errs about Oct 18 01:19:01 freebsd lpd[25078]: lp: job could not be printed (cfA730two.mydomain.org) 2) I get this nasty error: /usr/local/libexec/magicfilter/ljet4l-filter: /usr/local/bin/gs -q -dSAFER -dNO PAUSE -r300 -sDEVICE=ljet4 -sOutputFile=- - failed Oct 18 00:26:23 freebsd lpd[23956]: restarted Bus error 3) I get garbage output--a postscript header and infinite blank pages. Which of these occurs depends on where I have the input filter line placed in the printcap file--second line, after the sh: directive, or last line. Anyone have any ideas on what I can look at to solve this problem? This shouldn't be hard... -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Jeffrey Dunitz | *** ENRGi.com *** | orpheus@avalon.net BOFH Emeritus, Avalon Networks | Network Engineer | (651) 686-9974 / http://www.avalon.net/~orpheus | Net/Sec/Dev/Arch | Eagan, MN _ / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message