|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
1. Introduction to Printing in the Solaris Operating System 2. Planning for Printing in the Solaris Operating System (Tasks) 3. Setting Up Printing Services (Tasks) 4. Setting Up Printers (Tasks) Introduction to Setting Up Printers Setting Up Printers on a Print Server (Task Map) Setting Up Directly Attached Printers by Using Solaris Print Manager How to Add a New Directly Attached Printer by Using Solaris Print Manager How to Specify localhost as the Host Name When Adding a Print Queue by Using Solaris Print Manager Setting Up Directly Attached Printers by Using LP Print Service Commands How to Add a New Directly Attached Printer by Using LP Print Service Commands How to Specify localhost as the Host Name When Adding Print Queue by Using LP Print Commands Setting Up Network Attached Printers by Using Solaris Print Manager How to Add a New Network Attached Printer by Using Solaris Print Manager Setting Up Network Attached Printers by Using LP Print Commands How to Add a New Network Attached Printer by Using LP Print Service Commands How to Set Up a Remote Printer That is Connected to a Solaris 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 Printers That are Associated With PPD Files How to Specify a PPD File When Adding a New Printer by using LP Print Commands Setting Up Printers on a Print Client (Task Map) How to Add Printer Access by Using Solaris Print Manager How to Add Printer Access by Using LP Print Commands How to Set Up a .printers File 5. Administering Printers by Using Solaris Print Manager and LP Print Commands (Tasks) 6. Administering Printers by Using Printing Protocols (Tasks) 7. Customizing Printing Services and Printers (Tasks) 8. Administering Character Sets, Filters, Forms, and Fonts (Tasks) 9. Administering Printers by Using the PPD File Management Utility (Tasks) 10. Setting Up and Administering Printers by Using GNOME Desktop Tools (Tasks) 11. Printing in the Solaris Operating System (Reference) 12. Troubleshooting Printing Problems (Tasks) |
Setting Up Directly Attached Printers by Using LP Print Service CommandsThe following table describes each printer attribute to help you determine the information that is needed to set up a directly attached printer by using the lpadmin command.
How to Add a New Directly Attached Printer by Using LP Print Service CommandsThis procedure describes how to add a new attached printer specifying a PPD file. The -n option to the lpadmin command enables you to specify a PPD file when adding a new attached printer or modifying an existing attached printer. Two examples follow this procedure. The first example shows you how to add a new attached printer with PPD files. The second example shows you how to add a new attached printer without PPD files.
This example shows how to add a new attached printer with PPD files. The -n option to the lpadmin command enables you to add a new print queue by specifying PPD files. The following information is used as an example. The information that you provide might vary from the following:
# lpadmin -p paper -v /dev/printers/0 (1)
# lpadmin -p paper -I postscript (2)
# lpadmin -p paper -m standard_footmatic (3)
# lpadmin -p paper -n /path/Lexmark-Optra_E312-Postscript.ppd.gz(4)
# lpadmin -p paper -D "Color printer on third floor, rm 3003" (5)
# cd /etc/lp/fd
# accept paper
destination “paper” now accepting requests
# enable paper (6)
printer “paper” now enabled
# lpstat -p paper (7)
printer paper is idle. enabled since Feb 28 11:21 2004...
This example shows how to add a new attached printer without PPD files. The commands in this example must be executed on the print server where the printer is connected. The following information is used as an example. The information that you provide might vary from the following:
See Also
How to Specify localhost as the Host Name When Adding Print Queue by Using LP Print CommandsThis procedure shows how to specify localhost as the local host in the print system databases when adding a local print queue. This modification was added to enable print servers to maintain the same print host name, independent of the machine host name. You can also modify a print queue by using the same commands that are shown in this procedure.
This example shows how to add a new print queue, paper, by using the lpadmin command with the -s option to specify localhost as the host name. % su - root
# lpadmin -p paper -s localhost -v /dev/ecpp0
% lpget paper
paper:
bsdaddr=localhost,paper,SolarisExample 4-4 Adding a Print Queue by Using the Default Behavior of lpadmin to Specify HostnameThis example shows the default behavior of the lpadmin command for using system host name, abc, when adding a new print queue. % su - root
# lpadmin -p newspaper -v /dev/printers/0
% lpget newspaper
fargo:
bsdaddr=abc,newspaper,SolarisExample 4-5 Modifying a Print Queue to Use localhost as the Print Server NameThis example shows how to modify an existing print queue, newspaper, and specify localhost as the new print server name. % su - root
# lpadmin -p newspaper -s localhost
# lpget newspaper
newspaper:
bsdaddr=localhost,newspaper,SolarisSee AlsoFor information about specifying localhost as the print server's host name when adding or modifying a print queue with Solaris Print Manager, see How to Specify localhost as the Host Name When Adding a Print Queue by Using Solaris Print Manager. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|