Sun Sparc2 and HP Laserjet IIp ??

Joe Smith jms at tardis.tymnet.com
Thu Mar 28 07:35:00 AEST 1991


In article <1607 at brchh104.bnr.ca> rit!kodak!ashton at 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 at tardis.tymnet.com or jms at 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."



More information about the Comp.sys.sun mailing list