Previous | Table of Contents | Next |
The following example sets up a print server by using the following information:
# lpadmin -p seachild -v /dev/null # lpadmin -p seachild -i /usr/lib/lp/model/netstandard # lpadmin -p seachild -o dest:nimquat:9100 -o protocol=tcp -o timeout=5 # lpadmin -p seachild -I postscript -T PS # cd /etc/lp/fd # for filter in *.fd;do > name=`basename $filter .fd` > lpfilter -f $name -F $filter > done # accept castle destination ` `castle' ` now accepting requests # enable castle printer ` `castle' ` now enabled # lpadmin -p castle -D "PostScript printer" # lpstat -p castle printer castle is idle. enabled since Mon Sep 15 08:45 1997. available
This section describes how to set up a SunOS 5.0 print client to print on a SunOS 4.x print server that has a PostScript printer installed. You must complete the following tasks so the print client can use the printer connected to the print server:
You must have a network that enables access between systems to set up print clients. If your network is running NIS or NIS+, follow the appropriate procedures for enabling access between systems. If your network is not running NIS or NIS+, you must include the Internet address and system name for each print client in the /etc/hosts file on the print server. You must also include the Internet address and system name of the print server in the /etc/hosts file of each print client system.
Before you start, you need superuser privileges on the print client system. You also need the name of the printer and the name of the print server system. You do not need to specify a printer type or file content type for a printer client. If no printer type is specified, the default is unknown. If no file content type is specified, the default is any, which allows both PostScript and ASCII files to be printed on a PostScript printer.
To set up a PostScript print client:
If you want to set up SunOS 5.0 print clients and print servers in addition to setting up the LP print system, you must also configure the port monitors using the Service Access Facility. See Chapter 3, "Administering Devices," for information on how to set up the port monitors. If you use the Solaris 2.1 Printer Manager, the port monitors are configured for you automatically. See Appendix A, "Major Differences: SunOS 4.x Versus SunOS 5.x Operating Systems," for information about the Printer Manager. To set up a SunOS 5.0 print client, in place of step 2 in the procedure described above, type lpsystem server-system-name and press Return. The print server system is identified as a SunOS 5.x system.
The following sections describe how to use lp to submit requests from a command line. When a request is made, the LP print service places it in the queue for the printer, displays the request ID number, and then redisplays the shell prompt. The lp command has many options that can modify the printing process, as summarized in Table 6-4 earlier in the chapter. For a complete list of options, see the lp(1) manual page.
When the LP print service is set up with a default printer, users can submit print requests without typing the name of the printer. Type lp file-name and press Return. The file specified is placed in the print queue of the default printer, and the request ID is displayed.
The following example will print the /etc/passwd file:
pine% lp /etc/passwd request id is pinecone-8 (1 file) pine%
Previous | Table of Contents | Next |