From owner-freebsd-questions Thu Oct 19 1:13:39 2000 Delivered-To: freebsd-questions@freebsd.org Received: from nrpc-22.netrake.net (403217B2.ptr.dia.nextlink.net [64.50.23.178]) by hub.freebsd.org (Postfix) with ESMTP id 6B4F037B479 for ; Thu, 19 Oct 2000 01:13:33 -0700 (PDT) Received: from netrake.com (localhost.netrake.net [127.0.0.1]) by nrpc-22.netrake.net (8.9.3/8.9.3) with ESMTP id HAA20140; Wed, 18 Oct 2000 07:04:49 -0500 (CDT) (envelope-from jimj@netrake.com) Message-ID: <39ED91E1.CBBADFC1@netrake.com> Date: Wed, 18 Oct 2000 07:04:49 -0500 From: Jim =?iso-8859-1?Q?Judd=90=90?= Organization: Netrake Inc. X-Mailer: Mozilla 4.73 [en] (X11; I; FreeBSD 4.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: orpheus@avalon.net Cc: questions@FreeBSD.ORG Subject: Re: LaserJet 4L printing difficulty References: <20001018013228.O1929@lemieux.condolan.asn> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jeffrey Dunitz wrote: > 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 I just used the ifhp filter in ports to connect to our HP4050 (it is directly connected to the network though). So far it has worked fine. jj To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message