SUMMARY: DU/lpr -Olandscape w/TCPIP HP laser remote

From: Mark Schlam <mslist_at_castle.beaver.edu>
Date: Tue, 07 Apr 1998 10:45:45 -0400 (EDT)

Thanks to Grant Ward, who responded with the info that the -Olandscape
option does not work on telnet printers, and to Alan Davis, who responded
with additional info on filters, and a reference to section 11.8 of the DU
Sys Adm manual.

Special thanks to Dave Mathies, of DEC support who provided the following
solution(it works great!):

#1.- for standard text telnet printing the "BSD style" printcap entry
using the printcap entry I had posted originally works fine. But if you
are sending a document to an HP printer attached to a jet direct card with
a TCP/IP address on your network and want to use landscape or postscript,
you need to use appropriate filters.

#2 - For the hp laserjets to get the appropriate filters to work you MUST
have an entry in /etc/services which for HP lasers is an entry something
like

hpjd 9000/tcp #entry for HP laser TCP/IP printers

#3 - Your printcap entry will look something like this:

lp8|8|davehplandscape_text:\
 :if=/usr/lbin/hplaserof:\
 :lf=/usr/adm/lp8err:\
 :lp=_at_daveprint/hpjd:\
 :mx#0:\
 :of=/usr/lbin/hplaserof:\
 :pl#66:\
 :pw#132:\
 :rw:\
 :sd=/usr/spool/lpd8:\

"davehpland_text" refers to the specific hp printer in the printcap
entry.

"daveprint" refers to the IP name in the /etc/hosts or
/etc/namedb/hosts.db of the printer connection (to which davehpland_text
printer is connected) which has a named IP reference in hosts.db and
hosts.rev (or /etc/hosts)

The pw#132 is what makes the document print landscape, and the hplaserof
is the filter for the printer. Postscript printing requires "hplaserpsof"
wherever you see hplaserof in the printcap printer entry.

#4 Note that if you use the lprsetup to add the printer, the
printer type is hpjd, not "remote". "hpjd" is arbitrary, referring
to whatever entry you have in the /etc/services file.

Mark Schlam


Original posting:
> Here is my printcap entry for HPlaser 5 remote tcpip text printing
> which works quite well on both 3.2x and 4.Ox :
> lp4|4|lab19_text:\
> :lf=/usr/adm/lp4err:\
> :lp=:\
> :rm=lab19print:\
> :rp=text:\
> :sd=/usr/spool/lpd4:
>
> The landscape option lpr -Plab19_text -Olandscape <filename>
> printed out in portrait format.
> TIA for ideas on how to fix.
Received on Tue Apr 07 1998 - 16:44:10 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT