Printing to an HP Printer from your Sparc


Include the standard disclaimer here, Copyright Jeff Goldman 1997.

This page describes the set up for SunOS 4.1.3_U1 (and equivalent?).


Connection: Null modem cable to your favorite serial port (we'll use ttya) Don't forget to switch the hardware pin inside the sparc2 to RS232-C (See the installation guide here)


Printer Settings:


Ascii printing:

The entry below will print ascii on your DeskJet+. The pl#63 sets the lines per page at 66. The default is 66 but with that setting, the printer will print 63 lines on one page, 3 lines on the next, and then form-feeds to a new page to continue (careful, the L's look like pipes).

/etc/printcap file:


Post-Script Printing:

This is very cool (well, it is to me!). The DeskJet+ is capable of printing postscript -- who would have thought it! It accomplishes this through ghostscript and a filter called "apsfilter." You can find both of these with xarchie (or on the web).

First, get ghostscript working (I used ver3.01). make sure you tell the makefile where your X11 includes and libs are. For me, since I was using openwin, the first time I compiled gs, I didn't include the locations /usr/openwin/lib and /usr/openwin/include. This can cost you because gs will still compile yet it won't find the libraries.

Second, get the apsfilter and modify it as follows:

These are the modifications I made to make the apsfilter work with the HP DeskJet+:

Here is the /etc/printcap file:


Be sure and read the "problems" section on the previous page. You may encounter some of the same troubles. If you need any more help, let me know. And, to help us all, please send me email (goldman@ucla.edu) of your experiences using any of these files. Thank you.

A special thanks goes out to Stefan Mueller-Pfeiffer, who helped me get things started with the printcap entry and of course Andreas Klemm for the apsfilter.

Sincerely,

Jeffrey Goldman

goldman@ucla.edu

Home Page: http://www.cs.ucla.edu/~goldman