/[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.29 Revision 1.30
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.29 2007/06/06 23:23:35 nightmorph Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/quick-samba-howto.xml,v 1.30 2007/07/08 02:22:04 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">
13 <mail link="nightmorph@gentoo.org">Joshua Saddler</mail>
14</author>
12 15
13<abstract> 16<abstract>
14Setup, install and configure a Samba Server under Gentoo that shares files, 17Setup, install and configure a Samba Server under Gentoo that shares files,
15printers without the need to install drivers and provides automatic virus 18printers without the need to install drivers and provides automatic virus
16scanning. 19scanning.
17</abstract> 20</abstract>
18 21
19<!-- 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 -->
20<!-- See http://creativecommons.org/licenses/by-sa/1.0 --> 23<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
21<license/> 24<license/>
22 25
23<version>1.17</version> 26<version>1.18</version>
24<date>2007-06-06</date> 27<date>2007-07-07</date>
25 28
26<chapter> 29<chapter>
27<title>Introduction to this HOWTO</title> 30<title>Introduction to this HOWTO</title>
28<section> 31<section>
29<title>Purpose</title> 32<title>Purpose</title>
30<body> 33<body>
31 34
32<p> 35<p>
33This 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
34speaking different languages, to many different machines that speak a common 37speaking different languages, to many different machines that speak a common
35language. The ultimate goal is to help differing architectures and technologies, 38language. The ultimate goal is to help differing architectures and technologies,
36come together in a productive, happily coexisting environment. 39come together in a productive, happily coexisting environment.
37</p> 40</p>
38 41
39<p> 42<p>
766<body> 769<body>
767 770
768<p> 771<p>
769Now that the printer should be working it is time to install the drivers for the 772Now that the printer should be working it is time to install the drivers for the
770Windows clients to work. Samba 2.2 introduced this functionality. Browsing to 773Windows clients to work. Samba 2.2 introduced this functionality. Browsing to
771the print server in the Network Neighbourhood, right-clicking on the 774the print server in the Network Neighbourhood, right-clicking on the
772printershare and selecting "connect" downloads the appropriate drivers 775printershare and selecting "connect" downloads the appropriate drivers
773automagically to the connecting client, avoiding the hassle of manually 776automagically to the connecting client, avoiding the hassle of manually
774installing printer drivers locally. 777installing printer drivers locally.
775</p> 778</p>
776 779
777<p> 780<p>
778There are two sets of printer drivers for this. First, the Adobe PS drivers 781There are two sets of printer drivers for this. First, the Adobe PS drivers
779which can be obtained from <uri 782which can be obtained from <uri
780link="http://www.adobe.com/support/downloads/main.html">Adobe</uri> (PostScript 783link="http://www.adobe.com/support/downloads/main.html">Adobe</uri> (PostScript
781printer drivers). Second, there are the CUPS PS drivers, to be obtained <uri 784printer drivers). Second, there are the CUPS PS drivers, to be obtained by
782link="http://dev.gentoo.org/~nightmorph/misc/cups-samba-5.0rc2.tar.gz">here</uri>. 785emerging <c>net-print/cups-windows</c>. Note that it may still be marked ~arch,
786so you may need to add it to <path>/etc/portage/package.keywords</path>. There
783There doesn't seem to be a difference between the functionality of the two, but 787doesn't seem to be a difference between the functionality of the two, but the
784the Adobe PS drivers need to be extracted on a Windows System since it's a 788Adobe PS drivers need to be extracted on a Windows System since it's a Windows
785Windows binary. Also the whole procedure of finding and copying the correct 789binary. Also the whole procedure of finding and copying the correct files is a
786files is a bit more hassle. The CUPS drivers seem to support some options the 790bit more hassle. The CUPS drivers seem to support some options the Adobe drivers
787Adobe drivers don't. 791don't.
788</p>
789<!--
790used to be available at www.cups.org/articles.php?L142+p4, but only 6.0 is
791available. at some point, we should update this for 6.0.
792-->
793
794<p> 792</p>
795This HOWTO uses the CUPS drivers for Windows. The downloaded file is 793
796called <path>cups-samba-5.0rc2.tar.gz</path>. Extract the files
797contained into a directory.
798</p> 794<p>
799 795This HOWTO uses the CUPS drivers for Windows. Install them as shown:
800<pre caption="Extract the drivers and run the install">
801# <i>tar -xzf cups-samba-5.0rc2.tar.gz</i>
802# <i>cd cups-samba-5.0rc2</i>
803<comment>(Only use this script if CUPS resides in /usr/share/cups)</comment>
804# <i>./cups-samba.install</i>
805</pre>
806
807<p> 796</p>
808<path>cups-samba.ss</path> is a TAR archive containing three files:
809<path>cups5.hlp</path>, <path>cupsdrvr5.dll</path> and
810<path>cupsui5.dll</path>. These are the actual driver files.
811</p>
812 797
813<warn> 798<pre caption="Install the drivers and restart CUPS">
814The script <c>cups-samba.install</c> may not work for all *nixes (i.e. FreeBSD) 799# <i>emerge -av cups-windows</i>
815because almost everything which is not part of the base system is installed
816somewhere under the prefix <path>/usr/local/</path>. This seems not to be the
817case for most things you install under GNU/Linux. However, if your CUPS
818installation is somewhere other than <path>/usr/share/cups/</path> see the
819example below.
820</warn>
821
822<p>
823Suppose your CUPS installation resides under
824<path>/usr/local/share/cups/</path>, and you want to install the drivers there.
825Do the following:
826</p>
827
828<pre caption="Manually installing the drivers">
829# <i>cd /path/you/extracted/the/CUPS-driver/tarball/into</i>
830# <i>tar -xf cups-samba.ss</i>
831<comment>(This extracts the files to usr/share/cups/drivers under the CURRENT WORKING DIRECTORY)</comment>
832# <i>cd usr/share/cups/drivers</i>
833<comment>(no leading / !)</comment>
834# <i>cp cups* /usr/local/share/cups/drivers</i>
835# <i>/etc/init.d/cupsd restart</i> 800# <i>/etc/init.d/cupsd restart</i>
836</pre> 801</pre>
837 802
838<p> 803<p>
839Now we'll use the script <c>cupsaddsmb</c> provided by the CUPS distribution. 804Now we'll use the script <c>cupsaddsmb</c> provided by the CUPS distribution.
840Its man page is an interesting read. 805Its man page is an interesting read.
841</p> 806</p>
842 807
843<pre caption="Run cupsaddsmb"> 808<pre caption="Run cupsaddsmb">
844# <i>cupsaddsmb -H PrintServer -U root -h PrintServer -v HPDeskJet930C</i> 809# <i>cupsaddsmb -H PrintServer -U root -h PrintServer -v HPDeskJet930C</i>
845<comment>(Instead of HPDeskJet930C you could also specify "-a", which will 810<comment>(Instead of HPDeskJet930C you could also specify "-a", which will
846"export all known printers".)</comment> 811"export all known printers".)</comment>
847# <i>cupsaddsmb -H PrintServer -U root -h PrintServer -a</i> 812# <i>cupsaddsmb -H PrintServer -U root -h PrintServer -a</i>
848</pre> 813</pre>
849 814

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

  ViewVC Help
Powered by ViewVC 1.1.20