1b9c852e60345cbfc00f029fb9654f19ad00ac1f
[kamenim/samba-autobuild/.git] / docs-xml / smbdotconf / printing / printcapname.xml
1 <samba:parameter name="printcap name"
2         context="G"
3         type="string"
4                  print="1" developer="1"
5                  generated_function="0"
6                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
7 <synonym>printcap</synonym>
8 <description>
9     <para>
10         This parameter may be used to override the compiled-in default printcap name used by the server (usually
11         <filename moreinfo="none"> /etc/printcap</filename>). See the discussion of the <link
12         linkend="PRINTERSSECT">[printers]</link> section above for reasons why you might want to do this.
13         </para>
14
15     <para>
16         To use the CUPS printing interface set <command moreinfo="none">printcap name = cups </command>. This should
17         be supplemented by an additional setting <smbconfoption name="printing">cups</smbconfoption> in the [global]
18         section.  <command moreinfo="none">printcap name = cups</command> will use the  &quot;dummy&quot; printcap
19         created by CUPS, as specified in your CUPS configuration file.
20     </para>
21
22     <para>
23         On System V systems that use <command moreinfo="none">lpstat</command> to 
24     list available printers you can use <command moreinfo="none">printcap name = lpstat
25     </command> to automatically obtain lists of available printers. This 
26     is the default for systems that define SYSV at configure time in 
27     Samba (this includes most System V based systems). If <parameter moreinfo="none">
28     printcap name</parameter> is set to <command moreinfo="none">lpstat</command> on 
29     these systems then Samba will launch <command moreinfo="none">lpstat -v</command> and 
30     attempt to parse the output to obtain a printer list.
31         </para>
32
33     <para>
34         A minimal printcap file would look something like this:
35 <programlisting format="linespecific">
36 print1|My Printer 1
37 print2|My Printer 2
38 print3|My Printer 3
39 print4|My Printer 4
40 print5|My Printer 5
41 </programlisting>
42     where the '|' separates aliases of a printer. The fact that the second alias has a space in
43         it gives a hint to Samba that it's a comment.
44         </para>
45
46     <note><para>
47         Under AIX the default printcap name is <filename moreinfo="none">/etc/qconfig</filename>. Samba will
48         assume the file is in AIX <filename moreinfo="none">qconfig</filename> format if the string <filename
49         moreinfo="none">qconfig</filename> appears in the printcap filename.
50         </para></note>
51
52 </description>
53         
54 <value type="default">/etc/printcap</value>
55 <value type="example">/etc/myprintcap</value>
56 </samba:parameter>