strequal() returns True for equal, not an int
[Samba/bb.git] / docs / faq / faq-printing.html
bloba806b15de8d08a067eae76e4d18f8b75f2295ac3
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <HTML
3 ><HEAD
4 ><TITLE
5 >Printing problems</TITLE
6 ><META
7 NAME="GENERATOR"
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
9 REL="HOME"
10 TITLE="Samba FAQ"
11 HREF="samba-faq.html"><LINK
12 REL="PREVIOUS"
13 TITLE="Features"
14 HREF="faq-features.html"></HEAD
15 ><BODY
16 CLASS="CHAPTER"
17 BGCOLOR="#FFFFFF"
18 TEXT="#000000"
19 LINK="#0000FF"
20 VLINK="#840084"
21 ALINK="#0000FF"
22 ><DIV
23 CLASS="NAVHEADER"
24 ><TABLE
25 SUMMARY="Header navigation table"
26 WIDTH="100%"
27 BORDER="0"
28 CELLPADDING="0"
29 CELLSPACING="0"
30 ><TR
31 ><TH
32 COLSPAN="3"
33 ALIGN="center"
34 >Samba FAQ</TH
35 ></TR
36 ><TR
37 ><TD
38 WIDTH="10%"
39 ALIGN="left"
40 VALIGN="bottom"
41 ><A
42 HREF="faq-features.html"
43 ACCESSKEY="P"
44 >Prev</A
45 ></TD
46 ><TD
47 WIDTH="80%"
48 ALIGN="center"
49 VALIGN="bottom"
50 ></TD
51 ><TD
52 WIDTH="10%"
53 ALIGN="right"
54 VALIGN="bottom"
55 >&nbsp;</TD
56 ></TR
57 ></TABLE
58 ><HR
59 ALIGN="LEFT"
60 WIDTH="100%"></DIV
61 ><DIV
62 CLASS="CHAPTER"
63 ><H1
64 ><A
65 NAME="FAQ-PRINTING"
66 ></A
67 >Chapter 7. Printing problems</H1
68 ><DIV
69 CLASS="SECT1"
70 ><H1
71 CLASS="SECT1"
72 ><A
73 NAME="AEN359"
74 >7.1. setdriver or cupsaddsmb failes</A
75 ></H1
76 ><P
77 >setdriver expects the following setup:
80 ></P
81 ><TABLE
82 BORDER="0"
83 ><TBODY
84 ><TR
85 ><TD
86 >you are a printer admin, or root. this is the smb.conf printer admin group, not the Printer Operators group in NT. I've not tried the latter, but I don't believe it will work based on the current code.</TD
87 ></TR
88 ><TR
89 ><TD
90 >printer admins has to be defined in [global]</TD
91 ></TR
92 ><TR
93 ><TD
94 >upload the driver files to \\server\print$\w32x86 and win40 as appropriate. DON'T put them in the 0 or 2 subdirectories.</TD
95 ></TR
96 ><TR
97 ><TD
98 >Make sure that the user you're connecting as is able to write to the print$ directories</TD
99 ></TR
100 ><TR
101 ><TD
102 >Use adddriver (with appropriate parameters) to create the driver. note, this will not just update samba's notion of drivers, it will also move the files from the w32x86 and win40 directories to an appropriate subdirectory (based on driver version, I think, but not important enough for me to find out)</TD
103 ></TR
104 ><TR
105 ><TD
106 >Use setdriver to associate the driver with a printer</TD
107 ></TR
108 ></TBODY
109 ></TABLE
111 ></P
112 ></P
114 >The setdriver call will fail if the printer doesn't already exist in
115 samba's view of the world. Either create the printer in cups and
116 restart samba, or create an add printer command (see smb.conf doco)
117 and use RPC calls to create a printer. NB the add printer command MUST
118 return a single line of text indicating which port the printer was
119 added on. If it doesn't, Samba won't reload the printer
120 definitions. Although samba doesn't really support the notion of
121 ports, suitable add printer command and enumport command settings can
122 allow you pretty good remote control of the samba printer setup.</P
123 ></DIV
124 ></DIV
125 ><DIV
126 CLASS="NAVFOOTER"
127 ><HR
128 ALIGN="LEFT"
129 WIDTH="100%"><TABLE
130 SUMMARY="Footer navigation table"
131 WIDTH="100%"
132 BORDER="0"
133 CELLPADDING="0"
134 CELLSPACING="0"
135 ><TR
136 ><TD
137 WIDTH="33%"
138 ALIGN="left"
139 VALIGN="top"
141 HREF="faq-features.html"
142 ACCESSKEY="P"
143 >Prev</A
144 ></TD
145 ><TD
146 WIDTH="34%"
147 ALIGN="center"
148 VALIGN="top"
150 HREF="samba-faq.html"
151 ACCESSKEY="H"
152 >Home</A
153 ></TD
154 ><TD
155 WIDTH="33%"
156 ALIGN="right"
157 VALIGN="top"
158 >&nbsp;</TD
159 ></TR
160 ><TR
161 ><TD
162 WIDTH="33%"
163 ALIGN="left"
164 VALIGN="top"
165 >Features</TD
166 ><TD
167 WIDTH="34%"
168 ALIGN="center"
169 VALIGN="top"
170 >&nbsp;</TD
171 ><TD
172 WIDTH="33%"
173 ALIGN="right"
174 VALIGN="top"
175 >&nbsp;</TD
176 ></TR
177 ></TABLE
178 ></DIV
179 ></BODY
180 ></HTML