📄 416-420.html
字号:
<HTML>
<HEAD>
<TITLE>Special Edition Using Linux, Fourth Edition:Printing</TITLE>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<!--ISBN=0789717468//-->
<!--TITLE=Special Edition Using Linux, Fourth Edition//-->
<!--AUTHOR=Jack Tackett//-->
<!--AUTHOR=Jr.//-->
<!--AUTHOR=Steve Burnett//-->
<!--PUBLISHER=Macmillan Computer Publishing//-->
<!--IMPRINT=Que//-->
<!--CHAPTER=20//-->
<!--PAGES=416-420//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="412-416.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="../ch21/421-423.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H3><A NAME="Heading18"></A><FONT COLOR="#000077">Configuring Red Hat Printers</FONT></H3>
<P>If you’ve installed XFree86 under Red Hat, you can use the printer configuration tool shown in Figure 20.1 to add and delete printers as well as maintain the /etc/printcap and spooler files and directories. You can find this tool in the Control Panel; Table 20.5 describes each of the PrintTool’s menu items.
</P>
<P><A NAME="Fig1"></A><A HREF="javascript:displayWindow('images/20-01.jpg',481,278 )"><IMG SRC="images/20-01t.jpg"></A>
<BR><A HREF="javascript:displayWindow('images/20-01.jpg',481,278)"><FONT COLOR="#000077"><B>Fig. 20.1</B></FONT></A> Managing printers is easy with Red Hat’s graphical utilities.</P>
<TABLE WIDTH="100%">
<CAPTION ALIGN=LEFT><B>Table 20.4</B> The PrintTool Menus
<TR>
<TH COLSPAN="3"><HR>
<TR>
<TH WIDTH="20%" ALIGN="LEFT">Menu Name
<TH WIDTH="30%" ALIGN="LEFT">Submenu
<TH WIDTH="50%" ALIGN="LEFT">Description
<TR>
<TD COLSPAN="3"><HR>
<TR>
<TD>PrintTool
<TD>Reload
<TD>Rescans the directory for printcap files
<TR>
<TD>
<TD>About
<TD>Displays information about the PrintTool
<TR>
<TD>
<TD>Quit
<TD>Exits the PrintTool
<TR>
<TD>Lpd
<TD>Restart
<TD>Restarts the <TT>lpd</TT> daemon after making changes
<TR>
<TD VALIGN="TOP">Tests
<TD VALIGN="TOP">Print ASCII test page
<TD>Prints a test page in plain text to the selected printer
<TR>
<TD>
<TD>Print PostScript test page
<TD>Prints a PostScript test page to the selected printer
<TR>
<TD>
<TD>Print ASCII directly to port
<TD>Prints a test page directly to the device and not via the lpd system
<TR>
<TD>Help
<TD>General
<TD>Provides general help on the PrintTool
<TR>
<TD>
<TD VALIGN="TOP">Troubleshooting
<TD>Provides help on various problems with printing
<TR>
<TD COLSPAN="3"><HR>
</TABLE>
<P>To add a new printer, click the Add button. You must first specify whether it’s a local, remote, or SMB printer, as shown in Figure 20.2. A <I>local printer</I> is connected to your parallel or serial port; a <I>remote printer</I> is connected to your network. A LAN Manager Printer is a printer attached to a different system via <I>Server Message Block protocol</I> (SMB-Samba), typically a Microsoft Windows system.</P>
<P><A NAME="Fig2"></A><A HREF="javascript:displayWindow('images/20-02.jpg',215,139 )"><IMG SRC="images/20-02t.jpg"></A>
<BR><A HREF="javascript:displayWindow('images/20-02.jpg',215,139)"><FONT COLOR="#000077"><B>Fig. 20.2</B></FONT></A> To add a printer, you must select the type of printer.</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR>• <B>See</B> “Using SAMBA,” <B>p. 291</B><HR></FONT>
</BLOCKQUOTE>
<P>To edit an existing printer configuration, select the entry and click the Edit button. Both actions bring up the dialog box shown in Figure 20.3. You must enter a value for each field in the dialog box. Table 20.5 describes each field.
</P>
<P><A NAME="Fig3"></A><A HREF="javascript:displayWindow('images/20-03.jpg',324,192 )"><IMG SRC="images/20-03t.jpg"></A>
<BR><A HREF="javascript:displayWindow('images/20-03.jpg',324,192)"><FONT COLOR="#000077"><B>Fig. 20.3</B></FONT></A> To print properly from Linux, you must specify certain options, such as printer name and physical port location.</P>
<TABLE WIDTH="100%">
<CAPTION ALIGN=LEFT><B>Table 20.5</B> Field Items for Each Printer
<TR>
<TH COLSPAN="2"><HR>
<TR>
<TH WIDTH="25%" ALIGN="LEFT">Field Name
<TH WIDTH="75%" ALIGN="LEFT">Description
<TR>
<TD COLSPAN="2"><HR>
<TR>
<TD VALIGN="TOP">Names
<TD>The name of the printer and its queue. You can specify multiple names by using the | character to separate names.
<TR>
<TD VALIGN="TOP">Spool Directory
<TD>The directory for spooling documents for this printer, such as /usr/spool/lpd/myprinter.
<TR>
<TD VALIGN="TOP">File Limit
<TD>The maximum document size (in kilobytes). A 0 value indicates no limit.
<TR>
<TD>Printer Device
<TD>The physical connection for your printer, such as <TT>lp0</TT>.
<TR>
<TD VALIGN="TOP">Input Filter
<TD>Enter the full path and filename of your custom filter. If you need to configure a printer, click the Select button.
<TR>
<TD VALIGN="TOP">Suppress Headers
<TD>Check this box if you don’t want a header page printed with each document.
<TR>
<TD VALIGN="TOP">Remote Host
<TD>This field in the Remote Host dialog box specifies the name of the remote host to which the printer is connected.
<TR>
<TD VALIGN="TOP">Remote Queue
<TD>This field in the Remote Host dialog box specifies the printer queue on the remote machine. Enter the full path.
<TR>
<TD COLSPAN="2"><HR>
</TABLE>
<P>To configure a print filter, click the Select button, which displays the dialog box shown in Figure 20.4. Table 20.6 describes the various fields in the Configure Filter dialog box.
</P>
<P><A NAME="Fig4"></A><A HREF="javascript:displayWindow('images/20-04.jpg',634,451 )"><IMG SRC="images/20-04t.jpg"></A>
<BR><A HREF="javascript:displayWindow('images/20-04.jpg',634,451)"><FONT COLOR="#000077"><B>Fig. 20.4</B></FONT></A> Configuring an input filter for your printing system is made simple with the Configure Filter dialog box.</P>
<TABLE WIDTH="100%">
<CAPTION ALIGN=LEFT><B>Table 20.6</B> Field Items for Each Filter
<TR>
<TH COLSPAN="2"><HR>
<TR>
<TH WIDTH="25%" ALIGN="LEFT">Field Name
<TH WIDTH="75%" ALIGN="LEFT">Description
<TR>
<TD COLSPAN="2"><HR>
<TR>
<TD>Printer Type
<TD>The type of printer for this filter.
<TR>
<TD>Driver Description
<TD>Provides a description of the selected printer.
<TR>
<TD>Resolution
<TD>Select the desired resolution for this printer.
<TR>
<TD>Paper Size
<TD>Select the desired paper size for this printer.
<TR>
<TD>Color Depth
<TD>Select the desired color operation for this printer.
<TR>
<TD>Printing options
<TD>Send EOF… forces the printer to eject the page.
<TR>
<TD>
<TD>Fix Stair-Stepping Text fixes the stair-step effect.
<TR>
<TD>
<TD>Fast Text Printing enables a non-PostScript printer to attain faster print speeds.
<TR>
<TD>Margins
<TD>Specify the desired margins.
<TR>
<TD VALIGN="TOP">Extra GS options
<TD>Specify extra ghostscript options for the selected printer.
<TR>
<TD COLSPAN="2"><HR>
</TABLE>
<P>After you add or change a printer entry, you may find that you need to restart the <TT>lpd</TT> daemon. To do this, simply select the lpd menu item on the RHS Linux Print System Manager and click the Restart lpd item.</P>
<H3><A NAME="Heading19"></A><FONT COLOR="#000077">From Here…</FONT></H3>
<P>The <TT>lpr</TT> command is the standard Linux interface for printing files. From the command line, you can use <TT>lpr</TT> to print to many different types of printers and to request many different options. Later, you can check the status of your print jobs with the <TT>lpq</TT> command. If you change your mind and want to cancel a print job, you can do so with the <TT>lprm</TT> command. No matter what, you should read the latest edition of the Printing HOWTO for more information.</P>
<P>For information on related topics, see the following:</P>
<DL>
<DD><B>•</B> Chapter 3, “Installing Red Hat,” discusses how to install the Red Hat distribution of Linux.
<DD><B>•</B> The chapters in Part III, “Managing the File System,” discuss the details of what a system administrator is and does.
<DD><B>•</B> The PrintTool help system provides a myriad of information on how to use the tool to configure your printer system using X.
<DD><B>•</B> Chapter 22, “Using X Windows,” discusses how to use the X Windows system.
<DD><B>•</B> Appendix A, “Sources of Information,” tells you how to locate the Linux Printing HOWTO.
</DL>
<P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="412-416.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="../ch21/421-423.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -