Skip Navigation Links | |
Exit Print View | |
System Administration Guide: Printing Oracle Solaris 11 Express 11/10 |
1. Introduction to Printing in the Oracle Solaris Operating System
2. Planning for Printing (Tasks)
3. Setting Up and Administering Printers by Using CUPS (Tasks)
4. Setting Up and Administering Printers by Using Print Manager for LP (Tasks)
5. Setting Up and Administering Printers by Using Oracle Solaris Print Manager (Tasks)
6. Setting Up Printers by Using LP Print Commands (Tasks)
Setting Up Printers by Using LP Print Commands (Task Map)
Setting Up Directly Attached Printers by Using LP Print Commands
Specifying a PPD File When Setting Up a Printer
How to Add a New Directly Attached Printer by Using LP Print Commands
How to Add a Print Queue With localhost Specified as the Host Name (LP Print Commands)
Setting Up Network-Attached Printers by Using LP Print Commands
Oracle Support for Network Printers
Invoking Network Printer Support
Selecting the Printer Node Name
Selecting the Destination Name (Also Called the Network Printer Access Name)
Selecting the Network Printing Protocol
Managing Network-Attached Printer Access
How to Add a New Network-Attached Printer by Using LP Print Commands
How to Set Up a Remote Printer That is Connected to a Print Server by Using IPP
Adding a New Network-Attached Printer by Using Printer Vendor-Supplied Software
How to Add a Attached Network Printer by Using Printer Vendor-Supplied Tools
Setting Up and Administering Printers on a Print Client (Task Map)
Adding Printer Access by Using LP Print Commands
How to Add Printer Access by Using LP Print Commands
How to Set Up a .printers File
How to Delete a Printer and Remove Printer Access by Using LP Print Commands
7. Administering Printers by Using LP Print Commands (Tasks)
8. Customizing LP Printing Services and Printers (Tasks)
9. Administering the LP Print Scheduler and Managing Print Requests (Tasks)
10. Administering Printers on a Network (Tasks)
11. Administering Character Sets, Filters, Forms, and Fonts (Tasks)
12. Administering Printers by Using the PPD File Management Utility (Tasks)
13. Printing in the Oracle Solaris Operating System (Reference)
14. Troubleshooting Printing Problems in the Oracle Solaris OS (Tasks)
Table 6-1 Printer Setup and Administration on a Print Client (Task Map)
|
A print client is a system that is not the server for the printer. Yet, this system has access to the printer. A print client uses the services of the print server to spool, schedule, and filter the print jobs. Note that one system can be a print server for one printer and be a print client for another printer.
Access to a printer can be configured on a domain-wide basis or on a per-machine basis. If you add the printer information to the naming service database, access is configured on a domain-wide basis.
# lpadmin -p printer -s print-server -D description
# lpamin -d printer
# lpstat -p printer
Example 6-11 Adding Printer Access by Using lp Print Commands
If you want to print to a remote printer, you must add access to the remote printer. This example shows how to configure access to a printer named luna, whose print server is saturn.
# lpadmin -p luna -s saturn (1) # lpadmin -p luna -D "Room 1954 ps" (2) # lpadmin -d luna (3) # lpstat -p luna (4)
Identifies the printer and the print server
Adds a description for the printer
Sets the printer as the system's default printer destination
Verifies that the printer is ready for printing
The .printers file is located in a user's home directory. This file includes information about a user's default printer and other frequently used printers. Having a .printers file enables users to establish their own printer aliases. For example, a _default alias can be used to specify a user's default printer. Also, a special _all alias can be used to define a list of printers that are affected when a print job is canceled or to check the status of printers.
The use of the .printers file by the LP print service is controlled by the naming service switch (/etc/nsswitch.conf). The default configuration specifies that the print service checks a user's home directory to locate printer configuration information before it checks the other naming services. So, you can tailor a user's printer configuration file to use custom printer information rather than the shared information in the naming service.
For more information about the .printers file, see the printers(4) man page. For more information about the naming service switch, see the nsswitch.conf(4) man page.
This procedure shows users how to set up .printers file in their own home directories.
$ cd $HOME
_default printer-name
_all printer1,printer2,printer3
# lpadmin -x printer-name
Deletes the specified printer.
Specifies the name of the printer you want to delete.
# reject printer-name
reject printer-name rejects print requests for the specified printer.
This step prevents any new requests from entering the printer's queue while you are in the process of removing the printer. For a detailed description, see How to Accept or Reject Print Requests for a Printer.
# disable printer-name
This step stops print requests from printing. For a detailed description on how to stop printing, see How to Enable or Disable a Printer.
For information about how to move print requests to another printer, see How to Move Print Requests to Another Printer.
# lpadmin -x printer-name
$ lpstat -p printer-name -l
In the command output, you should receive an error indicating that the printer does not exist.
$ lpstat -p printer-name -l
In the command output, you should receive an error indicating that the printer does not exist.
Example 6-12 Deleting a Printer and Remote Printer Access
The following example shows how to delete the printer luna from the print client terra and from the print server jupiter. This example also shows how to delete the print client terra from the print server.
terra# lpadmin -x luna Removed “luna”. terra# lpstat -p luna -l jupiter# lpadmin -x luna Removed “terra”. jupiter# lpstat -p luna -l