/[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.23
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.23 2006/03/06 15:39:43 nightmorph 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="/doc/en/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">
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.13</version>
24<date>2005-02-07</date> 24<date>2006-03-06</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>
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>
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>
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
685 685
686AccessLog /var/log/cups/access_log <comment># probably doesn't need changing</comment> 686AccessLog /var/log/cups/access_log <comment># probably doesn't need changing</comment>
687ErrorLog /var/log/cups/error_log <comment># doesn't really need changing either</comment> 687ErrorLog /var/log/cups/error_log <comment># doesn't really need changing either</comment>
688 688
689LogLevel debug <comment># only while isntalling and testing, should later be 689LogLevel debug <comment># only while isntalling and testing, should later be
690 # changed to 'info'</comment> 690 # changed to 'info'</comment>
691 691
692MaxClients 100 <comment># I've had to set this to 1000000000 or so because some time back, 692MaxClients 100 <comment># I've had to set this to 1000000000 or so because some time back,
693 # there seemed to be a bug in CUPS' controlling of the web interface, 693 # there seemed to be a bug in CUPS' controlling of the web interface,
694 # making CUPS think a denial of service attack was in progress when 694 # making CUPS think a denial of service attack was in progress when
695 # I tried to configure a printer with the web interface. weird.</comment> 695 # I tried to configure a printer with the web interface. weird.</comment>
773interface is found at <path>http://PrintServer:631</path> once CUPS is running. 773interface is found at <path>http://PrintServer:631</path> once CUPS is running.
774</p> 774</p>
775 775
776<pre caption="Install the printer via command line"> 776<pre caption="Install the printer via command line">
777# <i>lpadmin -p HPDeskJet930C -E -v usb:/dev/ultp0 -m HP-DeskJet_930C-hpijs.ppd</i> 777# <i>lpadmin -p HPDeskJet930C -E -v usb:/dev/ultp0 -m HP-DeskJet_930C-hpijs.ppd</i>
778# <i>/etc/init.d/cupsd restart</i>
778</pre> 779</pre>
779 780
780<p> 781<p>
781Remember to adjust to what you have. Be sure to have the name 782Remember to adjust to what you have. Be sure to have the name
782(<c>-p</c> argument) right (the name you set above during the Samba 783(<c>-p</c> argument) right (the name you set above during the Samba
858# <i>tar -xf cups-samba.ss</i> 859# <i>tar -xf cups-samba.ss</i>
859<comment>(This extracts the files to usr/share/cups/drivers under the CURRENT WORKING DIRECTORY)</comment> 860<comment>(This extracts the files to usr/share/cups/drivers under the CURRENT WORKING DIRECTORY)</comment>
860# <i>cd usr/share/cups/drivers</i> 861# <i>cd usr/share/cups/drivers</i>
861<comment>(no leading / !)</comment> 862<comment>(no leading / !)</comment>
862# <i>cp cups* /usr/local/share/cups/drivers</i> 863# <i>cp cups* /usr/local/share/cups/drivers</i>
864# <i>/etc/init.d/cupsd restart</i>
863</pre> 865</pre>
864 866
865<p> 867<p>
866Now we'll use the script <c>cupsaddsmb</c> provided by the CUPS 868Now we'll use the script <c>cupsaddsmb</c> provided by the CUPS distribution.
867distribution. It's man page is an interesting read. 869Its man page is an interesting read.
868</p> 870</p>
869 871
870<pre caption="Run cupsaddsmb"> 872<pre caption="Run cupsaddsmb">
871# <i>cupsaddsmb -H PrintServer -U root -h PrintServer -v HPDeskJet930C</i> 873# <i>cupsaddsmb -H PrintServer -U root -h PrintServer -v HPDeskJet930C</i>
872<comment>(Instead of HPDeskJet930C you could also specify "-a", which will 874<comment>(Instead of HPDeskJet930C you could also specify "-a", which will

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

  ViewVC Help
Powered by ViewVC 1.1.20