/[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.4 Revision 1.5
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.5 2004/05/30 13:24:49 neysx Exp $ -->
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3<guide link="quick-samba-howto.xml"> 4<guide link="quick-samba-howto.xml">
4<title>Gentoo Samba3/CUPS/Clam AV HOWTO</title> 5<title>Gentoo Samba3/CUPS/Clam AV HOWTO</title>
5<author title="Author"> 6<author title="Author">
6 <mail link="daff at dword dot org">Andreas "daff" Ntaflos</mail> 7 <mail link="daff at dword dot org">Andreas "daff" Ntaflos</mail>
28<title>Purpose</title> 29<title>Purpose</title>
29<body> 30<body>
30 31
31<p> 32<p>
32This 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
33clients speaking different languages, to many different manchines that 34clients speaking different languages, to many different machines that
34speak a common language. The ultimate goal is to help differing 35speak a common language. The ultimate goal is to help differing
35architectures and technologies, come together in a productive, 36architectures and technologies, come together in a productive,
36happily coexisting environment. 37happily coexisting environment.
37</p> 38</p>
38 39
85<section> 86<section>
86<title>Before you use this guide</title> 87<title>Before you use this guide</title>
87<body> 88<body>
88 89
89<p> 90<p>
90There are a several other guides for setting up CUPS and/or Samba, 91There are a several other guides for setting up CUPS and/or Samba, please read
91please read them as well, as they may tell you things left out of this 92them as well, as they may tell you things left out of this HOWTO (intentional
92HOWTO (intentional or otherwise). One such document is the very useful 93or otherwise). One such document is the very useful and well written <uri
93and well written <uri link="http://www.gentoo.org/doc/en/printing-howto.xml">Gentoo 94link="/doc/en/printing-howto.xml">Gentoo Printing Guide</uri>, as configuration
94Printing Guide</uri>, as configuration issues and specific printer setup 95issues and specific printer setup is not discussed here.
95is not discussed here.
96</p> 96</p>
97 97
98</body> 98</body>
99</section> 99</section>
100<section> 100<section>
163</p> 163</p>
164 164
165</body> 165</body>
166</section> 166</section>
167</chapter> 167</chapter>
168
168<chapter> 169<chapter>
169<title>Getting acquainted with Samba</title> 170<title>Getting acquainted with Samba</title>
170<section> 171<section>
171<title>The USE Flags</title> 172<title>The USE Flags</title>
172<body> 173<body>
300</ul> 301</ul>
301 302
302</body> 303</body>
303</section> 304</section>
304</chapter> 305</chapter>
306
305<chapter> 307<chapter>
306<title>Server Software Installation</title> 308<title>Server Software Installation</title>
307<section> 309<section>
308<title>Emerging Samba</title> 310<title>Emerging Samba</title>
309<body> 311<body>
389</pre> 391</pre>
390 392
391</body> 393</body>
392</section> 394</section>
393</chapter> 395</chapter>
396
394<chapter> 397<chapter>
395<title>Server Configuration</title> 398<title>Server Configuration</title>
396<section> 399<section>
397<title>Configuring Samba</title> 400<title>Configuring Samba</title>
398<body> 401<body>
494guest ok = yes 497guest ok = yes
495path = /home/samba/public 498path = /home/samba/public
496</pre> 499</pre>
497 500
498<warn> 501<warn>
499
500If you like to use Samba's guest account to do anything concerning 502If you like to use Samba's guest account to do anything concerning
501printing from Windows clients: don't set <c>guest only = yes</c> in 503printing from Windows clients: don't set <c>guest only = yes</c> in
502the <c>[global]</c> section. The guest account seems to cause 504the <c>[global]</c> section. The guest account seems to cause
503problems when running <c>cupsaddsmb</c> sometimes when trying to 505problems when running <c>cupsaddsmb</c> sometimes when trying to
504connect from Windows machines. See below, too, when we talk about 506connect from Windows machines. See below, too, when we talk about
571 573
572<comment>; if communication to clamd fails, should access to file denied? 574<comment>; if communication to clamd fails, should access to file denied?
573; (default: yes)</comment> 575; (default: yes)</comment>
574deny access on error = yes 576deny access on error = yes
575 577
576<comment>; if daemon files with a minor error (corruption, etc.), 578<comment>; if daemon fails with a minor error (corruption, etc.),
577; should access to file denied? 579; should access to file denied?
578; (default: yes)</comment> 580; (default: yes)</comment>
579deny access on minor error = yes 581deny access on minor error = yes
580 582
581<comment>; send a warning message via Windows Messenger service 583<comment>; send a warning message via Windows Messenger service
599; of period, samba-vscan use a last recently used file mechanism to avoid 601; of period, samba-vscan use a last recently used file mechanism to avoid
600; multiple scans of a file. This setting specified the maximum number of 602; multiple scans of a file. This setting specified the maximum number of
601; elements of the last recently used file list. (default: 100)</comment> 603; elements of the last recently used file list. (default: 100)</comment>
602max lru files entries = 100 604max lru files entries = 100
603 605
604<comment>; an entry is invalidad after lru file entry lifetime (in seconds). 606<comment>; an entry is invalidated after lru file entry lifetime (in seconds).
605; (Default: 5)</comment> 607; (Default: 5)</comment>
606lru file entry lifetime = 5 608lru file entry lifetime = 5
607 609
608<comment>; socket name of clamd (default: /var/run/clamd)</comment> 610<comment>; socket name of clamd (default: /var/run/clamd)</comment>
609clamd socket name = /var/run/clamd 611clamd socket name = /var/run/clamd
706<section> 708<section>
707<title>Installing a printer for and with CUPS</title> 709<title>Installing a printer for and with CUPS</title>
708<body> 710<body>
709 711
710<p> 712<p>
711First, go to <uri link="http://linuxprinting.org">LinuxPrinting.Org</uri> 713First, go to <uri link="http://linuxprinting.org">LinuxPrinting.Org</uri> to
712to find and download the correct PPD file for your printer and CUPS. To 714find and download the correct PPD file for your printer and CUPS. To do so,
713do so, click the link Printer Listings to the left. Select your 715click the link Printer Listings to the left. Select your printers manufacturer
714printers manufacturer and the model in the pulldown menu, eg HP and 716and the model in the pulldown menu, eg HP and DeskJet 930C. Click "Show". On
715DeskJet 930C. Click "Show". On the page coming up click the "recommended 717the page coming up click the "recommended driver" link after reading the
716driver" link after reading the various notes and information. Then fetch 718various notes and information. Then fetch the PPD file from the next page,
717the PPD file from the next page, again after reading the notes and 719again after reading the notes and introductions there. You may have to select
718introductions there. You may have to select your printers manufacturer 720your printers manufacturer and model again. Reading the <uri
719and model again. Reading the <uri link="http://www.linuxprinting.org/cups-doc.html">CUPS 721link="http://www.linuxprinting.org/cups-doc.html">CUPS quickstart guide</uri>
720quickstart guide</uri> is also very helpful when working with CUPS. 722is also very helpful when working with CUPS.
721</p> 723</p>
722 724
723<p> 725<p>
724Now you have a PPD file for your printer to work with CUPS. Place it in 726Now you have a PPD file for your printer to work with CUPS. Place it in
725<path>/usr/share/cups/model</path>. The PPD for the HP DeskJet 930C was 727<path>/usr/share/cups/model</path>. The PPD for the HP DeskJet 930C was
950</pre> 952</pre>
951 953
952</body> 954</body>
953</section> 955</section>
954</chapter> 956</chapter>
957
955<chapter> 958<chapter>
956<title>Configuration of the Clients</title> 959<title>Configuration of the Clients</title>
957<section> 960<section>
958<title>Printer configuration of *nix based clients</title> 961<title>Printer configuration of *nix based clients</title>
959<body> 962<body>
961<p> 964<p>
962Despite the variation or distribution, the only thing needed is CUPS. 965Despite the variation or distribution, the only thing needed is CUPS.
963Do the equivalent on any other UNIX/Linux/BSD client. 966Do the equivalent on any other UNIX/Linux/BSD client.
964</p> 967</p>
965 968
966<pre caption="Configuring a Gentoo system."> 969<pre caption="Configuring a Gentoo system">
967# <i>emerge cups</i> 970# <i>emerge cups</i>
968# <i>/etc/init.d/cupsd start</i> 971# <i>/etc/init.d/cupsd start</i>
969# <i>rc-update add cupsd default</i> 972# <i>rc-update add cupsd default</i>
970</pre> 973</pre>
971 974
1028<section> 1031<section>
1029<title>Mounting a Windows or Samba share in GNU/Linux</title> 1032<title>Mounting a Windows or Samba share in GNU/Linux</title>
1030<body> 1033<body>
1031 1034
1032<p> 1035<p>
1033Now is time to configure our kernel to support smbfs. Since I'm 1036Now is time to configure our kernel to support smbfs. Since I'm assumming we've
1034assumming we've all compiled at least one kernel, we'll need to make 1037all compiled at least one kernel, we'll need to make sure we have all the right
1035sure we have all the right options selected in our kernel. 1038options selected in our kernel. For simplicity sake, make it a module for ease
1036For simplicity sake, make it a module for ease of use. It is the
1037authors opinion that kernel modules are a good thing and should be used 1039of use. It is the author's opinion that kernel modules are a good thing and
1038whenever possible. 1040should be used whenever possible.
1039</p> 1041</p>
1040 1042
1041<pre caption="Relevant kernel options" > 1043<pre caption="Relevant kernel options" >
1042CONFIG_SMB_FS=m 1044CONFIG_SMB_FS=m
1043CONFIG_SMB_UNIX=y 1045CONFIG_SMB_UNIX=y
1087</p> 1089</p>
1088 1090
1089</body> 1091</body>
1090</section> 1092</section>
1091</chapter> 1093</chapter>
1094
1092<chapter> 1095<chapter>
1093<title>Final Notes</title> 1096<title>Final Notes</title>
1094<section> 1097<section>
1095<title>A Fond Farewell</title> 1098<title>A Fond Farewell</title>
1096<body> 1099<body>
1102</p> 1105</p>
1103 1106
1104</body> 1107</body>
1105</section> 1108</section>
1106</chapter> 1109</chapter>
1110
1107<chapter> 1111<chapter>
1108<title>Links and Resources</title> 1112<title>Links and Resources</title>
1109<section> 1113<section>
1110<title>Links</title> 1114<title>Links</title>
1111<body> 1115<body>

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20