⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 doc060.htm

📁 Reh Hat user manual. really goooood
💻 HTM
字号:
<html><body><a href="doc061.html"><img src=../icons/next.gif alt="Next"></a><a href="doc000.html"><img src=../icons/up.gif alt="Up"></a><a href="doc059.html"><img src=../icons/previous.gif alt="Previous"></a><a href="doc000.html"><img src=../icons/contents.gif alt="Contents"></a><a href="doc123.html"><img src=../icons/index.gif alt="Index"></a><hr><h2><a name="s8.3">8.3 Printer Configuration</a></h2><title>Printer Configuration</title><a name="i217"><p>The printer configuration tool (<tt>printtool</tt>) maintains<tt>/etc/printcap</tt>, print spool directories, and print filters.  Thefilters allow you to print many different types of files, including:<p>    <ul>        <li>plain text (ASCII) files        <li>PostScript files        <li>TeX <tt>.dvi</tt> files        <li>GIF, JPEG, TIFF, and other graphics formats        <li>RPMs        </ul><p>Simply printing a GIF or RPM file using <tt>lpr</tt> does ``the rightthing''.<p><p><a name="f26"></a><center><img src="img021.gif"></center><p><center>Figure 26:Print Tool</center><p><p>In order to create a new <em>print queue</em>, choose <b>Add</b>.Then, select what type of printer is being added.  There are 3 types ofprint queues which can be configured with printtool:<p>    <ul>        <li><b>Local</b>: print queues are for printers attached to a    printer or serial port on your Red Hat Linux system.<p>    <li><b>Remote</b>: print queues are attached to a different system    which you can access over a TCP/IP network.<p>    <li><b>SMB</b>: print queues are attached to a different system    which uses LAN-Manager-type (SMB) networking.<p>    </ul><p><p><a name="f27"></a><center><img src="img022.gif"></center><p><center>Figure 27:Selecting a Printer Type</center><p><p>After you choosing the printer type, a dialog requests furtherinformation about the print queue.  All types of print queues requirethe following information:<p>    <ul>        <li><b>Queue Name</b>: What the queue will be called. Multiple    names can be specifed with the <tt>|</tt> (pipe) character separating    entries.<p>    <li><b>Spool Directory</b>: This is the directory on the local    machine where files are stored before printing occurs. Be careful    to not have more than one printer queue use a given spool    directory.<p>    <li><b>File Limit</b>: Maximum size print job accepted, in    kilobytes (1 kb = 1024 bytes). A size of 0 indicates no limit    should be imposed.<p>    <li><b>Input Filter</b>:  Filters convert printed files into a    format the printer can handle. Press <b>Select</b> to choose the    filter which best matches your printer.<p>    In addition to configuring print queue able to print graphical and    PostScript output you can configure a <em>text-only</em> printer,    which will only print plain ASCII text.  Most printer drivers are    also able to print ASCII text without converting it to PostScript    first; simply choose <b>Fast text printing</b> when you configure    the filter.  <b>Please Note:</b> This only works for non-PostScript printers.        <li><b>Suppress Headers</b>: Check this if you don't want a header    page to be printed at the beginning of each print job.<p>    </ul><p><a name="i218">For <em>local</em> printers, the following are also required:<p>    <ul>        <li><b>Printer Device</b>: Usually <tt>/dev/lp1</tt>, the name of the    port which the printer is attached to. Serial printers are usually    on <tt>/dev/ttyS?</tt> ports. You will need to manually configure    serial parameters.<p>    </ul><p><p><a name="f28"></a><center><img src="img023.gif"></center><p><center>Figure 28:Adding a Local Printer</center><p><p><p><a name="f29"></a><center><img src="img024.gif"></center><p><center>Figure 29:Configuring a Print Filter</center><p><p><a name="i219">For <em>remote</em> printers, fill in the following information:<p>    <ul>        <li><b>Remote Host</b>: Hostname of the remote machine hosting the    printer.          <li><b>Remote Queue</b>: Name of the queue to print to on the remote    machine.         </ul><p>The remote machine must be configured to allow the local machine toprint on the desired queue. Typically <tt>/etc/hosts.lpd</tt> controls this.<p><p><a name="f30"></a><center><img src="img025.gif"></center><p><center>Figure 30:Adding a Remote Printer</center><p><p><a name="i220">For <em>SMB</em> printers, fill in the following information:<p>    <ul>        <li><b>Hostname of Printer Server</b>: Name of the machine to which the    printer you want to use is attached.        <li><b>IP number of Server</b>: The IP address of the machine to    which the printer you want to use is attached; this is optional.<p>    <li><b>Printer Name</b>: Name of the printer on which you want to    print.          <li><b>User</b>: Name of user you must login as to access the        printer (typically <tt>guest</tt> for Windows servers, or	<tt>nobody</tt> for <tt>samba</tt> servers).<p>    <li><b>Password</b>: Password (if required) to use the printer        (typically blank). Someone should be able to tell you this if	you do not already know it.<p>    </ul><p><b>Please Note:</b> If you need to use a username and password for an SMB (LANManager) print queue, they are stored unencrypted in a local script andmust be passed on the command line to the smbclient program.  Thus, itis possible for another person to learn the username and password.  Itis therefore recommended that the username and password for use of theprinter not to be the same as that for a user account on the localRed Hat Linux system, so that the only possible security compromise would beunauthorized use of the printer.  If there are file shares from the SMBserver, it is recommended that they also use a different password thanthe one for the print queue.<p>After you have added your print queue, you may need to restart theprinter daemon (<tt>lpd</tt>).  To do so, choose <b>Restart lpd</b> fromthe <b>lpd</b> menu.<p><a name="i221">You may print a <em>test page</em> for any print queue you haveconfigured.  Select the type of test page you would like to print fromthe <b>Tests</b> menu.<p><p><a name="f31"></a><center><img src="img026.gif"></center><p><center>Figure 31:Printing a Test Page</center><p><p><p><hr><a href="doc061.html"><img src=../icons/next.gif alt="Next"></a><a href="doc000.html"><img src=../icons/up.gif alt="Up"></a><a href="doc059.html"><img src=../icons/previous.gif alt="Previous"></a><a href="doc000.html"><img src=../icons/contents.gif alt="Contents"></a><a href="doc123.html"><img src=../icons/index.gif alt="Index"></a><hr></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -