ashton@b56vxg.dnet (02/14/91)
FYI I am a novice Unix person trying to play system administrator on a new Sparc2 running Aries. Connected to this beast is a HP Laserjet IIp printer via the serial interface (ttya). Does anyone out there have any experience connecting these two pieces of hardware together?? If so, could you please tell me what I need in my /etc/printcap file to get the Laserjet to print pictures? The people at Aries Technology tell me that the printcap files they have worked for Sun 3/4, Sparc1, & Sparc1+ but died on the Sparc2. Thanks in advance for any/all help, Dave Ashton + voice: (716) 726-7944 Eastman Kodak + fax: (716) 726-7937 1-9-EP mc:35718 + Internet: vxopta.dnet!ashton@Kodak.COM Rochester, NY 14650 USA
jms@tardis.tymnet.com (Joe Smith) (03/28/91)
In article <1607@brchh104.bnr.ca> rit!kodak!ashton@b56vxg.dnet writes: >Sparc2. Connected to this beast is a HP Laserjet IIp >printer via the serial interface (ttya). This is how we got our Laserjet working, after installing Transcript. # Entry For HP-Laserjet IIID located in C5-275 0|lp|printer|ps|PS|postscript|PostScript|Xoanan|xoanan:\ :rm=arrow:lp=/dev/laserjet:sd=/var/spool/lp.0:\ :lf=/var/adm/lp-log:af=/var/adm/lp.acct:\ :br#19200:rw:fc#0000374:fs#0000003:xc#0:xs#0040040:mx#0:sf:sb:\ :if=/usr/local/lib/ps/psif:\ :of=/usr/local/lib/ps/psof:gf=/usr/local/lib/ps/psgf:\ :nf=/usr/local/lib/ps/psnf:tf=/usr/local/lib/ps/pstf:\ :rf=/usr/local/lib/ps/psrf:vf=/usr/local/lib/ps/psvf:\ :cf=/usr/local/lib/ps/pscf:df=/usr/local/lib/ps/psdf: Here is the change to pscf to make it do special paper handling for requests that were spooled with "lpr -c". (I'm not sure where "sun2ps" came from; it convers Sun raster files to PostScript for doing screendumps.) 1a2,18 > #[TYM] This is psint.sh with TYMNET modifications: > #[TYM] 08-Feb-91/carl Make psvf run 'sun2ps' instead of 'psbad'. > #[TYM] 14-Feb-91/jms Output 'duplex.pro' when "lpr -c file" specified. > # > #[TYM] When the banner is printed, lpd invokes "psof -w132 -l66" which in > #[TYM] turn invokes "psbanner -P `basename $cwd` >/dev/lp" with stdin of just > #[TYM] "arrow:jms Job: /etc/printcap Date: Thu Feb 14 17:26:59 1991^J^Y^A". > #[TYM] Using "lpr -l file" sets the "-c" option to psif to print control chars: > #[TYM] "psif -c -w132 -l66 -i0 -n jms -h arrow /var/adm/lp.acct <file >/dev/lp" > # > #[TYM] When using the top output tray of a LaserJet IIID, be sure to create > #[TYM] a file called ".options" in the spool directory that says: > #[TYM] REVERSE= # Don't reverse pages when top tray is active. > #[TYM] BANNERFIRST=1 # Output the banner before the first page, > #[TYM] BANNERLAST=0 # and not after the last page. > #[TYM] pscf_file=$PSLIBDIR/duplex.pro # Set duplex mode if "lpr -c" > # 16a34 > pscf_file=/dev/null #[TYM] Should be set to "duplex.pro" in .options file 41c59,60 < -c) ;; --- > -c) ;; # This is set by "lpr -l" to print control characters. > # Not to be confused with "lpr -c" which calls pscf. 75c94,97 < psvf|pscf|psdf|psrf) echo "$prog: filter not available." 1>&2 ; --- > psvf) /usr/local/bin/sun2ps -p | $comm ;; #[TYM] sunraster file > pscf) cat $pscf_file >>.banner #[TYM] Alternate paper handling. > exec $comm ;; #[TYM] Use "lpr -c" to get this. > psdf|psrf) echo "$prog: filter not available." 1>&2 ; Joe Smith (408)922-6220 | SMTP: jms@tardis.tymnet.com or jms@gemini.tymnet.com BT Tymnet Tech Services | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms PO Box 49019, MS-C51 | BIX: smithjoe | CA license plate: "POPJ P," (PDP-10) San Jose, CA 95161-9019 | humorous dislaimer: "My Amiga 3000 speaks for me."