/[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.34 Revision 1.35
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.34 2007/09/15 16:47:56 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/quick-samba-howto.xml,v 1.35 2007/10/14 19:10:05 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.21</version> 26<version>1.22</version>
27<date>2007-09-15</date> 27<date>2007-10-14</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>
774printershare and selecting "connect" downloads the appropriate drivers 774printershare and selecting "connect" downloads the appropriate drivers
775automagically to the connecting client, avoiding the hassle of manually 775automagically to the connecting client, avoiding the hassle of manually
776installing printer drivers locally. 776installing printer drivers locally.
777</p> 777</p>
778 778
779<p> 779<p>
780There are two sets of printer drivers for this. First, the Adobe PS drivers 780There are two sets of printer drivers for this. First, the Adobe PS drivers
781which can be obtained from <uri 781which can be obtained from <uri
782link="http://www.adobe.com/support/downloads/main.html">Adobe</uri> (PostScript 782link="http://www.adobe.com/support/downloads/main.html">Adobe</uri> (PostScript
783printer drivers). Second, there are the CUPS PS drivers, to be obtained by 783printer drivers). Second, there are the CUPS PS drivers, to be obtained by
784emerging <c>net-print/cups-windows</c>. Note that it may still be marked ~arch, 784emerging <c>net-print/cups-windows</c>. Note that it may still be marked ~arch,
785so you may need to add it to <path>/etc/portage/package.keywords</path>. There 785so you may need to add it to <path>/etc/portage/package.keywords</path>. There
786doesn't seem to be a difference between the functionality of the two, but the 786doesn't seem to be a difference between the functionality of the two, but the
787Adobe PS drivers need to be extracted on a Windows System since it's a Windows 787Adobe PS drivers need to be extracted on a Windows System since it's a Windows
788binary. Also the whole procedure of finding and copying the correct files is a 788binary. Also the whole procedure of finding and copying the correct files is a
789bit more hassle. The CUPS drivers seem to support some options the Adobe drivers 789bit more hassle. The CUPS drivers support some options the Adobe drivers
790don't. 790don't.
791</p> 791</p>
792 792
793<p> 793<p>
794This HOWTO uses the CUPS drivers for Windows. Install them as shown: 794This HOWTO uses the CUPS drivers for Windows. Install them as shown:
795</p> 795</p>
796 796
797<pre caption="Install the drivers and restart CUPS"> 797<pre caption="Install the drivers">
798# <i>emerge -av cups-windows</i> 798# <i>emerge -av cups-windows</i>
799# <i>/etc/init.d/cupsd restart</i>
800</pre> 799</pre>
801 800
802<p> 801<p>
803Now we'll use the script <c>cupsaddsmb</c> provided by the CUPS distribution. 802Now we'll use the script <c>cupsaddsmb</c> provided by the CUPS distribution.
804Its man page is an interesting read. 803Be sure to read its manpage (<c>man cupsaddsmb</c>), as it will tell you which
804Windows drivers you'll need to copy to the proper CUPS directory. Once you've
805copied the drivers, restart CUPS by running <c>/etc/init.d/cupsd restart</c>.
806Next, run <c>cupsaddsmb</c> as shown:
805</p> 807</p>
806 808
807<pre caption="Run cupsaddsmb"> 809<pre caption="Run cupsaddsmb">
808# <i>cupsaddsmb -H PrintServer -U root -h PrintServer -v HPDeskJet930C</i> 810# <i>cupsaddsmb -H PrintServer -U root -h PrintServer -v HPDeskJet930C</i>
809<comment>(Instead of HPDeskJet930C you could also specify "-a", which will 811<comment>(Instead of HPDeskJet930C you could also specify "-a", which will
810"export all known printers".)</comment> 812"export all known printers".)</comment>
811# <i>cupsaddsmb -H PrintServer -U root -h PrintServer -a</i> 813# <i>cupsaddsmb -H PrintServer -U root -h PrintServer -a</i>
812</pre> 814</pre>
813 815
814<warn> 816<warn>
815The execution of this command often causes the most trouble. Read through the 817The execution of this command often causes the most trouble. Read through the
816<uri link="http://forums.gentoo.org/viewtopic.php?t=110931">posts in this 818<uri link="http://forums.gentoo.org/viewtopic.php?t=110931">posts in this
817thread</uri> for some troubleshooting tips. 819thread</uri> for some troubleshooting tips.
818</warn> 820</warn>
819 821

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

  ViewVC Help
Powered by ViewVC 1.1.20