Unix Services
CUPS - Common Unix Printing System
CUPS (Common Unix Printing System) is the standards-based, open
source printing system developed by Apple Inc. for Mac OS® X and
other UNIX®-like operating systems. This page describes the
use of CUPS made available by the Information Technology Division.
CUPS is the defacto Linux/Unix printing system. In ITD, it is
being used to consolidate access to the myriad of printers owned
by different groups. In addition to centralizing printer
management, our implementation of CUPS allows visitors that do not
have access to the internal network to print to internal printers
without compromising the security of the perimeter.
Most modern Linux/Unix based operating systems (including Apple's
OS X) come with CUPS installed as part of the base operating system
distribution. Older operating systems may still using the
older Linux/Unix print system, lp/lpr. ITD recommends those
systems be upgraded to use CUPS.
Most users will never need to know the particulars off how to get
a printer added to CUPS. They want to add a printer to their
computer. It's something that is done once and then forgotten
about. Below are the general instructions for setting up a
printer on a desktop or workstation. The first step is to find
a printer, and then set up that printer on their Windows or Linux
workstation.
From within the Brookhaven National Laboratory internal network,
CUPS is accessible by pointing a web browser to
http://cups.bnl.gov/. If
looking for a specific printer, click on the "Printers"
tab at the top of the page. That page will list all available
printers in the CUPS system in addition to a search window to locate
specific printers.
Most printer listings in the CUPS system will list the location
in either the "Description" or "Location" field, which are both
search by the CUPS search function. The search may be narrowed
by entering building, room, or printer model information into the
search field.
Once the specific name of the printer is already known, the printer
queue may be accessed via web page with the URL based upon the host
name or queue name of the printer. For example, in the case of
"515HPCLJ", the URL is:
http://cups.bnl.gov/printers/515HPCLJ
The printer queue that a workstation will use to send print jobs
to the printer is the same as the URL of the printer queue itself. To
connect this printer queue on a workstation, follow the process to
add a new printer on that workstation's operating system. For
Windows XP, the process is as follows:
- Start the "Add Printer" Wizard.
- When prompted for "Local or Network Printer", select
"Network printer, or printer attached to another computer".
- When asked to "Specify a Printer", select "Connect to a
printer on the Internet". (sometimes included with an example
text beginning "http://" ). In the
available text entry field, enter the URL of the print queue
(see above under "Accessing CUPS").
- When prompter for a driver, for the Manufacturer, select
Generic. Then for the Printer, select
MS Publisher Color Printer. The reason
for this is that the CUPS server uses the printer-specific
driver for communication with the printer. By using a
generic printer driver on the workstation, it reduces conflicts
with the target printer.
Printing from Linux: Red Hat
Enterprise Linux, Fedora and Scientific Linux
Please note, these instructions assume that the user is running
in the graphic user environment.
- In the console, as root, enter the command "system-config-printer"
- From the window that pops up, click "New Printer"
- In the resulting window, name the printer something
familiar, as well as where the printer is physically located
and include a general description such as the model number of the
printer.
- On the next window, choose "Internet Printing Protocol" from
the Devices list.
- On the right side of that window, type in "cups.bnl.gov" as
the hostname, and the name of the printer underneath it.
- For example, if the full queue is http://cups.bnl.gov/printers/515HPCLJ, the
printer name would be just "515HPCLJ"
- For the printer driver, choose "Raw" as the manufacturer,
and "Local Raw" as the device. This passes unformatted raw
printer jobs to the cups server, where the cups server will
handle the device driver formatting.
- Click Finish. The window should disappear leaving the new
printer available in the printer pool.
- (Optional) Right click on it and choose
"Set as Default" to make this printer the default printer.
Please note, these instructions assume that the user is running
in the Gnome graphic user environment.
- Go to printer administration for the system:
- If using Gnome: [System] > [Administration] > [Printing]
- If using KDE: [Ubuntu Icon] > [System] > [Printing]
- From the resulting window, click "New" and let it search for
printers
- Under the devices list, under "Network Printer" choose
"Internet Printing Protocol"
- After clicking on "Internet Printing Protocol," the right
side of this window will print configuration input boxes.
- Let "Host" be: cups.bnl.gov
- Let "Queue" be "/printers/name.of.the.printer"
- For example, if the full queue is
http://cups.bnl.gov/printers/515HPCLJ, the
printer name would be just "515HPCLJ"
- If you click on "Find Queue," a list of available printers
will appear from cups.bnl.gov.
- Name the printer something familiar, as well as where the
printer is physically located and include a general description
such as the model number of the printer.
- Click Apply. The window should disappear leaving the new printer
available in the printer pool.
- (Optional) Right click on it and choose "Set
As Default" to make this printer the default printer.
Please note, these instructions assume that the user is running
in the Gnome graphic user environment.
- Go to: Desktop > Administration > Printing
- From the resulting window, double click on "New Printer."
- In the new dialog, choose "Network Printer" and "CUPS
Printer (IPP)"
- The bottom part of the dialog will ask for a URI.
- The URI should be: http://cups.bnl.gov/printers/name.of.the.printer
- For example, if the full queue is
http://cups.bnl.gov/printers/515HPCLJ, the
printer name would be just "515HPCLJ"
- Click Forward
- In the next window, under Manufacturer, Choose "Raw" -- let
the Model be "Local Raw"
- Click Apply. The window should disappear leaving the new
printer available in the printer pool. Right click on it and
choose "Set As Default" to make this printer the default
printer.
CUPS provides backward compatible lp/lpr programs. In most
cases, there is no difference from the user's point of view. For
details refer to the relevant man pages on the client system.
If the owner or administrator of a printer with network access
requires or would like to engage in any of the following services, then they
should contact the ITD Help desk at x5522 or send an email to
itdhelp@bnl.gov,
including printer make and model as well as any relevant network
information associated with that printer.
- ITD can centrally manage the printer from a main server
providing correct drivers for that printer.
- Allow visitors to have ability to print to this printer
without giving those visitors access to the internal network.
- Review logs of print jobs made to this printer.
If the owner of a printer want to have that printer added to, removed from or
modified from what is listed at
http://cups.bnl.gov/printers/,
then contact the ITD Help .
Laptops or other computers connected to the Visitor Networks at
Brookhaven National Laboratory do not have access to the same
printers as those connected to the internal network. The
procedures for adding a printer while connected to the Visitor
Network are the same as for the internal network. The host
names are all the same as well. The difference is that
http://cups.bnl.gov/ on the
Visitor Network does not have the same selection of printers as
http://cups.bnl.gov/ on the
internal network.
If the owner or administrator of a printer with network access
requires that printer to be available via the Visitor Network, then they
should contact the ITD Help desk at x5522 or send an email to
itdhelp@bnl.gov,
including printer make and model as well as any relevant network
information associated with that printer. When contacting ITD,
specify the printer should be available on the Visitor Network.
Last Modified:
February 14, 2011
To reach ITD Unix Services for any support issues, please contact the
ITD Helpdesk via email (itdhelp@bnl.gov)
or call x5522. In any communications, please include the name of the
machine(s) in question, as well as their operating system, software package
and other relevant information which will allow ITD to help you more
effectively.
|