Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Oct 2000 01:32:28 -0500
From:      Jeffrey Dunitz <orpheus@visi.com>
To:        questions@freebsd.org
Subject:   LaserJet 4L printing difficulty
Message-ID:  <20001018013228.O1929@lemieux.condolan.asn>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001018013228.O1929>