|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 Setting Up Network-Attached Printers by Using Solaris Print Manager Setting Up Network-Attached Printers by Using LP Print Commands Adding a New Network-Attached Printer by Using Printer Vendor-Supplied Software Setting Up Printers That are Associated With PPD Files Setting Up Printers on a Print Client (Task Map) 5. Administering Printers by Using Solaris Print Manager and LP Print Commands (Tasks) 6. Administering Printers That Use Network 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 From the Desktop (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.
Example 4-1 Adding a New Directly Attached Printer With PPD Files by Using LP Print Service CommandsThis 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...
Example 4-2 Adding a New Directly Attached Printer Without PPD Files by Using LP Print Service CommandsThis 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 Use LP Print Commands to Add a Print Queue With localhost Specified as the Host NameThis procedure shows how to use LP print commands to add a local print queue with localhost specified as the host name in the print system databases. This modification was added to enable print servers to maintain the same print host name, independent of the machine host name. Note that you can also modify a print queue by using these commands.
Example 4-3 Adding a Print Queue by Specifying localhost as the Host NameThis 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,Solaris Example 4-4 Adding a Print Queue by Using the Default Behavior of lpadmin to Specify the Host NameThis 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,Solaris Example 4-5 Modifying a Print Queue to Use the Local Host 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,Solaris See 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 Use Solaris Print Manager to Add a Print Queue With the Local Host Specified as the Host Name. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|