is a print spooler and a set of support programs for using and administering printers. It's at the core of printing on Linux. Packages like Samba (providing Windows connectivity) and Ghostscript, Foomatic, a2ps (providing support for various printers and document types) orbit around it. A good place to start is the LinuxPrinting.org CUPS Quick Start
.
to see what drivers you'll need for your printers. I've got a NEC SuperScript 870
and an Epson Stylus C86
.
(HP LaserJet II P) Ghostscript driver. That means it depends on ESP Ghostscript
to rasterize incoming PostScript data for the printer.
and is treated as a C84 (same printer, different marketing). Gimp-print comes in various flavors including as a CUPS raster driver and a Ghostscript plug-in. I used the CUPS raster driver.
driver.
printing are posted to the linuxprinting.nec.general mailing list. The resulting PPD
is attached.
(apt-get install foomatic-bin)
Run the following commands:
cd /tmp wget http://www.linuxprinting.org/download/printing/alignmargins wget http://www.linuxprinting.org/download/printing/align.ps chmod 755 alignmargins su ./alignmarginsThis will print an alignment page. Text at the top of the page should indicate the currently set Margins and HWMargins. If these aren't all set to 0, enter 0 at every prompt and start over.
The first task is to align the output within the physical page. Measure H and V (in inches) from the edge of the page and calculate x and y as explained on the print out. Enter 0 for all the m* values and the calculated x and y values. My values were -75, 0 for my NEC SuperScript and 0, 0 on my Epson C86. These settings can be manually changed in /etc/cups/ppd/printername.ppd under /Margins[x y]>>setpagedevice
Run alignmargins again. The black arrows should point to the corners of the page. If you printer can't print to the edge of the page they may be clipped.
The next step is to specify how much (in 1/72" inches) is being clipped. On the most recent print out read off ml, mb, mr, and mt by seeing where the grey wedge is clipped on the ruler of the left, bottom, right, and top sides, respectively. These settings can be manually changed in /etc/cups/ppd/printername.ppd under <</.HWMargins [ml mb mr mt].
If you run again the thin black line around the outside of the image should be visible. Since the PPDs have changed any previously configured clients need to be forced to re-aquire them.
.
After setting margins everything's messed up: You need to make your clients download the PPD again, since adjusting the margins modifies it.