|
|
Read this topic thoroughly to help you decide whether to move to CUPS from System V LP, and then to get started once you switch to CUPS. The CUPS documentation is available in the DocView Printing category.
There are two options for enabling and administering CUPS:
When you make this change, the SCOadmin Printer Manager is reconfigured to automatically launch the CUPS web-based administration tool.
When you log into the CUPS administration tool, it assumes that you are the root user -- enter the root password.
Details on using the CUPS web-based administration tool are provided in the CUPS documentation. See the DocView Printing category.
Setting up a printer correctly in CUPS depends on two critical choices: the printer device name and the printer driver. Most tasks can be performed using the CUPS graphical interface, but some will require the lpadmin(ADM) command.
Devices are selected from a drop-down list in the graphical interface that shows the make and model of the printer. The procedure below shows you how to use the lpadmin command to reset the device name as necessary.
CUPS provides its own generic printer drivers, that provide basic printing functionality. The following packages provide additional printer support, and should be installed along with CUPS:
Your printer may work with more than one driver, but will probably work best with one of the available choices.
To set up a printer using the CUPS graphical administration interface:
AppSocket/HP JetDirect Internet Printing Protocol (ipp) Internet Printing Protocol (http) LPD/LPR Host or Printer Parallel Port #1 Serial Port #1 Serial Port #2 USB Printer #1 (Printer Make/Model)
Note that if no USB Printer is displayed, but you have one connected, you may need to restart the CUPS server in order for CUPS to recognize it. Make sure the printer is connected properly and is turned on. Then, open a console window and enter the following command (as root):
/etc/init.d/cups restart
Select the browser's Reload or Refresh menu command; the USB Printer should now be listed in the device choices.
Choose the apporpriate device and select Continue.
Printer printername has been added successfully.
Select the printer name to go to the printer description.
lpadmin -p printername -v deviceURIThe deviceURI contains the type of interface and the device path. For example, for a parallel port printer, the device URI might be parallel:/dev/lp0. For a USB printer, it is recommended you use a device URI of usb:/dev/usb_prnt#. See usblp(HW) for USB device naming conventions.
Once you have changed the printer definition as needed, select the browser Reload or Refresh menu command to check your changes.
man lpadmin | lp -d printername
The above command should print the lpadmin(ADM) manual page on printer printername.
If the test page does not print, prints poorly, or printer performance is not optimal, select the Modify Printer menu command on the printer's description page to try another printer manufacturer or model.
This example configures an HP officejet v40 (USB) connected to a Windows XPPro (as printer queue HP) for printing from a system running CUPS.
lp -d hp textfile
where textfile is the name of the text file.