Ghostscript driver for HP Business Inkjet 2200 ============================================================================= Building the source code ============================================================================= The source code for the HP 2200 Ghostscript driver consists of 3 files (gs-hp2200.tar.gz). 1. gdevcd8.c 2. contrib.mak 3. unix-gcc.mak Follow these steps to build Ghostscript 6.01 in Linux: 1. Download and install the Ghostscript 6.01 source code (http://www.cs.wisc.edu/~ghost/aladdin/get601.html) according to the official instructions shown on the Ghostscript home page. To build for the Linux platform, you will need the Unix & VMS sources: a. Ghostscript-6.01-1.src.rpm b. Ghostscript-fonts-6.0-2.src.rpm 2. Copy the HP 2200 Ghostscript driver source files (gdevcd8.c, contrib.mak and unix-gcc.mak) into the Ghostscript source directory, overwriting the original versions. 3. Build Ghostscript. Here is a summary of the steps to build Ghostscript 6.01 in Linux: # cd /usr/local/src # tar zxvf /tmp/ghostscript-6.01.tar.gz # cd gs6.01 # tar zxvf /tmp/ghostscript-6.01jpeg.tar.gz # tar zxvf /tmp/ghostscript-6.01libpng.tar.gz # tar zxvf /tmp/ghostscript-6.01zlib.tar.gz # mv jpeg-6b jpeg # mv libpng-1.0.5 libpng # mv zlib-1.1.3 zlib # cd src # cp /tmp/gdevcd8.c ./ # cp /tmp/contrib.mak ./ # cp /tmp/unix-gcc.mak ./ # cd .. # ln -s /usr/X11R6 /usr/X11 (needed by some Linux distributions) # make -f src/unix-gcc.mak When the build completes, the binary output is: /usr/local/src/gs6.01/bin/gs ============================================================================= Installation ============================================================================= 1. Download and install Ghostscript 6.01 (http://www.cs.wisc.edu/~ghost/aladdin/get601.html) according to the official instructions shown on the Ghostscript home page. a. Ghostscript-6.01-1.i386.rpm b. Ghostscript-fonts-6.0-2.noarch.rpm 2. Copy the HP 2200 Ghostscript binary (gs) and overwrite the original Ghostscript 6.01 executable: # type gs gs is /usr/bin/gs # cd /usr/bin/gs # cp gs gs.backup # cp /usr/local/src/gs6.01/bin/gs . cp: overwrite `./gs'? y 3. Run printtool and add a print queue, e.g. lp0 a. In the Configure Filter dialog box, select "HP DeskJet 850/855/870/1100 series". b. In the Paper Size list box, choose the desired paper size, e.g. Letter c. In the Extra GS options edit box: specify "-sDEVICE=chp2200" d. Enable the checkboxes: "Send EOF after job to eject page" and "Fix stair-stepping text". ============================================================================= Using the driver ============================================================================= Selecting paper size: Run printtool and edit the lp0 printer queue. In the Paper Size list box, choose the desired size. Selecting paper type: Run printtool and edit the lp0 printer queue. In the Extra GS options edit box, specify: "-dPapertype=x" Possible values of x are: 0=Plain Paper (*default), 1=Bond paper, 2=special paper, 3=photo paper, 4=transparency Selecting print quality: Run printtool and edit the lp0 printer queue. In the Extra GS options edit box, specify: "-dQuality=x" Possible values of x are: -1=Draft, 0=Normal (*default), 1=Best Printing from an application: From the application, select File -> Print. In the Print Command field, specify: "lpr -Plp0" Printing a file from a console window: # gs -q -sDEVICE=chp2200 -dNOPAUSE -dSAFER -dBATCH -sOutputFile=- test.ps |lpr