/[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.10 Revision 1.11
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.10 2004/08/11 14:34:34 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/quick-samba-howto.xml,v 1.11 2004/08/22 12:26:52 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.7</version> 23<version>1.8</version>
24<date>August 11, 2004</date> 24<date>August 20, 2004</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>
978<section> 978<section>
979<title>Printer configuration of *nix based clients</title> 979<title>Printer configuration of *nix based clients</title>
980<body> 980<body>
981 981
982<p> 982<p>
983Despite the variation or distribution, the only thing needed is CUPS. 983Despite the variation or distribution, the only thing needed is CUPS. Do the
984Do the equivalent on any other UNIX/Linux/BSD client. 984equivalent on any other UNIX/Linux/BSD client.
985</p> 985</p>
986 986
987<pre caption="Configuring a Gentoo system"> 987<pre caption="Configuring a Gentoo system">
988# <i>emerge cups</i> 988# <i>emerge cups</i>
989# <i>/etc/init.d/cupsd start</i> 989# <i>nano -w /etc/cups/client.conf</i>
990# <i>rc-update add cupsd default</i> 990ServerName <i>PrintServer</i> <comment># your printserver name</comment>
991</pre> 991</pre>
992 992
993<p>
994That should be it. Nothing else will be needed. Just point your web
995browser to <c>http://localhost:631</c> on the client and you'll see that
996PrintServer broadcasts all available printers to all CUPS clients.
997</p> 993<p>
998 994That should be it. Nothing else will be needed.
999<p> 995</p>
1000To print, use for example 996
1001</p> 997<p>
998If you use only one printer, it will be your default printer. If your print
999server manages several printers, your administrator will have defined a default
1000printer on the server. If you want to define a different default printer for
1001yourself, use the <c>lpoptions</c> command.
1002</p>
1003
1004<pre caption="Setting your default printer">
1005<comment>(List available printers)</comment>
1006# <i>lpstat -a</i>
1007<comment>(Sample output, yours will differ)</comment>
1008HPDeskJet930C accepting requests since Jan 01 00:00
1009laser accepting requests since Jan 01 00:00
1010<comment>(Define HPDeskJet930C as your default printer)</comment>
1011# <i>lpoptions -d HPDeskJet930C</i>
1012</pre>
1002 1013
1003<pre caption="Printing in *nix"> 1014<pre caption="Printing in *nix">
1015<comment>(Specify the printer to be used)</comment>
1004# <i>lpr -pHPDeskJet930C anything.txt</i> 1016# <i>lp -d HPDeskJet930C anything.txt</i>
1005# <i>lpr -PHPDeskJet930C foobar.whatever.ps</i> 1017<comment>(Use your default printer)</comment>
1006</pre>
1007
1008<p>
1009In order to setup a default printer, you have to edit
1010<path>/etc/cups/client.conf</path> and set the directive
1011<c>ServerName</c> to your printserver. In the case of this guide that
1012would be the following example.
1013</p>
1014
1015<pre caption="/etc/cups/client.conf">
1016ServerName PrintServer
1017</pre>
1018
1019<p>
1020The following will print <path>foorbar.whatever.ps</path> directly to the print
1021server.
1022</p>
1023
1024<pre caption="Printing to the default printer">
1025$ <i>lpr foobar.whatever.ps</i> 1018# <i>lp foobar.whatever.ps</i>
1026</pre> 1019</pre>
1027 1020
1028<p>
1029Some common observations when setting a default printer in this manner
1030include the following:
1031</p> 1021<p>
1032 1022Just point your web browser to <c>http://printserver:631</c> on the client if
1033<ul> 1023you want to manage your printers and their jobs with a nice web interface.
1034 <li> 1024Replace <c>printserver</c> with the name of the <e>machine</e> that acts as
1035 Setting the <c>ServerName</c> in <path>client.conf</path> seems to 1025your print server, not the name you gave to the cups print server if you used
1036 work well for only one printer, there may be yet another way to 1026different names.
1037 set a client's default remote printer. 1027</p>
1038 </li>
1039 <li>
1040 Also, when accessing <c>http://localhost:631</c> on the client
1041 now, no printers seem to be "found" by the client-CUPS. This is to
1042 be expected when setting <c>ServerName</c> in
1043 <path>client.conf</path>.
1044 </li>
1045</ul>
1046 1028
1047</body> 1029</body>
1048</section> 1030</section>
1049<section> 1031<section>
1050<title>Mounting a Windows or Samba share in GNU/Linux</title> 1032<title>Mounting a Windows or Samba share in GNU/Linux</title>

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20