/[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.40 Revision 1.41
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.40 2008/05/02 04:46:22 nightmorph Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/quick-samba-howto.xml,v 1.41 2009/01/26 07:30:42 nightmorph Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4 4
5<guide link="/doc/en/quick-samba-howto.xml"> 5<guide link="/doc/en/quick-samba-howto.xml">
6 6
7<title>Gentoo Samba3/CUPS HOWTO</title> 7<title>Gentoo Samba3/CUPS HOWTO</title>
8 8
9<author title="Author"> 9<author title="Author">
10 Andreas "daff" Ntaflos <!--daff at dword dot org--> 10 Andreas "daff" Ntaflos <!--daff at dword dot org-->
11</author> 11</author>
12<author title="Author"> 12<author title="Author">
13 <mail link="joshua@sungentoo.homeunix.com">Joshua Preston</mail> 13 <mail link="joshua@sungentoo.homeunix.com">Joshua Preston</mail>
14</author> 14</author>
15<author title="Editor"> 15<author title="Editor">
16 <mail link="nightmorph@gentoo.org">Joshua Saddler</mail> 16 <mail link="nightmorph@gentoo.org">Joshua Saddler</mail>
17</author> 17</author>
18 18
19<abstract> 19<abstract>
20Setup, install and configure a Samba server under Gentoo that shares files and 20Setup, install and configure a Samba server under Gentoo that shares files and
21printers without the need to install drivers. 21printers without the need to install drivers.
22</abstract> 22</abstract>
23 23
24<!-- The content of this document is licensed under the CC-BY-SA license --> 24<!-- The content of this document is licensed under the CC-BY-SA license -->
25<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 25<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
26<license/> 26<license/>
27 27
28<version>1.25</version> 28<version>1.26</version>
29<date>2008-05-01</date> 29<date>2009-01-25</date>
30 30
31<chapter> 31<chapter>
32<title>Introduction to this HOWTO</title> 32<title>Introduction to this HOWTO</title>
33<section> 33<section>
34<title>Purpose</title> 34<title>Purpose</title>
35<body> 35<body>
36 36
37<p> 37<p>
38This HOWTO is designed to help you move a network from many different clients 38This HOWTO is designed to help you move a network from many different clients
39speaking different languages, to many different machines that speak a common 39speaking different languages, to many different machines that speak a common
40language. The ultimate goal is to help differing architectures and technologies, 40language. The ultimate goal is to help differing architectures and technologies,
41come together in a productive, happily coexisting environment. 41come together in a productive, happily coexisting environment.
42</p> 42</p>
43 43
44<p> 44<p>
131 </li> 131 </li>
132</ul> 132</ul>
133 133
134</body> 134</body>
135</section> 135</section>
136<section> 136<section>
137<title>Requirements</title> 137<title>Requirements</title>
138<body> 138<body>
139 139
140<p> 140<p>
141We will need the following: 141We will need the following:
142</p> 142</p>
143 143
144<ul> 144<ul>
145 <li>net-fs/samba</li> 145 <li>net-fs/samba</li>
146 <li>net-print/cups</li> 146 <li>net-print/cups (built with the <c>ppds</c> USE flag)</li>
147 <li>net-print/foomatic</li>
148 <li>net-print/hplip (if you have an HP printer)</li> 147 <li>net-print/hplip (if you have an HP printer)</li>
149 <li>A kernel of sorts (2.6)</li> 148 <li>A kernel of sorts (2.6)</li>
150 <li>A printer (PS or non-PS)</li> 149 <li>A printer (PS or non-PS)</li>
151 <li> 150 <li>
152 A working network (home/office/etc) consisting of more than one machine) 151 A working network (home/office/etc) consisting of more than one machine)
153 </li> 152 </li>
154</ul> 153</ul>
155 154
156<p> 155<p>
157The main package we use here is <c>net-fs/samba</c>, however, you will need a 156The main package we use here is <c>net-fs/samba</c>, however, you will need a
158kernel with CIFS support enabled in order to mount a Samba or Windows share from 157kernel with CIFS support enabled in order to mount a Samba or Windows share from
159another computer. CUPS will be emerged if it is not already. 158another computer. CUPS will be emerged if it is not already.
160</p> 159</p>
161 160
162</body> 161</body>
300Hopefully now you can make an assessment of what you'll actually need in order 299Hopefully now you can make an assessment of what you'll actually need in order
301to use Samba with your particular setup. The setup used for this HOWTO is: 300to use Samba with your particular setup. The setup used for this HOWTO is:
302</p> 301</p>
303 302
304<ul> 303<ul>
305 <li>cups</li> 304 <li>cups</li>
306 <li>readline</li> 305 <li>readline</li>
307 <li>pam</li> 306 <li>pam</li>
308</ul> 307</ul>
309 308
310<p> 309<p>
311To optimize performance, size and the time of the build, the USE flags are 310To optimize performance, size and the time of the build, the USE flags are
312specifically included or excluded. 311specifically included or excluded.
313</p> 312</p>
314 313
314<p>
315First, add <c>ppds</c> to your USE flags to make sure that when CUPS is built,
316it has proper foomatic support:
317</p>
318
319<pre caption="Adding ppds">
320# <i>echo "net-print/cups ppds" &gt;&gt; /etc/portage/package.use</i>
321</pre>
322
323<p>
324Now, emerge Samba:
325</p>
326
315<pre caption="Emerge Samba"> 327<pre caption="Emerge Samba">
316# <i>echo "net-fs/samba readline cups pam" &gt;&gt; /etc/portage/package.use</i> 328# <i>echo "net-fs/samba readline cups pam" &gt;&gt; /etc/portage/package.use</i>
317# <i>emerge net-fs/samba</i> 329# <i>emerge net-fs/samba</i>
318</pre> 330</pre>
319 331
320<p> 332<p>
321This will emerge Samba and CUPS (if CUPS is not already emerged). 333This will emerge Samba and CUPS.
322</p>
323
324</body>
325</section>
326<section>
327<title>Emerging foomatic</title>
328<body>
329
330<pre caption="Emerge foomatic">
331# <i>emerge net-print/foomatic</i>
332</pre> 334</p>
333 335
334</body> 336</body>
335</section> 337</section>
336<section> 338<section>
337<title>Emerging net-print/hplip</title> 339<title>Emerging net-print/hplip</title>
338<body> 340<body>
339 341
340<p> 342<p>
341You only need to emerge this if you use an HP printer. 343You only need to emerge this if you use an HP printer.
342</p> 344</p>
343 345
344<pre caption="Emerge hplip"> 346<pre caption="Emerge hplip">
345# <i>emerge net-print/hplip</i> 347# <i>emerge net-print/hplip</i>
346</pre> 348</pre>
347 349

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

  ViewVC Help
Powered by ViewVC 1.1.20