1<HTML> 2<HEAD> 3<TITLE> 4[Chapter 7] 7.2 Printing to Windows Client Printers</title><META NAME="DC.title" CONTENT=""><META NAME="DC.creator" CONTENT=""><META NAME="DC.publisher" CONTENT="O'Reilly & Associates, Inc."><META NAME="DC.date" CONTENT="1999-11-05T21:34:58Z"><META NAME="DC.type" CONTENT="Text.Monograph"><META NAME="DC.format" CONTENT="text/html" SCHEME="MIME"><META NAME="DC.source" CONTENT="" SCHEME="ISBN"><META NAME="DC.language" CONTENT="en-US"><META NAME="generator" CONTENT="Jade 1.1/O'Reilly DocBook 3.0 to HTML 4.0"></head> 5<BODY BGCOLOR="#FFFFFF" TEXT="#000000" link="#990000" vlink="#0000CC"> 6<table BORDER="0" CELLPADDING="0" CELLSPACING="0" width="90%"> 7<tr> 8<td width="25%" valign="TOP"> 9<img hspace=10 vspace=10 src="gifs/samba.s.gif" 10alt="Using Samba" align=left valign=top border=0> 11</td> 12<td height="105" valign="TOP"> 13<br> 14<H2>Using Samba</H2> 15<font size="-1"> 16Robert Eckstein, David Collier-Brown, Peter Kelly 17<br>1st Edition November 1999 18<br>1-56592-449-5, Order Number: 4495 19<br>416 pages, $34.95 20</font> 21<p> <a href="http://www.oreilly.com/catalog/samba/">Buy the hardcopy</a> 22<p><a href="index.html">Table of Contents</a> 23</td> 24</tr> 25</table> 26<hr size=1 noshade> 27<!--sample chapter begins --> 28 29<center> 30<DIV CLASS="htmlnav"> 31<TABLE WIDTH="515" BORDER="0" CELLSPACING="0" CELLPADDING="0"> 32<TR> 33<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172"> 34<A CLASS="sect1" HREF="ch07_01.html" TITLE="7.1 Sending Print Jobs to Samba"> 35<IMG SRC="gifs/txtpreva.gif" ALT="Previous: 7.1 Sending Print Jobs to Samba" BORDER="0"></a></td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 36<B> 37<FONT FACE="ARIEL,HELVETICA,HELV,SANSERIF" SIZE="-1"> 38<A CLASS="chapter" REL="up" HREF="ch07_01.html" TITLE="7. Printing and Name Resolution"> 39Chapter 7<br> 40Printing and Name Resolution</a></font></b></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 41<A CLASS="sect1" HREF="ch07_03.html" TITLE="7.3 Name Resolution with Samba"> 42<IMG SRC="gifs/txtnexta.gif" ALT="Next: 7.3 Name Resolution with Samba" BORDER="0"></a></td></tr></table> <hr noshade size=1></center> 43</div> 44<blockquote> 45<div> 46<H2 CLASS="sect1"> 47<A CLASS="title" NAME="ch07-31526"> 487.2 Printing to Windows Client Printers</a></h2><P CLASS="para">If you have printers connected to clients running Windows 95/98 or NT 4.0, those printers can also be accessed from Samba. Samba comes equipped with a tool called <EM CLASS="emphasis"> 49smbprint</em> that can be used to spool print jobs to Windows-based printers. In order to use this, however, you need to set up the printer as a shared resource on the client machine. If you haven't already done this, you can reset this from the Printers window, reached from the Start button, as shown in <A CLASS="xref" HREF="ch07_02.html#ch07-32814"> 50Figure 7.7</a>. </p><H4 CLASS="figure"> 51<A CLASS="title" NAME="ch07-32814"> 52Figure 7.7: The Printers window</a></h4><IMG CLASS="graphic" SRC="figs/sam.0707.gif" ALT="Figure 7.7"><P CLASS="para"> 53Select a printer that's locally connected (for example, ours is the Canon printer), press the right mouse button to bring up a menu, and select Sharing. This will give you the Sharing tab of the Printer Properties frame, as shown in <A CLASS="xref" HREF="ch07_02.html#ch07-92021"> 54Figure 7.8</a>. If you want it available to everybody on your LAN as the Windows guest user, enter a blank password. </p><H4 CLASS="figure"> 55<A CLASS="title" NAME="ch07-92021"> 56Figure 7.8: The Sharing tab of the printer</a></h4><IMG CLASS="graphic" SRC="figs/sam.0708.gif" ALT="Figure 7.8"><P CLASS="para"> 57Once you've got this working, you can add your printer to the list of standard printers and Samba can make it available to all the other PCs in the workgroup. To make installation on Unix easier, the Samba distribution provides two sample scripts: <I CLASS="filename"> 58smbprint</i> and <I CLASS="filename"> 59smbprint.sysv</i>. The first works with BSD-style printers; the second is designed for System V printers.</p><DIV CLASS="sect2"> 60<H3 CLASS="sect2"> 61<A CLASS="title" NAME="ch07-pgfId-949813"> 627.2.1 BSD printers</a></h3><P CLASS="para">There are two steps you need to have a BSD Unix recognize a remote printer:</p><OL CLASS="orderedlist"> 63<LI CLASS="listitem"> 64<P CLASS="para"> 65<A CLASS="listitem" NAME="ch07-pgfId-949817"> 66</a>Place an entry for the printer in the <I CLASS="filename"> 67/etc/printcap</i> file (or equivalent).</p></li><LI CLASS="listitem"> 68<P CLASS="para"> 69<A CLASS="listitem" NAME="ch07-pgfId-949818"> 70</a>Place a configuration file in the <I CLASS="filename"> 71/var/spool</i> directory for the printer.</p></li></ol><P CLASS="para"> 72First, edit your <I CLASS="filename"> 73/etc/printcap</i> file and add an entry for the remote printer. Note that the input filter (<CODE CLASS="literal">if</code>) entry needs to point to the <EM CLASS="emphasis"> 74smbprint</em> program if the machine is on Windows 95/98. The following set of lines will accomplish on a Linux machine, for example:</p><PRE CLASS="programlisting"> 75laserjet:\ 76 :sd=/var/spool/lpd/laser:\ <CODE CLASS="replaceable"> 77<I> 78# spool directory</i></code> 79 :mx#0:\ <CODE CLASS="replaceable"> 80<I> 81# maximum file size (none)</i></code> 82 :sh:\ <CODE CLASS="replaceable"> 83<I> 84# surpress burst header (no)</i></code> 85 :if=/usr/local/samba/bin/smbprint: <CODE CLASS="replaceable"> 86<I> 87# text filter</i></code></pre><P CLASS="para"> 88After that, you need to create a configuration file in the spool directory that you specified with the <CODE CLASS="literal"> 89sd</code> parameter above. (You may need to create that directory.) The file must have the name <EM CLASS="emphasis"> 90.config</em> and should contain the following information: </p><UL CLASS="itemizedlist"> 91<LI CLASS="listitem"> 92<P CLASS="para"> 93<A CLASS="listitem" NAME="ch07-pgfId-954773"> 94</a>The NetBIOS name of the Windows machine with the printer</p></li><LI CLASS="listitem"> 95<P CLASS="para"> 96<A CLASS="listitem" NAME="ch07-pgfId-954774"> 97</a>The service name that represents the printer</p></li><LI CLASS="listitem"> 98<P CLASS="para"> 99<A CLASS="listitem" NAME="ch07-pgfId-954775"> 100</a>The password used to access that service</p></li></ul><P CLASS="para"> 101The last two parameters were set up in the Sharing dialog for the requested resource on the Windows machine. In this case, the <EM CLASS="emphasis"> 102.config</em> file would have three lines:</p><PRE CLASS="programlisting"> 103server = phoenix 104service = CANON 105password = ""</pre><P CLASS="para"> 106After you've done that, reset the Samba server machine and try printing to it using any standard Unix program.</p></div><DIV CLASS="sect2"> 107<H3 CLASS="sect2"> 108<A CLASS="title" NAME="ch07-pgfId-949855"> 1097.2.2 System V printers</a></h3><P CLASS="para">Sending print jobs from a System V Unix system is a little easier. Here, you need to get obtain the <I CLASS="filename"> 110smbprint.sysv</i> script in the <I CLASS="filename"> 111/usr/local/samba/examples/printing</i> directory and do the following:</p><OL CLASS="orderedlist"> 112<LI CLASS="listitem"> 113<P CLASS="para"> 114<A CLASS="listitem" NAME="ch07-pgfId-949865"> 115</a>Change the <CODE CLASS="literal"> 116server</code>, <CODE CLASS="literal"> 117service</code>, and <CODE CLASS="literal"> 118password</code> parameters in the script to match the NetBIOS machine, its shared printer service, and its password, respectively. For example, the following entries would be correct for the service in the previous example:</p></li></ol><PRE CLASS="programlisting"> 119server = phoenix 120service = CANON 121password = ""</pre><OL CLASS="orderedlist" START="2"> 122<LI CLASS="listitem"> 123<P CLASS="para"> 124<A CLASS="listitem" NAME="ch07-pgfId-949876"> 125</a>Run the following commands, which create a reference for the printer in the printer capabilities file. Note that the new Unix printer entry <CODE CLASS="literal">canon_printer</code> is named:</p></li></ol><PRE CLASS="programlisting"> 126# lpadmin -p canon_printer -v /dev/null -i ./smbprint.sysv 127# enable canon_printer 128# accept canon_printer</pre><P CLASS="para"> 129After you've done that, restart the Samba daemons and try printing to it using any standard Unix program. You should now be able to send data to a printer on a Windows client across the network.</p></div><DIV CLASS="sect2"> 130<H3 CLASS="sect2"> 131<A CLASS="title" NAME="ch07-pgfId-950287"> 1327.2.3 Samba Printing Options</a></h3><P CLASS="para"> 133<A CLASS="xref" HREF="ch07_02.html#ch07-19361">Table 7.2</a> summarizes the Samba printing options. </p><br> 134<TABLE CLASS="table" BORDER="1" CELLPADDING="3"> 135<CAPTION CLASS="table"> 136<A CLASS="title" NAME="ch07-19361"> 137Table 7.2: Printing Configuration Options </a></caption><THEAD CLASS="thead"> 138<TR CLASS="row" VALIGN="TOP"> 139<TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 140<P CLASS="para"> 141Option</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 142<P CLASS="para"> 143Parameters</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 144<P CLASS="para"> 145Function</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 146<P CLASS="para"> 147Default</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 148<P CLASS="para"> 149Scope</p></th></tr></thead><TBODY CLASS="tbody"> 150<TR CLASS="row" VALIGN="TOP"> 151<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 152<P CLASS="para"> 153<CODE CLASS="literal"> 154printing</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 155<P CLASS="para"> 156<CODE CLASS="literal"> 157bsd</code>, <CODE CLASS="literal"> 158sysv</code>, <CODE CLASS="literal"> 159hpux</code>, <CODE CLASS="literal"> 160aix</code>, <CODE CLASS="literal"> 161qnx</code>, <CODE CLASS="literal"> 162plp</code>, <CODE CLASS="literal"> 163softq</code>, or <CODE CLASS="literal"> 164lprng</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 165<P CLASS="para"> 166Sets the print system type for your Unix system.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 167<P CLASS="para"> 168System dependent</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 169<P CLASS="para"> 170Share</p></td></tr><TR CLASS="row" VALIGN="TOP"> 171<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 172<P CLASS="para"> 173<CODE CLASS="literal"> 174printable (print ok)</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 175<P CLASS="para"> 176boolean</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 177<P CLASS="para"> 178Marks a share as a printing share.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 179<P CLASS="para"> 180<CODE CLASS="literal"> 181no</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 182<P CLASS="para"> 183Share</p></td></tr><TR CLASS="row" VALIGN="TOP"> 184<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 185<P CLASS="para"> 186<CODE CLASS="literal"> 187printer (printer name)</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 188<P CLASS="para"> 189string (Unix printer name)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 190<P CLASS="para"> 191Sets the name of the printer to be shown to clients.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 192<P CLASS="para"> 193System dependent</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 194<P CLASS="para"> 195Share</p></td></tr><TR CLASS="row" VALIGN="TOP"> 196<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 197<P CLASS="para"> 198<CODE CLASS="literal"> 199printer driver</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 200<P CLASS="para"> 201string (printer driver name)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 202<P CLASS="para"> 203Sets the driver name that should be used by the client to send data to the printer.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 204<P CLASS="para"> 205None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 206<P CLASS="para"> 207Share</p></td></tr><TR CLASS="row" VALIGN="TOP"> 208<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 209<P CLASS="para"> 210<CODE CLASS="literal"> 211printer driver file</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 212<P CLASS="para"> 213string (fully-qualified pathname)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 214<P CLASS="para"> 215Sets the name of the printer driver file.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 216<P CLASS="para"> 217None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 218<P CLASS="para"> 219Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 220<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 221<P CLASS="para"> 222<CODE CLASS="literal"> 223printer driver location</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 224<P CLASS="para"> 225string (network pathname)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 226<P CLASS="para"> 227Specifies the pathname of the share for the printer driver file.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 228<P CLASS="para"> 229None</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 230<P CLASS="para"> 231Share</p></td></tr><TR CLASS="row" VALIGN="TOP"> 232<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 233<P CLASS="para"> 234<CODE CLASS="literal"> 235lpq cache time</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 236<P CLASS="para"> 237numeric (time in seconds)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 238<P CLASS="para"> 239Sets the amount of time in seconds that Samba will cache the lpq status.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 240<P CLASS="para"> 241<CODE CLASS="literal"> 24210</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 243<P CLASS="para"> 244Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 245<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 246<P CLASS="para"> 247<CODE CLASS="literal"> 248postscript</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 249<P CLASS="para"> 250boolean</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 251<P CLASS="para"> 252Treats all print jobs sent as postscript by prepending <CODE CLASS="literal"> 253%!</code> at the beginning of each file.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 254<P CLASS="para"> 255<CODE CLASS="literal"> 256no</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 257<P CLASS="para"> 258Share</p></td></tr><TR CLASS="row" VALIGN="TOP"> 259<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 260<P CLASS="para"> 261<CODE CLASS="literal"> 262load printers</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 263<P CLASS="para"> 264boolean</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 265<P CLASS="para"> 266Automatically loads each of the printers in the <EM CLASS="emphasis"> 267printcap</em> file as printing shares.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 268<P CLASS="para"> 269<CODE CLASS="literal"> 270no</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 271<P CLASS="para"> 272Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 273<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 274<P CLASS="para"> 275<CODE CLASS="literal"> 276print command</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 277<P CLASS="para"> 278string (shell command)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 279<P CLASS="para"> 280Sets the Unix command to perform printing.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 281<P CLASS="para"> 282See below</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 283<P CLASS="para"> 284Share</p></td></tr><TR CLASS="row" VALIGN="TOP"> 285<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 286<P CLASS="para"> 287<CODE CLASS="literal"> 288lpq command</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 289<P CLASS="para"> 290string (shell command)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 291<P CLASS="para"> 292Sets the Unix command to return the status of the printing queue.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 293<P CLASS="para"> 294See below</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 295<P CLASS="para"> 296Share</p></td></tr><TR CLASS="row" VALIGN="TOP"> 297<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 298<P CLASS="para"> 299<CODE CLASS="literal"> 300lprm command</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 301<P CLASS="para"> 302string (shell command)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 303<P CLASS="para"> 304Sets the Unix command to remove a job from the printing queue.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 305<P CLASS="para"> 306See below</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 307<P CLASS="para"> 308Share</p></td></tr><TR CLASS="row" VALIGN="TOP"> 309<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 310<P CLASS="para"> 311<CODE CLASS="literal"> 312lppause command</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 313<P CLASS="para"> 314string (shell command)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 315<P CLASS="para"> 316Sets the Unix command to pause a job on the printing queue.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 317<P CLASS="para"> 318See below</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 319<P CLASS="para"> 320Share</p></td></tr><TR CLASS="row" VALIGN="TOP"> 321<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 322<P CLASS="para"> 323<CODE CLASS="literal"> 324lpresume command</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 325<P CLASS="para"> 326string (shell command)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 327<P CLASS="para"> 328Sets the Unix command to resume a paused job on the printing queue.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 329<P CLASS="para"> 330See below</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 331<P CLASS="para"> 332Share</p></td></tr><TR CLASS="row" VALIGN="TOP"> 333<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 334<P CLASS="para"> 335<CODE CLASS="literal"> 336printcap name</code></p><P CLASS="para"> 337<CODE CLASS="literal"> 338(printcap)</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 339<P CLASS="para"> 340string (fully-qualified pathname)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 341<P CLASS="para"> 342Specifies the location of the printer capabilities file.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 343<P CLASS="para"> 344System dependent</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 345<P CLASS="para"> 346Global</p></td></tr><TR CLASS="row" VALIGN="TOP"> 347<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 348<P CLASS="para"> 349<CODE CLASS="literal"> 350min print space</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 351<P CLASS="para"> 352numeric (size in kilobytes)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 353<P CLASS="para"> 354Sets the minimum amount of disk free space that must be present to print.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 355<P CLASS="para"> 356<CODE CLASS="literal"> 3570</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 358<P CLASS="para"> 359Share</p></td></tr><TR CLASS="row" VALIGN="TOP"> 360<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 361<P CLASS="para"> 362<CODE CLASS="literal"> 363queuepause command</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 364<P CLASS="para"> 365string (shell command)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 366<P CLASS="para"> 367Sets the Unix command to pause a queue.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 368<P CLASS="para"> 369See below</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 370<P CLASS="para"> 371Share</p></td></tr><TR CLASS="row" VALIGN="TOP"> 372<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 373<P CLASS="para"> 374<CODE CLASS="literal"> 375queueresume command</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 376<P CLASS="para"> 377string (shell command)</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 378<P CLASS="para"> 379Sets the Unix command to resume a queue.</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 380<P CLASS="para"> 381See below</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 382<P CLASS="para"> 383Share</p></td></tr></tbody></table><DIV CLASS="sect3"> 384<H4 CLASS="sect3"> 385<A CLASS="title" NAME="ch07-pgfId-950502"> 3867.2.3.1 printing</a></h4><P CLASS="para"> 387The <CODE CLASS="literal"> 388printing</code> configuration option tells Samba a little about your Unix printing system, in this case which printing parser to use. With Unix, there are several different families of commands to control printing and print statusing. Samba supports seven different types, as shown in <A CLASS="xref" HREF="ch07_02.html#ch07-28758"> 389Table 7.3</a>. </p><br> 390<TABLE CLASS="table" BORDER="1" CELLPADDING="3"> 391<CAPTION CLASS="table"> 392<A CLASS="title" NAME="ch07-28758"> 393Table 7.3: Printing Types </a></caption><THEAD CLASS="thead"> 394<TR CLASS="row" VALIGN="TOP"> 395<TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 396<P CLASS="para"> 397Variable</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 398<P CLASS="para"> 399Definition</p></th></tr></thead><TBODY CLASS="tbody"> 400<TR CLASS="row" VALIGN="TOP"> 401<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 402<P CLASS="para"> 403BSD</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 404<P CLASS="para">Berkeley Unix system</p></td></tr><TR CLASS="row" VALIGN="TOP"> 405<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 406<P CLASS="para"> 407SYSV</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 408<P CLASS="para"> 409System V</p></td></tr><TR CLASS="row" VALIGN="TOP"> 410<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 411<P CLASS="para"> 412AIX</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 413<P CLASS="para"> 414AIX Operating System (IBM)</p></td></tr><TR CLASS="row" VALIGN="TOP"> 415<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 416<P CLASS="para"> 417HPUX</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 418<P CLASS="para"> 419Hewlett-Packard Unix </p></td></tr><TR CLASS="row" VALIGN="TOP"> 420<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 421<P CLASS="para"> 422QNX</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 423<P CLASS="para"> 424QNX Realtime Operating System (QNX)</p></td></tr><TR CLASS="row" VALIGN="TOP"> 425<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 426<P CLASS="para"> 427LPRNG</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 428<P CLASS="para"> 429LPR Next Generation (Powell)</p></td></tr><TR CLASS="row" VALIGN="TOP"> 430<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 431<P CLASS="para"> 432SOFTQ</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 433<P CLASS="para"> 434SOFTQ system</p></td></tr><TR CLASS="row" VALIGN="TOP"> 435<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 436<P CLASS="para"> 437PLP</p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 438<P CLASS="para"> 439Portable Line Printer (Powell)</p></td></tr></tbody></table><P CLASS="para"> 440The value for this optio.n will be one of these seven options. For example:</p><PRE CLASS="programlisting"> 441printing = SYSV</pre><P CLASS="para"> 442The default value of this option is system dependent and is configured when Samba is first compiled. For most systems, the <I CLASS="filename"> 443configure</i> script will automatically detect the printing system to be used and configure it properly in the Samba makefile. However, if your system is a PLP, LPRNG, or QNX printing system, you will need to explicitly specify this in the makefile or the printing share.</p><P CLASS="para"> 444The most common system types are BSD and SYSV. Each of the printers on a BSD Unix server are described in the printer capabilities file - normally <I CLASS="filename"> 445/etc/printcap</i>.</p><P CLASS="para"> 446Setting the <CODE CLASS="literal"> 447printing</code> configuration option automatically sets at least three other printing options for the service in question: <CODE CLASS="literal"> 448print</code> <CODE CLASS="literal"> 449command</code>, <CODE CLASS="literal"> 450lpq</code> <CODE CLASS="literal"> 451command</code>, and <CODE CLASS="literal"> 452lprm</code> <CODE CLASS="literal"> 453command</code>. If you are running Samba on a system that doesn't support any of these printing styles, simply set the commands for each of these manually.</p></div><DIV CLASS="sect3"> 454<H4 CLASS="sect3"> 455<A CLASS="title" NAME="ch07-pgfId-950507"> 4567.2.3.2 printable</a></h4><P CLASS="para"> 457The printable option must be set to <CODE CLASS="literal"> 458yes</code> in order to flag a share as a printing service. If this option is not set, the share will be treated as a disk share instead. You can set the option as follows:</p><PRE CLASS="programlisting"> 459[printer1] 460 printable = yes</pre></div><DIV CLASS="sect3"> 461<H4 CLASS="sect3"> 462<A CLASS="title" NAME="ch07-pgfId-950511"> 4637.2.3.3 printer</a></h4><P CLASS="para">The option, sometimes called <CODE CLASS="literal"> 464printer</code> <CODE CLASS="literal"> 465name</code>, specifies the name of the printer on the server to which the share points. This option has no default and should be set explicitly in the configuration file, even though Unix systems themselves often recognize a default name such as <CODE CLASS="literal"> 466lp</code> for a printer. For example:</p><PRE CLASS="programlisting"> 467[deskjet] 468 printer = hpdkjet1</pre></div><DIV CLASS="sect3"> 469<H4 CLASS="sect3"> 470<A CLASS="title" NAME="ch07-pgfId-950515"> 4717.2.3.4 printer driver</a></h4><P CLASS="para"> 472The <CODE CLASS="literal"> 473printer</code> <CODE CLASS="literal"> 474driver</code> option sets the string that Samba uses to tell Windows what the printer is. If this option is set correctly, the Windows Printer Wizard will already know what the printer is, making installation easier for end users by giving them one less dialog to worry about. The string given should match the string that shows up in the Printer Wizard, as shown in <A CLASS="xref" HREF="ch07_02.html#ch07-46183"> 475Figure 7.9</a>. For example, an Apple LaserWriter typically uses <CODE CLASS="literal"> 476Apple</code> <CODE CLASS="literal">LaserWriter</code>; a Hewlett Packard Deskjet 560C uses <CODE CLASS="literal"> 477HP</code> <CODE CLASS="literal"> 478DeskJet</code> <CODE CLASS="literal"> 479560C</code> <CODE CLASS="literal"> 480Printer</code>. </p><H4 CLASS="figure"> 481<A CLASS="title" NAME="ch07-46183"> 482Figure 7.9: The Add Printer Wizard dialog box in Windows 98</a></h4><IMG CLASS="graphic" SRC="figs/sam.0709.gif" ALT="Figure 7.9"><P CLASS="para"> 483Automatically configuring printer drivers with Samba is explained in greater detail in the section <A CLASS="xref" HREF="ch07_01.html#ch07-30008"> 484Section 7.1.7, Automatically Setting Up Printer Drivers</a>, earlier in this chapter.</p></div><DIV CLASS="sect3"> 485<H4 CLASS="sect3"> 486<A CLASS="title" NAME="ch07-pgfId-954814"> 4877.2.3.5 printer driver file</a></h4><P CLASS="para"> 488This global option gives the location of the Windows 95/98 printer driver definition file, which is needed to give printer drivers to clients using a Samba printer. The default value of this option is <I CLASS="filename"> 489/usr/local/samba/lib/printers.def</i>. You can override this default as shown below:</p><PRE CLASS="programlisting"> 490[deskjet] 491 printer driver file = /var/printers/printers.def</pre><P CLASS="para"> 492This option is explained in greater detail in the section <A CLASS="xref" HREF="ch07_01.html#ch07-30008"> 493Section 7.1.7</a>, earlier in this chapter.</p></div><DIV CLASS="sect3"> 494<H4 CLASS="sect3"> 495<A CLASS="title" NAME="ch07-pgfId-950552"> 4967.2.3.6 printer driver location</a></h4><P CLASS="para"> 497This option specifies a specific share that contains Windows 95 and 98 printer driver and definition files. There is no default parameter for this value. You can specify the location as a network pathname. A frequent approach is to use a share on your own machine, as shown here:</p><PRE CLASS="programlisting"> 498[deskjet] 499 printer driver location = \\%L\PRINTER$</pre><P CLASS="para"> 500This option is also explained in greater detail in the section <A CLASS="xref" HREF="ch07_01.html#ch07-30008"> 501Section 7.1.7</a>, earlier in this chapter. </p></div><DIV CLASS="sect3"> 502<H4 CLASS="sect3"> 503<A CLASS="title" NAME="ch07-pgfId-950560"> 5047.2.3.7 lpq cache time</a></h4><P CLASS="para">The global <CODE CLASS="literal"> 505lpq</code> <CODE CLASS="literal"> 506cache</code> <CODE CLASS="literal"> 507time</code> option allows you to set the number of seconds that Samba will remember the current printer status. After this time elapses, Samba will issue an <EM CLASS="emphasis"> 508lpq</em> command (or whatever command you specify with the <CODE CLASS="literal"> 509lpq</code> <CODE CLASS="literal"> 510command</code> option) to get a more up-to-date status. This defaults to 10 seconds, but can be increased if your <CODE CLASS="literal"> 511lpq</code> <CODE CLASS="literal"> 512command</code> takes an unusually long time to run or you have lots of clients. The following example resets the time to 30 seconds:</p><PRE CLASS="programlisting"> 513[deskjet] 514 lpq cache time = 30</pre></div><DIV CLASS="sect3"> 515<H4 CLASS="sect3"> 516<A CLASS="title" NAME="ch07-pgfId-950564"> 5177.2.3.8 postscript</a></h4><P CLASS="para"> 518The <CODE CLASS="literal"> 519postscript</code> option forces the printer to treat all data sent to it as Postscript. It does this by prepending the characters <CODE CLASS="literal"> 520%!</code> at the beginning of the first line of each job. It is normally used with PCs that insert a <CODE CLASS="literal"> 521^D</code> (control-D or end-of-file mark) in front of the first line of a PostScript file. It will not, obviously, turn a non-PostScript printer into a PostScript one. The default value of this options is <CODE CLASS="literal"> 522no</code>. You can override it as follows:</p><PRE CLASS="programlisting">[deskjet] 523 postscript = yes</pre></div><DIV CLASS="sect3"> 524<H4 CLASS="sect3"> 525<A CLASS="title" NAME="ch07-pgfId-950568"> 5267.2.3.9 print command, lpq command, lprm command, lppause command, lpresume command</a></h4><P CLASS="para">These options tell Samba which Unix commands used to control and send data to the printer. The Unix commands involved are: <EM CLASS="emphasis"> 527lpr</em> (send to Line PRinter), <EM CLASS="emphasis"> 528lpq</em> (List Printer Queue), <EM CLASS="emphasis"> 529lprm</em> (Line printer ReMove), and optionally <EM CLASS="emphasis"> 530lppause</em> and <EM CLASS="emphasis"> 531lpresume</em>. Samba provides an option named after each of these commands, in case you need to override any of the system defaults. For example, consider:</p><PRE CLASS="programlisting"> 532lpq command = /usr/ucb/lpq %p</pre><P CLASS="para"> 533This would set the <CODE CLASS="literal"> 534lpq command</code> to use <I CLASS="filename"> 535/usr/ucb/lpq</i>. Similarly:</p><PRE CLASS="programlisting"> 536lprm command = /usr/local/lprm -P%p %j</pre><P CLASS="para"> 537would set the Samba printer remove command to <I CLASS="filename"> 538/usr/local/lprm</i>, and provide it the print job number using the <CODE CLASS="literal"> 539%j</code> variable.</p><P CLASS="para"> 540The default values for each of these options are dependent on the value of the <CODE CLASS="literal"> 541printing</code> option. <A CLASS="xref" HREF="ch07_02.html#ch07-82964"> 542Table 7.4</a> shows the default commands for each of the printing options. The most popular printing system is BSD. </p><br> 543<TABLE CLASS="table" BORDER="1" CELLPADDING="3"> 544<CAPTION CLASS="table"> 545<A CLASS="title" NAME="ch07-82964"> 546Table 7.4: Default Commands for Various Printing Commands </a></caption><THEAD CLASS="thead"> 547<TR CLASS="row" VALIGN="TOP"> 548<TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 549<P CLASS="para"> 550Option</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 551<P CLASS="para"> 552BSD, AIX, PLP, LPRNG</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 553<P CLASS="para"> 554SYSV, HPUX</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 555<P CLASS="para"> 556QNX</p></th><TH CLASS="entry" ALIGN="LEFT" ROWSPAN="1" COLSPAN="1"> 557<P CLASS="para"> 558SOFTQ</p></th></tr></thead><TBODY CLASS="tbody"> 559<TR CLASS="row" VALIGN="TOP"> 560<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 561<P CLASS="para"> 562<CODE CLASS="literal"> 563print command</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 564<CODE CLASS="literal"> 565lpr -r -P%p %s</code></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 566<CODE CLASS="literal">lp -c -d%p %s; rm %s</code></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 567<CODE CLASS="literal"> 568lp -r -P%p %s</code></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 569<CODE CLASS="literal"> 570lp -d%p -s %s; rm %s</code></td></tr><TR CLASS="row" VALIGN="TOP"> 571<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 572<P CLASS="para"> 573<CODE CLASS="literal"> 574lpq command</code></p></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 575<CODE CLASS="literal"> 576lpq -P%p</code></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 577<CODE CLASS="literal"> 578lpstat -o%p</code></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 579<CODE CLASS="literal"> 580lpq -P%p</code></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 581<CODE CLASS="literal"> 582lpstat -o%p</code></td></tr><TR CLASS="row" VALIGN="TOP"> 583<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 584<CODE CLASS="literal"> 585lprm command</code></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 586<CODE CLASS="literal"> 587lprm -P%p %j</code></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 588<CODE CLASS="literal"> 589cancel %p-%j</code></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 590<CODE CLASS="literal"> 591cancel %p-%j</code></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 592<CODE CLASS="literal"> 593cancel %p-%j</code></td></tr><TR CLASS="row" VALIGN="TOP"> 594<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 595<CODE CLASS="literal"> 596lppause command</code></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 597<CODE CLASS="literal"> 598lp -i %p-%j -H hold </code>(SYSV only)</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 599None</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 600None</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 601None</td></tr><TR CLASS="row" VALIGN="TOP"> 602<TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 603<CODE CLASS="literal"> 604lpresume command</code></td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 605<CODE CLASS="literal"> 606lp -i %p-%j -H resume</code>(SYSV only)</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 607None</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 608None</td><TD CLASS="entry" ROWSPAN="1" COLSPAN="1"> 609<CODE CLASS="literal"> 610qstat -s -j%j -r</code> 611</td></tr></tbody></table><P CLASS="para"> 612It is typically not necessary to reset these options in Samba, with the possible exception of <CODE CLASS="literal"> 613print</code> <CODE CLASS="literal"> 614command</code>. This option may need to be explicitly set if your printing system doesn't have a <CODE CLASS="literal"> 615-r</code> (remove after printing) option on the printing command. For example: </p><PRE CLASS="programlisting"> 616/usr/local/lpr -P%p %s; /bin/rm %s</pre><P CLASS="para"> 617With a bit of judicious programming, these <I CLASS="filename"> 618smb.conf</i> options can also used for debugging:</p><PRE CLASS="programlisting"> 619print command = cat %s >>/tmp/printlog; lpr -r -P%p %s</pre><P CLASS="para"> 620For example, this configuration can verify that files are actually being delivered to the Samba server. If they are, their contents will show up in the <I CLASS="filename"> 621/tmp/printlog</i> file.</p><P CLASS="para"> 622After BSD, the next most popular kind of printing system is SYSV (or System V) printing, plus some SYSV variants for IBM's AIX and Hewlett-Packard's HP-UX. These system do not have an <I CLASS="filename"> 623/etc/printcap</i> file. Instead, the <CODE CLASS="literal"> 624printcap</code> <CODE CLASS="literal"> 625file</code> option can be set to an appropriate <EM CLASS="emphasis"> 626lpstat</em> command for the system. This tells Samba to get a list of printers from the <EM CLASS="emphasis"> 627lpstat</em> command. Alternatively, you can set the global configuration option <CODE CLASS="literal"> 628printcap</code> <CODE CLASS="literal"> 629name</code> to the name of a dummy <I CLASS="filename"> 630printcap</i> file you provide. In the latter case, the file must contain a series of lines such as:</p><PRE CLASS="programlisting"> 631lp|print1|My Printer 1 632print2|My Printer 2 633print3|My Printer 3</pre><P CLASS="para"> 634Each line names a printer, and provides aliases for it. In this example, the first printer is called <CODE CLASS="literal"> 635lp</code>, <CODE CLASS="literal"> 636print1</code>, or <CODE CLASS="literal"> 637My</code> <CODE CLASS="literal"> 638Printer</code> <CODE CLASS="literal"> 6391</code>, whichever the user prefers to use. The first name will be used in place of <CODE CLASS="literal"> 640%p</code> in any command Samba executes for that printer.</p><P CLASS="para"> 641Two additional printer types are also supported by Samba: LPRNG (LPR New Generation) and PLP (Public Line Printer). These are public domain and Open Source printing systems, and are used by many sites to overcome problems with vendor-supplied software. In addition, the SOFTQ and QNX realtime operating systems are supported by Samba.</p></div><DIV CLASS="sect3"> 642<H4 CLASS="sect3"> 643<A CLASS="title" NAME="ch07-pgfId-950650"> 6447.2.3.10 load printers</a></h4><P CLASS="para">The <CODE CLASS="literal"> 645load</code> <CODE CLASS="literal"> 646printers</code> option tells Samba to create shares for all known printer names and load those shares into the browse list. Samba will create and list a printer share for each printer name in <I CLASS="filename"> 647/etc/printcap</i> (or system equivalent). For example, if your <I CLASS="filename"> 648printcap</i> file looks like this:[<A CLASS="footnote" HREF="#ch07-pgfId-950654">2</a>]</p><BLOCKQUOTE CLASS="footnote"> 649<DIV CLASS="footnote"> 650<P CLASS="para"> 651<A CLASS="footnote" NAME="ch07-pgfId-950654">[2]</a> We have placed annotated comments off to the side in case you've never dealt with this file before.</p></div></blockquote><PRE CLASS="programlisting"> 652lp:\ 653 :sd=/var/spool/lpd/lp:\ <CODE CLASS="replaceable"> 654<I> 655# spool directory</i></code> 656 :mx#0:\ <CODE CLASS="replaceable"> 657<I> 658# maximum file size (none)</i></code> 659 :sh:\ <CODE CLASS="replaceable"> 660<I> 661# surpress burst header (no)</i></code> 662 :lp=/dev/lp1:\ <CODE CLASS="replaceable"> 663<I> 664# device name for output</i></code> 665 :if=/var/spool/lpd/lp/filter: <CODE CLASS="replaceable"> 666<I> 667# text filter</i></code> 668 669laser:\ 670 :sd=/var/spool/lpd/laser:\ <CODE CLASS="replaceable"> 671<I> 672# spool directory</i></code> 673 :mx#0:\ <CODE CLASS="replaceable"> 674<I> 675# maximum file size (none)</i></code> 676 :sh:\ <CODE CLASS="replaceable"> 677<I> 678# surpress burst header (no)</i></code> 679 :lp=/dev/laser:\ <CODE CLASS="replaceable"> 680<I> 681# device name for output</i></code> 682 :if=/var/spool/lpd/lp/filter: <CODE CLASS="replaceable"> 683<I> 684# text filter</i></code></pre><P CLASS="para"> 685and you specify:</p><PRE CLASS="programlisting"> 686load printers = yes</pre><P CLASS="para"> 687the shares <CODE CLASS="literal"> 688[lp]</code> and <CODE CLASS="literal"> 689[laser]</code> will automatically be created as valid print shares when Samba is started. Both shares will borrow the configuration options specified in the <CODE CLASS="literal"> 690[printers]</code> section to configure themselves, and will be available in the browse list for the Samba server.</p></div><DIV CLASS="sect3"> 691<H4 CLASS="sect3"> 692<A CLASS="title" NAME="ch07-pgfId-950671"> 6937.2.3.11 printcap name</a></h4><P CLASS="para"> 694If the <CODE CLASS="literal"> 695printcap</code> <CODE CLASS="literal"> 696name</code> option (also called <CODE CLASS="literal"> 697printcap</code>) appears in a printing share, Samba will use the file specified as the system printer capabilities file. This is normally <I CLASS="filename"> 698/etc/printcap</i>. However, you can reset it to a file consisting of only the printers you want to share over the network. The value must be a fully-qualified filename of a printer capabilities file on the server:</p><PRE CLASS="programlisting"> 699[deskjet] 700 printcap name = /usr/local/printcap</pre></div><DIV CLASS="sect3"> 701<H4 CLASS="sect3"> 702<A CLASS="title" NAME="ch07-pgfId-950678"> 7037.2.3.12 min print space</a></h4><P CLASS="para"> 704The <CODE CLASS="literal"> 705min</code> <CODE CLASS="literal"> 706print</code> <CODE CLASS="literal"> 707space</code> option sets the amount of spool space that must be available on the disk before printing is allowed. Setting it to zero (the default) turns the check off; setting it to any other number sets the amount of free space in kilobytes required. This option helps avoid having print jobs fill up the remaining disk space on the server, which may cause other processes to fail:</p><PRE CLASS="programlisting"> 708[deskjet] 709 min print space = 4000</pre></div><DIV CLASS="sect3"> 710<H4 CLASS="sect3"> 711<A CLASS="title" NAME="ch07-pgfId-950682"> 7127.2.3.13 queuepause command</a></h4><P CLASS="para"> 713This configuration option specifies a command that tells Samba how to pause a print queue entirely, as opposed to a single job on the queue. The default value depends on the printing type chosen. You should not need to alter this option.</p></div><DIV CLASS="sect3"> 714<H4 CLASS="sect3"> 715<A CLASS="title" NAME="ch07-pgfId-950684"> 7167.2.3.14 queueresume command</a></h4><P CLASS="para"> 717This configuration option specifies a command that tells Samba how to resume a paused print queue, as opposed to resuming a single job on the print queue. The default value depends on the printing type chosen. You should not need to alter this option. </p></div></div></div></blockquote> 718<div> 719<center> 720<hr noshade size=1><TABLE WIDTH="515" BORDER="0" CELLSPACING="0" CELLPADDING="0"> 721<TR> 722<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172"> 723<A CLASS="sect1" HREF="ch07_01.html" TITLE="7.1 Sending Print Jobs to Samba"> 724<IMG SRC="gifs/txtpreva.gif" ALT="Previous: 7.1 Sending Print Jobs to Samba" BORDER="0"></a></td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 725<A CLASS="book" HREF="index.html" TITLE=""> 726<IMG SRC="gifs/txthome.gif" ALT="" BORDER="0"></a></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 727<A CLASS="sect1" HREF="ch07_03.html" TITLE="7.3 Name Resolution with Samba"> 728<IMG SRC="gifs/txtnexta.gif" ALT="Next: 7.3 Name Resolution with Samba" BORDER="0"></a></td></tr><TR> 729<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="172"> 7307.1 Sending Print Jobs to Samba</td><TD ALIGN="CENTER" VALIGN="TOP" WIDTH="171"> 731<A CLASS="index" HREF="inx.html" TITLE="Book Index"> 732<IMG SRC="gifs/index.gif" ALT="Book Index" BORDER="0"></a></td><TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="172"> 7337.3 Name Resolution with Samba</td></tr></table><hr noshade size=1></center> 734</div> 735 736<!-- End of sample chapter --> 737<CENTER> 738<FONT SIZE="1" FACE="Verdana, Arial, Helvetica"> 739<A HREF="http://www.oreilly.com/"> 740<B>O'Reilly Home</B></A> <B> | </B> 741<A HREF="http://www.oreilly.com/sales/bookstores"> 742<B>O'Reilly Bookstores</B></A> <B> | </B> 743<A HREF="http://www.oreilly.com/order_new/"> 744<B>How to Order</B></A> <B> | </B> 745<A HREF="http://www.oreilly.com/oreilly/contact.html"> 746<B>O'Reilly Contacts<BR></B></A> 747<A HREF="http://www.oreilly.com/international/"> 748<B>International</B></A> <B> | </B> 749<A HREF="http://www.oreilly.com/oreilly/about.html"> 750<B>About O'Reilly</B></A> <B> | </B> 751<A HREF="http://www.oreilly.com/affiliates.html"> 752<B>Affiliated Companies</B></A><p> 753<EM>© 1999, O'Reilly & Associates, Inc.</EM> 754</FONT> 755</CENTER> 756</BODY> 757</html> 758