log in

nerdylorrin.net

Wiki: CUPS

Your trail: MythTV > WordPress
The Common UNIX Printing System 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.

Installing CUPS

Ports

Identifying Drivers

Search the linuxprinting.org printer database to see what drivers you'll need for your printers. I've got a NEC SuperScript 870 and an Epson Stylus C86.

CUPS software

Printer Setup

Configuring the Margins

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 ./alignmargins

This 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.

Sharing Printers

See CupsSharing.

Problems

Landscape printing from OS X fails.

After setting margins everything's messed up: You need to make your clients download the PPD again, since adjusting the margins modifies it.

Troubleshooting

See /var/log/cups.

Resources


Attachments:
[RSS] Creative Commons License
This work is licensed under a Creative Commons License.
Edit this page   More info...   Attach file...
Pages referencing this one include Linux MacOSX Samba
This page last modified 25-Oct-2006 20:42:13 PDT by LorrinNelson.