Lantronix MPS100 EPS Reference Manual - Page 63
LPR Basics
View all Lantronix MPS100 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 63 highlights
TCP/IP Host Setup LPR Printing 7.2.1 LPR Basics LPR is supported on many machines. To create a print queue, 1 Add the host print queue name into /etc/printcap. 2 Specify the remote node name (the host name of the Server) and the Server service. Note: There are slight variations in LPR configuration for AIX, HP, SCO UNIX, Solaris, and Windows NT hosts; after reading this section, refer to the following sections for platform-specific configuration information. To add and use a print queue for a Server, 1 Add the Server name and IP address to the host's /etc/hosts file. 2 Edit the /etc/printcap file to add an entry of the following form: Figure 7-1: Example printcap File Entry Server_PRT|Printer on LAB Server:\ :rm=Server_xxxxxx:\ :rp=Server_xxxxxx_TEXT:\ :sd=/usr/spool/lpdServer_PRT: The punctuation shown in the above example is required, and whitespace should be avoided within each option. The example above creates a queue named Server_PRT. The rm parameter is the name of the Server in the host's address file, the rp parameter is the name of the service as it exists on the Server, and the sd parameter specifies the name of the directory used to hold temporary spooling files. 3 Create the spooling directory using the mkdir command, and make sure it is world-writable. Figure 7-2: Creating a Spooling Directory # mkdir /usr/spool/lpd/Server_PRT # chmod 777 /usr/spool/lpd/Server_PRT The mx option may be used to allow unlimited size files to be printed, and the sh (suppress header) option may be used to prevent header pages from being generated. See the host's documentation or man pages for more information on the format of the printcap file and how to create the spool directory. 4 Check the queue setup using the lpc status command. Figure 7-3: lpc Status Display % lpc status Server_PRT: queuing is enabled printing is enabled no entries no daemon present 7-3