Manual Configuration of Print Queues
The most tedious method of configuring client machines is to configure each remote queue by hand using the lpadmin(8) command:
lpadmin -p printer -E -v ipp://server/printers/printer
The printer name is the name of the printer on the server machine. The server name is the hostname or IP address of the server machine. Repeat the lpadmin command for each remote printer you wish to use.
# Show shared printers on the local network. Browsing On BrowseOrder allow,deny BrowseAllow all BrowseLocalProtocols CUPS dnssd BrowsePoll 192.168.1.x
Printing to Printer From Windows
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:
For Example: 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.
Print Via CommandLine
If default set
lp filename lpr filename
lpstat -p -d
Print with Optional Dest
lp -d printer filename lpr -P printer filename
Setting the Default Printer - If you normally use a particular printer, you can tell CUPS to use it by default using the lpoptions(1) command:
lpoptions -d printer