/[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.9 Revision 1.14
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.9 2004/08/01 11:40:20 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/quick-samba-howto.xml,v 1.14 2004/12/21 18:09:59 neysx Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4<guide link="quick-samba-howto.xml"> 4<guide link="quick-samba-howto.xml">
5<title>Gentoo Samba3/CUPS/Clam AV HOWTO</title> 5<title>Gentoo Samba3/CUPS/Clam AV 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>
18 18
19<!-- The content of this document is licensed under the CC-BY-SA license --> 19<!-- The content of this document is licensed under the CC-BY-SA license -->
20<!-- See http://creativecommons.org/licenses/by-sa/1.0 --> 20<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
21<license/> 21<license/>
22 22
23<version>1.6</version> 23<version>1.10</version>
24<date>August 01, 2004</date> 24<date>2004-12-21</date>
25 25
26<chapter> 26<chapter>
27<title>Introduction to this HOWTO</title> 27<title>Introduction to this HOWTO</title>
28<section> 28<section>
29<title>Purpose</title> 29<title>Purpose</title>
255 </ti> 255 </ti>
256</tr> 256</tr>
257<tr> 257<tr>
258 <th><b>readline</b></th> 258 <th><b>readline</b></th>
259 <ti> 259 <ti>
260 Link Samba again libreadline. This is highly recommended and should 260 Link Samba against libreadline. This is highly recommended and should
261 probably not be disabled 261 probably not be disabled
262 </ti> 262 </ti>
263</tr> 263</tr>
264<tr> 264<tr>
265 <th><b>python</b></th> 265 <th><b>python</b></th>
458 458
459<comment># Now we setup our print drivers information!</comment> 459<comment># Now we setup our print drivers information!</comment>
460[print$] 460[print$]
461comment = Printer Drivers 461comment = Printer Drivers
462path = /etc/samba/printer <comment># this path holds the driver structure</comment> 462path = /etc/samba/printer <comment># this path holds the driver structure</comment>
463guest ok = no 463guest ok = yes
464browseable = yes 464browseable = yes
465read only = yes 465read only = yes
466<comment># Modify this to "username,root" if you don't want root to 466<comment># Modify this to "username,root" if you don't want root to
467# be the only printer admin)</comment> 467# be the only printer admin)</comment>
468write list = <i>root</i> 468write list = <i>root</i>
481 481
482<comment># Now we setup our printers share. This should be 482<comment># Now we setup our printers share. This should be
483# browseable, printable, public.</comment> 483# browseable, printable, public.</comment>
484[printers] 484[printers]
485comment = All Printers 485comment = All Printers
486browseable = yes 486browseable = no
487printable = yes 487printable = yes
488writable = no
488public = yes 489public = yes
489guest ok = yes 490guest ok = yes
490path = /var/spool/samba 491path = /var/spool/samba
491<comment># Modify this to "username,root" if you don't want root to 492<comment># Modify this to "username,root" if you don't want root to
492# be the only printer admin)</comment> 493# be the only printer admin)</comment>
697<comment>(The following line is found near the end of the file. Uncomment it)</comment> 698<comment>(The following line is found near the end of the file. Uncomment it)</comment>
698application/octet-stream application/vnd.cups-raw 0 699application/octet-stream application/vnd.cups-raw 0
699</pre> 700</pre>
700 701
701<p> 702<p>
702Edit <path>/etc/cups/mime.convs</path> to uncomment some lines. 703Edit <path>/etc/cups/mime.types</path> to uncomment some lines.
703</p> 704</p>
704 705
705<pre caption="/etc/cups/mime.types"> 706<pre caption="/etc/cups/mime.types">
706<comment>(The following line is found near the end of the file. Uncomment it)</comment> 707<comment>(The following line is found near the end of the file. Uncomment it)</comment>
707application/octet-stream 708application/octet-stream
712</p> 713</p>
713 714
714<pre caption="Setting up the CUPS service" > 715<pre caption="Setting up the CUPS service" >
715<comment>(To start CUPS on boot)</comment> 716<comment>(To start CUPS on boot)</comment>
716# <i>rc-update add cupsd default</i> 717# <i>rc-update add cupsd default</i>
717<comment>(To start CUPS if it isn't started)</comment> 718<comment>(To start or restart CUPS now)</comment>
718# <i>/etc/init.d/cupsd start</i>
719<comment>(If CUPS is already started we'll need to restart it!)</comment>
720# <i>/etc/init.d/cupsd restart</i> 719# <i>/etc/init.d/cupsd restart</i>
721</pre> 720</pre>
722 721
723</body> 722</body>
724</section> 723</section>
977<section> 976<section>
978<title>Printer configuration of *nix based clients</title> 977<title>Printer configuration of *nix based clients</title>
979<body> 978<body>
980 979
981<p> 980<p>
982Despite the variation or distribution, the only thing needed is CUPS. 981Despite the variation or distribution, the only thing needed is CUPS. Do the
983Do the equivalent on any other UNIX/Linux/BSD client. 982equivalent on any other UNIX/Linux/BSD client.
984</p> 983</p>
985 984
986<pre caption="Configuring a Gentoo system"> 985<pre caption="Configuring a Gentoo system">
987# <i>emerge cups</i> 986# <i>emerge cups</i>
988# <i>/etc/init.d/cupsd start</i> 987# <i>nano -w /etc/cups/client.conf</i>
989# <i>rc-update add cupsd default</i> 988ServerName <i>PrintServer</i> <comment># your printserver name</comment>
990</pre> 989</pre>
991 990
992<p>
993That should be it. Nothing else will be needed. Just point your web
994browser to <c>http://localhost:631</c> on the client and you'll see that
995PrintServer broadcasts all available printers to all CUPS clients.
996</p> 991<p>
997 992That should be it. Nothing else will be needed.
998<p> 993</p>
999To print, use for example 994
1000</p> 995<p>
996If you use only one printer, it will be your default printer. If your print
997server manages several printers, your administrator will have defined a default
998printer on the server. If you want to define a different default printer for
999yourself, use the <c>lpoptions</c> command.
1000</p>
1001
1002<pre caption="Setting your default printer">
1003<comment>(List available printers)</comment>
1004# <i>lpstat -a</i>
1005<comment>(Sample output, yours will differ)</comment>
1006HPDeskJet930C accepting requests since Jan 01 00:00
1007laser accepting requests since Jan 01 00:00
1008<comment>(Define HPDeskJet930C as your default printer)</comment>
1009# <i>lpoptions -d HPDeskJet930C</i>
1010</pre>
1001 1011
1002<pre caption="Printing in *nix"> 1012<pre caption="Printing in *nix">
1013<comment>(Specify the printer to be used)</comment>
1003# <i>lpr -pHPDeskJet930C anything.txt</i> 1014# <i>lp -d HPDeskJet930C anything.txt</i>
1004# <i>lpr -PHPDeskJet930C foobar.whatever.ps</i> 1015<comment>(Use your default printer)</comment>
1005</pre>
1006
1007<p>
1008In order to setup a default printer, you have to edit
1009<path>/etc/cups/client.conf</path> and set the directive
1010<c>ServerName</c> to your printserver. In the case of this guide that
1011would be the following example.
1012</p>
1013
1014<pre caption="/etc/cups/client.conf">
1015ServerName PrintServer
1016</pre>
1017
1018<p>
1019The following will print <path>foorbar.whatever.ps</path> directly to the print
1020server.
1021</p>
1022
1023<pre caption="Printing to the default printer">
1024$ <i>lpr foobar.whatever.ps</i> 1016# <i>lp foobar.whatever.ps</i>
1025</pre> 1017</pre>
1026 1018
1027<p>
1028Some common observations when setting a default printer in this manner
1029include the following:
1030</p> 1019<p>
1031 1020Just point your web browser to <c>http://printserver:631</c> on the client if
1032<ul> 1021you want to manage your printers and their jobs with a nice web interface.
1033 <li> 1022Replace <c>printserver</c> with the name of the <e>machine</e> that acts as
1034 Setting the <c>ServerName</c> in <path>client.conf</path> seems to 1023your print server, not the name you gave to the cups print server if you used
1035 work well for only one printer, there may be yet another way to 1024different names.
1036 set a client's default remote printer. 1025</p>
1037 </li>
1038 <li>
1039 Also, when accessing <c>http://localhost:631</c> on the client
1040 now, no printers seem to be "found" by the client-CUPS. This is to
1041 be expected when setting <c>ServerName</c> in
1042 <path>client.conf</path>.
1043 </li>
1044</ul>
1045 1026
1046</body> 1027</body>
1047</section> 1028</section>
1048<section> 1029<section>
1049<title>Mounting a Windows or Samba share in GNU/Linux</title> 1030<title>Mounting a Windows or Samba share in GNU/Linux</title>

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20