/[gentoo]/xml/htdocs/doc/en/quick-samba-howto.xml
Gentoo

Diff of /xml/htdocs/doc/en/quick-samba-howto.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.16 Revision 1.17
1<?xml version='1.0' encoding='UTF-8'?> 1<?xml version='1.0' encoding='UTF-8'?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/quick-samba-howto.xml,v 1.16 2005/02/07 19:02:37 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/quick-samba-howto.xml,v 1.17 2005/03/26 18:07:36 swift Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4<guide link="quick-samba-howto.xml"> 4<guide link="quick-samba-howto.xml">
5<title>Gentoo Samba3/CUPS/ClamAV HOWTO</title> 5<title>Gentoo Samba3/CUPS/ClamAV HOWTO</title>
6<author title="Author"> 6<author title="Author">
7 <mail link="daff at dword dot org">Andreas "daff" Ntaflos</mail> 7 <mail link="daff at dword dot org">Andreas "daff" Ntaflos</mail>
8</author> 8</author>
9<author title="Author"> 9<author title="Author">
10 <mail link="joshua@sungentoo.homeunix.com">Joshua Preston</mail> 10 <mail link="joshua@sungentoo.homeunix.com">Joshua Preston</mail>
11</author> 11</author>
12 12
13<abstract> 13<abstract>
14Setup, install and configure a Samba Server under Gentoo that shares 14Setup, install and configure a Samba Server under Gentoo that shares
15files, printers without the need to install drivers and provides 15files, printers without the need to install drivers and provides
16automatic virus scanning. 16automatic virus scanning.
17</abstract> 17</abstract>
18 18
19<!-- The content of this document is licensed under the CC-BY-SA license --> 19<!-- The content of this document is licensed under the CC-BY-SA license -->
20<!-- See http://creativecommons.org/licenses/by-sa/1.0 --> 20<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
21<license/> 21<license/>
22 22
23<version>1.11</version> 23<version>1.12</version>
24<date>2005-02-07</date> 24<date>2005-03-26</date>
25 25
26<chapter> 26<chapter>
27<title>Introduction to this HOWTO</title> 27<title>Introduction to this HOWTO</title>
28<section> 28<section>
29<title>Purpose</title> 29<title>Purpose</title>
30<body> 30<body>
31 31
32<p> 32<p>
33This HOWTO is designed to help you move a network from many different 33This HOWTO is designed to help you move a network from many different
34clients speaking different languages, to many different machines that 34clients speaking different languages, to many different machines that
35speak a common language. The ultimate goal is to help differing 35speak a common language. The ultimate goal is to help differing
36architectures and technologies, come together in a productive, 36architectures and technologies, come together in a productive,
37happily coexisting environment. 37happily coexisting environment.
38</p> 38</p>
39 39
147 <li>net-print/cups</li> 147 <li>net-print/cups</li>
148 <li>net-print/foomatic</li> 148 <li>net-print/foomatic</li>
149 <li>net-print/hpijs (if you have an HP printer)</li> 149 <li>net-print/hpijs (if you have an HP printer)</li>
150 <li>A kernel of sorts (preferably 2.4.24+ or 2.6.x)</li> 150 <li>A kernel of sorts (preferably 2.4.24+ or 2.6.x)</li>
151 <li>A printer (PS or non-PS, maybe not TOO new or fancy)</li> 151 <li>A printer (PS or non-PS, maybe not TOO new or fancy)</li>
152 <li> 152 <li>
153 A working network (home/office/etc) consisting of more than one machine) 153 A working network (home/office/etc) consisting of more than one machine)
154 </li> 154 </li>
155</ul> 155</ul>
156 156
157<p> 157<p>
158The main package we use here is net-fs/samba, however, you will need 158The main package we use here is net-fs/samba, however, you will need
159a kernel with smbfs support enabled in order to mount a samba or windows 159a kernel with smbfs support enabled in order to mount a samba or windows
160share from another computer. CUPS will be emerged if it is not already. 160share from another computer. CUPS will be emerged if it is not already.
161app-antivirus/clamav will be used also, but others should be easily adapted 161app-antivirus/clamav will be used also, but others should be easily adapted
162to work with Samba. 162to work with Samba. Gentoo's samba ebuild supports all kinds of virus scanning
163technologies, such as Sophos, FProt, Fsav, Trend, Icap, Nai, ...
163</p> 164</p>
164 165
165</body> 166</body>
166</section> 167</section>
167</chapter> 168</chapter>
168 169
169<chapter> 170<chapter>
170<title>Getting acquainted with Samba</title> 171<title>Getting acquainted with Samba</title>
171<section> 172<section>
172<title>The USE Flags</title> 173<title>The USE Flags</title>
173<body> 174<body>
174 175
175<p> 176<p>
176Before emerging anything, take a look at the various USE flags 177Before emerging anything, take a look at the various USE flags
177available to Samba. 178available to Samba.
267 Python bindings API. Provides an API that will allow Python to 268 Python bindings API. Provides an API that will allow Python to
268 interface with Samba. 269 interface with Samba.
269 </ti> 270 </ti>
270</tr> 271</tr>
271<tr> 272<tr>
272 <th><b>oav</b></th> 273 <th><b>oav</b></th>
273 <ti> 274 <ti>
274 Provides on-access scanning of Samba shares with FRISK F-Prot 275 Provides on-access scanning of Samba shares with FRISK F-Prot
275 Daemon, Kaspersky AntiVirus, OpenAntiVirus.org ScannerDaemon, Sophos Sweep 276 Daemon, Kaspersky AntiVirus, OpenAntiVirus.org ScannerDaemon, Sophos Sweep
276 (SAVI), Symantec CarrierScan, and Trend Micro (VSAPI). 277 (SAVI), Symantec CarrierScan, and Trend Micro (VSAPI).
277 </ti> 278 </ti>
278</tr> 279</tr>
279<tr> 280<tr>
280 <th><b>libclamav</b></th> 281 <th><b>libclamav</b></th>
281 <ti> 282 <ti>
282 Enable ClamAV as virus scanner. 283 Use the ClamAV library instead of the clamd daemon
283 </ti> 284 </ti>
284</tr> 285</tr>
285</table> 286</table>
286 287
287<p> 288<p>
288A couple of things worth mentioning about the USE flags and different 289A couple of things worth mentioning about the USE flags and different
289Samba functions include: 290Samba functions include:
290</p> 291</p>
291 292
292<ul> 293<ul>
293 <li> 294 <li>
294 ACLs on ext2/3 are implemented through extended attributes (EAs). EA and 295 ACLs on ext2/3 are implemented through extended attributes (EAs). EA and
295 ACL kernel options for ext2 and/or ext3 will need to be enabled 296 ACL kernel options for ext2 and/or ext3 will need to be enabled
296 (depending on which file system is being used - both can be enabled). 297 (depending on which file system is being used - both can be enabled).
297 </li> 298 </li>
323<c>cupsaddsmb</c> often borks if hostnames don't point to the correct 324<c>cupsaddsmb</c> often borks if hostnames don't point to the correct
324machines. 325machines.
325</p> 326</p>
326 327
327<p> 328<p>
328Hopefully now you can make an assessment of what you'll actually need in 329Hopefully now you can make an assessment of what you'll actually need in
329order to use Samba with your particular setup. The setup used for this 330order to use Samba with your particular setup. The setup used for this
330HOWTO is: 331HOWTO is:
331</p> 332</p>
332 333
333<ul> 334<ul>
334 <li>oav</li> 335 <li>oav</li>
335 <li>cups</li> 336 <li>cups</li>
336 <li>readline</li> 337 <li>readline</li>
337 <li>pam</li> 338 <li>pam</li>
338 <li>libclamav</li>
339</ul> 339</ul>
340 340
341<p> 341<p>
342To optimize performance, size and the time of the build, the 342To optimize performance, size and the time of the build, the
343USE flags are specifically included or excluded. 343USE flags are specifically included or excluded.
344</p> 344</p>
345 345
346<pre caption="Emerge Samba"> 346<pre caption="Emerge Samba">
347<comment>(Note the USE flags!)</comment> 347# <i>echo "net-fs/samba oav readline cups pam" &gt;&gt; /etc/portage/package.use</i>
348# <i>USE=&quot;oav readline cups pam -python -ldap -kerberos -xml -acl -mysql libclamav&quot; emerge net-fs/samba</i> 348# <i>emerge net-fs/samba</i>
349</pre> 349</pre>
350 350
351<note> 351<note>
352The following archs will need to add <e>~</e> to their <e>KEYWORDS</e>: x86, 352The following archs will need to add <e>~</e> to their <e>KEYWORDS</e>: x86,
353ppc, sparc, hppa, ia64 and alpha 353ppc, sparc, hppa, ia64 and alpha
354</note> 354</note>
355 355
356<p> 356<p>
357This will emerge Samba and CUPS (if CUPS is not already emerged). 357This will emerge Samba and CUPS (if CUPS is not already emerged).
358</p> 358</p>
359 359
360</body> 360</body>
361</section> 361</section>
362<section> 362<section>
363<title>Emerging ClamAV</title> 363<title>Emerging ClamAV</title>

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20