From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078705511377.tru64-unix-managers.marc@archive.invalid> From: Mark Schlam Date: Tue, 07 Apr 1998 14:45:45 +0000 To: tru64-unix-managers Subject: SUMMARY: DU/lpr -Olandscape w/TCPIP HP laser remote X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078705511377 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=@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 > printed out in portrait format. > TIA for ideas on how to fix.