[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing



On Mon, 15 Feb 1999, Alex Rier wrote:


 That is BS. (pardon my french). There is absolutely no problem to use
LPRng and remote printing, using any filters you like.

 I guess you HP is not postscript, so you might want to use a filter that
makes postcript into HPGL, and that sends text normally, or you can also
make postscript out of the text you send, and then send it as HPGL.

 I will include some simple examples:

in /etc/printcap:

ps:Postscript:\
	:lp=ps@yourhost.yourdomain:\
	:rm=ps@yourhost.yourdomain:bq=somequeue@your.printer.domain:\
	:lf=/var/spool/lpd/ps/log:\
	:sd=/var/spool/lpd/ps:\
	:mx#0:\
	:sh:\
	:rw:\
	:if=/var/spool/lpd/ps/psfilter


The psfilter might look like this:

#!/bin/sh -f
#

exec 9>&1 1>&2
device=ljet4   # Can also be laserjet

gsoutput="cat 1>&9"
gs -q -dNOPAUSE -sDEVICE=${device} \
-sPAPERSIZE=a4 \
-sOutputFile=\|"${gsoutput}" -


You can use RedHat's printtool of course, it's easier, and frees you of
knowing the internals (which is not necessarily good).

--Ariel
> Hi,
> 
> I have HP LaserJet connected to the LAN interface.
> It supports lpd printing.
> I'd like to control it using printcap from a Linux Server.
> Unfortunatly it seems that lpd (lprng) doesn't use filters
> for remote printers! Why? What can I do?
> 
> --
> 
> Alex Rier           | Tel:     972-52-442549
> System Administrator| FAX:     972-3-6356434
> Breakthrough Ltd    | E-mail:  alex@breakt.co.il
> 
> 

   +---------------------------------------------------------------+
   | Ariel Biener                                                  |
   | e-mail: ariel@post.tau.ac.il           Work phone: 03-6406086 |
   | fingerprint = 07 D1 E5 3E EF 6D E5 82 0B E9 21 D4 3C 7D 8B BC |
   +---------------------------------------------------------------+