/[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.30 Revision 1.31
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.30 2007/07/08 02:22:04 nightmorph Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/quick-samba-howto.xml,v 1.31 2007/07/29 06:48:12 nightmorph Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4<guide link="/doc/en/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">
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<author title="Editor"> 12<author title="Editor">
13 <mail link="nightmorph@gentoo.org">Joshua Saddler</mail> 13 <mail link="nightmorph@gentoo.org">Joshua Saddler</mail>
14</author> 14</author>
15 15
16<abstract> 16<abstract>
17Setup, install and configure a Samba Server under Gentoo that shares files, 17Setup, install and configure a Samba Server under Gentoo that shares files,
18printers without the need to install drivers and provides automatic virus 18printers without the need to install drivers and provides automatic virus
19scanning. 19scanning.
20</abstract> 20</abstract>
21 21
22<!-- The content of this document is licensed under the CC-BY-SA license --> 22<!-- The content of this document is licensed under the CC-BY-SA license -->
23<!-- See http://creativecommons.org/licenses/by-sa/1.0 --> 23<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
24<license/> 24<license/>
25 25
26<version>1.18</version> 26<version>1.19</version>
27<date>2007-07-07</date> 27<date>2007-07-28</date>
28 28
29<chapter> 29<chapter>
30<title>Introduction to this HOWTO</title> 30<title>Introduction to this HOWTO</title>
31<section> 31<section>
32<title>Purpose</title> 32<title>Purpose</title>
33<body> 33<body>
34 34
35<p> 35<p>
36This HOWTO is designed to help you move a network from many different clients 36This HOWTO is designed to help you move a network from many different clients
37speaking different languages, to many different machines that speak a common 37speaking different languages, to many different machines that speak a common
38language. The ultimate goal is to help differing architectures and technologies, 38language. The ultimate goal is to help differing architectures and technologies,
39come together in a productive, happily coexisting environment. 39come together in a productive, happily coexisting environment.
40</p> 40</p>
41 41
42<p> 42<p>
145<ul> 145<ul>
146 <li>net-fs/samba</li> 146 <li>net-fs/samba</li>
147 <li>app-antivirus/clamav</li> 147 <li>app-antivirus/clamav</li>
148 <li>net-print/cups</li> 148 <li>net-print/cups</li>
149 <li>net-print/foomatic</li> 149 <li>net-print/foomatic</li>
150 <li>net-print/hplip (if you have an HP printer)</li> 150 <li>net-print/hplip (if you have an HP printer)</li>
151 <li>A kernel of sorts (2.6)</li> 151 <li>A kernel of sorts (2.6)</li>
152 <li>A printer (PS or non-PS, maybe not TOO new or fancy)</li> 152 <li>A printer (PS or non-PS, maybe not TOO new or fancy)</li>
153 <li> 153 <li>
154 A working network (home/office/etc) consisting of more than one machine) 154 A working network (home/office/etc) consisting of more than one machine)
155 </li> 155 </li>
156</ul> 156</ul>
157 157
158<p> 158<p>
159The main package we use here is net-fs/samba, however, you will need a kernel 159The main package we use here is net-fs/samba, however, you will need a kernel
160with smbfs support enabled in order to mount a samba or windows share from 160with cifs support enabled in order to mount a samba or windows share from
161another computer. CUPS will be emerged if it is not already. 161another computer. CUPS will be emerged if it is not already.
162app-antivirus/clamav will be used also, but others should be easily adapted to 162app-antivirus/clamav will be used also, but others should be easily adapted to
163work with Samba. Gentoo's samba ebuild supports all kinds of virus scanning 163work with Samba. Gentoo's samba ebuild supports all kinds of virus scanning
164technologies, such as Sophos, FProt, Fsav, Trend, Icap, Nai, ... 164technologies, such as Sophos, FProt, Fsav, Trend, Icap, Nai, ...
165</p> 165</p>
166 166
167</body> 167</body>
168</section> 168</section>
169</chapter> 169</chapter>
170 170
171<chapter> 171<chapter>
172<title>Getting acquainted with Samba</title> 172<title>Getting acquainted with Samba</title>
173<section> 173<section>
174<title>The USE Flags</title> 174<title>The USE Flags</title>
175<body> 175<body>
981<p> 981<p>
982Just point your web browser to <c>http://printserver:631</c> on the client if 982Just point your web browser to <c>http://printserver:631</c> on the client if
983you want to manage your printers and their jobs with a nice web interface. 983you want to manage your printers and their jobs with a nice web interface.
984Replace <c>printserver</c> with the name of the <e>machine</e> that acts as your 984Replace <c>printserver</c> with the name of the <e>machine</e> that acts as your
985print server, not the name you gave to the cups print server if you used 985print server, not the name you gave to the cups print server if you used
986different names. 986different names.
987</p> 987</p>
988 988
989</body> 989</body>
990</section> 990</section>
991<section> 991<section>
992<title>Mounting a Windows or Samba share in GNU/Linux</title> 992<title>Mounting a Windows or Samba share in GNU/Linux</title>
993<body> 993<body>
994 994
995<p> 995<p>
996Now is time to configure our kernel to support smbfs. Since I'm assumming we've 996Now is time to configure our kernel to support cifs. Since I'm assuming
997all compiled at least one kernel, we'll need to make sure we have all the right 997we've all compiled at least one kernel, we'll need to make sure we have all the
998options selected in our kernel. For simplicity's sake, make it a module for ease 998right options selected in our kernel. For simplicity's sake, make it a module
999of use. It is the author's opinion that kernel modules are a good thing and 999for ease of use. It is the author's opinion that kernel modules are a good thing
1000should be used whenever possible. 1000and should be used whenever possible.
1001</p>
1002
1003<pre caption="Relevant kernel options" >
1004CONFIG_SMB_FS=m
1005CONFIG_SMB_UNIX=y
1006</pre>
1007
1008<p> 1001</p>
1002
1003<pre caption="Kernel support" >
1004CONFIG_CIFS=m
1005</pre>
1006
1007<p>
1009Then make the module/install it; insert them with: 1008Then make the module/install it; insert it with:
1010</p> 1009</p>
1011 1010
1012<pre caption="Loading the kernel module"> 1011<pre caption="Loading the kernel module">
1013# <i>modprobe smbfs</i> 1012# <i>modprobe cifs</i>
1014</pre> 1013</pre>
1015 1014
1016<p> 1015<p>
1017Once the module is loaded, mounting a Windows or Samba share is possible. Use 1016Once the module is loaded, mounting a Windows or Samba share is possible. Use
1018<c>mount</c> to accomplish this, as detailed below: 1017<c>mount</c> to accomplish this, as detailed below:
1019</p> 1018</p>
1020 1019
1021<pre caption="Mounting a Windows/Samba share"> 1020<pre caption="Mounting a Windows/Samba share">
1022<comment>(The syntax for mounting a Windows/Samba share is: 1021<comment>(The syntax for mounting a Windows/Samba share is:
1023 mount -t smbfs [-o username=xxx,password=xxx] //server/share /mnt/point 1022 mount -t cifs [-o username=xxx,password=xxx] //server/share /mnt/point
1024If we are not using passwords or a password is not needed)</comment> 1023If we are not using passwords or a password is not needed)</comment>
1025 1024
1026# <i>mount -t smbfs //PrintServer/public /mnt/public</i> 1025# <i>mount -t cifs //PrintServer/public /mnt/public</i>
1027 1026
1028<comment>(If a password is needed)</comment> 1027<comment>(If a password is needed)</comment>
1029# <i>mount -t smbfs -o username=USERNAME,password=PASSWORD //PrintServer/public /mnt/public</i> 1028# <i>mount -t cifs -o username=USERNAME,password=PASSWORD //PrintServer/public /mnt/public</i>
1030</pre> 1029</pre>
1031 1030
1032<p> 1031<p>
1033After you mount the share, you would access it as if it were a local drive. 1032After you mount the share, you would access it as if it were a local drive.
1034</p> 1033</p>
1035 1034
1036</body> 1035</body>
1037</section> 1036</section>
1038<section> 1037<section>
1039<title>Printer Configuration for Windows NT/2000/XP clients</title> 1038<title>Printer Configuration for Windows NT/2000/XP clients</title>
1040<body> 1039<body>
1041 1040
1042<p> 1041<p>
1043That's just a bit of point-and-click. Browse to <path>\\PrintServer</path> and 1042That's just a bit of point-and-click. Browse to <path>\\PrintServer</path> and
1044right click on the printer (HPDeskJet930C) and click connect. This will download 1043right click on the printer (HPDeskJet930C) and click connect. This will download

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.20