* DU 4.0C printing to HPLaserjet 5
@ 1998-01-29 5:00 KShan91819
1998-02-08 5:00 ` Matthias Kring
0 siblings, 1 reply; 3+ messages in thread
From: KShan91819 @ 1998-01-29 5:00 UTC (permalink / raw)
Hi
I'm pretty new to this admin stuff, a job that kinda got handed to me. I was
wondering if someone could help me. I have a Alpha 2000 running Digital Unix
4.0C and a HP Laserjet5 that used be connected via /dev/lp0. We have recently
installed a NT server which new allows us the extra bells and whistles that the
printer drivers allow. We purchased a HP Jetdirect card to serve as the print
server for the Laserjet 5. I have set it up in Unix as a remote printer. I
didn't see anywhere in the printer documentation that refered to Digital Unix
printer drivers. Now when I print from Unix I get this kind of output:
this is line one.
this is line two.
This happened before when the printer was connected to lp0, I got help making a
script which appeared as follows:
STRING='\033&k2G'
echo "$STRING" > /dev/lp0
I tried inserting the name for the remote printer in place of /dev/lp0 and I
tried using of and xf in the printcap file to reference a file with just the
'\033&k2G' in it but that yields the same results. If someone could point me
in the right direction I would be very grateful.
Thanks in advance
Kevin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: DU 4.0C printing to HPLaserjet 5
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
0 siblings, 1 reply; 3+ messages in thread
From: Matthias Kring @ 1998-02-08 5:00 UTC (permalink / raw)
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.
Matthias Kring mkring@ matthias.kring@
netcologne.de ditec.de
---------------------------------------- keepyourspam@127.0.0.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: DU 4.0C printing to HPLaserjet 5
1998-02-08 5:00 ` Matthias Kring
@ 1998-02-09 5:00 ` FTP Administrator
0 siblings, 0 replies; 3+ messages in thread
From: FTP Administrator @ 1998-02-09 5:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-02-09 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox