Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: FTP Administrator <ftpadmin@ftp.unina.it>
Subject: Re: DU 4.0C printing to HPLaserjet 5
Date: 1998/02/09	[thread overview]
Message-ID: <34DEBE55.41C6@ftp.unina.it> (raw)
In-Reply-To: 34dddc1b.201442@news.netcologne.de


Matthias Kring wrote:
> 
> On 29 Jan 1998 21:32:08 GMT, kshan91819@aol.com (KShan91819) wrote:
> 
> ...
> >printer drivers.  Now when I print from Unix I get this kind of output:
> >
> >this is line one.
> >                      this is line two.
> 
> The release notes of Digital UNIX 4.0B (and the Documentation as well)
> know this problem which arises for example with HP printers.
> 
> The solution is to only send pre-formatted Postscript or PCL files to
> the printer; or just run a mini sed script to convert LF into CR LF.
> 
The problem is that with remote printer the 'if', 'of' 'xf', etc. won't
work.
I can print plain ASCII on my HP LaserJet with a simple trick I learnt
on 
the Linux Printing-HOWTO.
Look at my /etc/printcap

lj5m|lp4:\
        :lp=/dev/null:\
        :sh:\
        :lf=/usr/adm/lp4err:\
        :sd=/usr/spool/lpd4:\
        :if=/usr/lbin/lj5ps-remote:
lj5m-remote|lp5:\
        :lp=/dev/null:\
        :sh:\
        :rm=lj5m:\
        :rp=raw:\
        :sd=/usr/spool/lpd5:

This way if I want to print a PS/PCL, I address straight the remote
printer, using 'lj5m-remote'. No filters, all clean.
If, instead, I want to print ASCII, I use the 'fake' local printer lj5m.
As you can see, the lj5m entry is a trick to tell the system  that
printer
is local, so the filter /usr/lbin/lj5ps-remote will work. 
In my case the filter lj5ps-remote is a simple shell script: 

#!/bin/sh
/usr/lbin/ln03rof | lpr -h -Plj5m-remote

but you put what you prefer.

Of course, you have to put an entry lj5m-remote in your /etc/hosts!

If you have problem setting all this, e-mail me.

Massimo Gais
----
FTP Administrator                                       
<ftpadmin@ftp.unina.it>
C.D.S. - University "Federico II" of Naples (Italy)

                          "640K ought to be enough for anybody." 
                                           --  Bill Gates, 1981



      reply	other threads:[~1998-02-09  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-29  5:00 DU 4.0C printing to HPLaserjet 5 KShan91819
1998-02-08  5:00 ` Matthias Kring
1998-02-09  5:00   ` FTP Administrator [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox