Re: printing to HP LaserJet 4050 TN

2003-03-06 Thread Mike Meyer
In [EMAIL PROTECTED], Warren Block [EMAIL PROTECTED] typed:
 On Wed, 5 Mar 2003, Darren Spruell wrote:
 When you print to lp, the input filter (if=) called checkps sees if the
 incoming file is PostScript.  It also detects HP PJL PostScript jobs,
 which the example given in the Handbook does not.  If the job is
 PostScript, it sends it to the lpraw queue, which is the real printer.

Just as an aside, there are two ports that do this kind of filtering,
and much more as well. If you're already tweaking the printcap
yourself, magicfilter is the lighter weight and more flexible
solution. If you don't want to fool with the printcap, then apsfilter
has a configure script that will set it up for you.

Both will do enscript on text. But they also detect lots of other
things and will transform them into postscript to be printed.

mike
-- 
Mike Meyer [EMAIL PROTECTED]  http://www.mired.org/consulting.html
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: printing to HP LaserJet 4050 TN

2003-03-04 Thread Warren Block
On Tue, 4 Mar 2003, Darren Spruell wrote:

 We have this printer set up to print to from the network and I have
 printed to it by IP address before. It is connected to a Windows server
 but I would like to print directly to it by IP from my fbsd 4.7 box.

 I have installed the cups-base, cups-pstoraster, and ghostscript-gnu
 packages. Afterwards I looked through the Handbook but didn't see
 anything that cleared up the process of configuring this printer.

It's a PostScript printer, so you shouldn't need ghostscript.  I can't
help you with CUPS, never tried it.  Good old ordinary printcap entries
work fine:

lpraw:\
:lp=:\
:sh:\
:mx#0:\
:rm=laser:\
:rp=raw:\
:sd=/var/spool/output/lpd/lpraw:\
:lf=/var/log/lpd-errs:

After creating the spool directory (sd=) and entering an IP address for
laser in /etc/hosts, this works fine.  This is just for sending raw
PostScript output, of course.  The queue name is lpraw, so you'd print
to it with

# lpr -Plpraw postscriptfile.ps

My lp queue runs through a little Perl program that detects PostScript
and passes it through.  Text is formatted with enscript and then
printed.  I can post the whole setup if you'd like.

-Warren Block * Rapid City, South Dakota USA

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message