PRINTING IN LINUX WITH CUPS

By Robert Spotswood


General Printing Tips


Printing in Linux Introduction


Why choose CUPS?


Printing Programs

The four main printing programs in Linux today are:

Note a few programs have their own printing system, such as StarOffice, and WordPerfect. They tend to be inferior in that the number of printer drivers available is often vary limited.


lpr


lprng


pdq


CUPS


Installing CUPS


RPM installs


Tarball installs


Installing a New Printer via your web browser


Go to http://127.0.0.1:631/printers

Note:

printers screen


Click on the add printer button

authetication

Enter root and root's password.


First page of the Add printer "wizard"

printer wizard first page


Second page of the Add printer "wizard"

printer wizard second page


Third page of the Add printer "wizard"

printer wizard third page


Fourth page of the Add printer "wizard"

printer wizard fourth page


Fifth (and last) page of the Add printer "wizard"

printer wizard fourth page


The New Printer is added!

printer wizard fourth page


Special Ports

Username and password Not required Username and password required
This machine is in the same workgroup smb://server/sharename smb://username:password@server/sharename
This machine is in a different workgroup smb://workgroup/server/sharename smb://username:password@workgroup/server/sharename

The page for everything except parallel ports and serial ports:

printer wizard 2.5 non serial page

Here is the page for serial ports:

printer wizard 2.5 serial page


The cupsd.conf file


Portwalling


Cups and Samba


Cups command line tricks and tips


Basic print commands


Advanced print commands - Paper orientation and size

With cups, you can easily change the printout paper orientation.

Cups also allows you to specific media size, type and source. Of course, your printer must support the options you choose. From the cups manual, the most common are:

To use these options, the command is "lpr -o media=option1,option2,etc filename". Multiple options are allowed, and they are not case sensitive. Note there are no spaces in the list!


Advanced print commands - Duplexing

If your printer doesn't support duplexing, but you want to fake it, CUPS again has options to help.


Advanced print commands - Range of Pages


Advanced print commands - Combining Options