1<html> 2<body bgcolor="#ffffff"> 3 4<img src="samba2_xs.gif" border="0" alt=" " height="100" width="76" 5hspace="10" align="left" /> 6 7<h1 class="head0">Appendix D. Downloading Samba with CVS</h1> 8 9 10<p>In <a href="ch02.html">Chapter 2</a> we showed you how to download the 11latest stable version of Samba published by the Samba developers. For 12most purposes (including virtually all production servers) this 13procedure will meet your needs. However, sometimes you might want to 14run a version of Samba that includes the latest bug fixes and 15features, maybe for research and testing purposes, or just to see 16what the Samba developers have been up to lately.</p> 17 18<p>The Samba team keeps the latest updates of the Samba source code in a 19<a name="INDEX-1"/><a name="INDEX-2"/>Concurrent Versions System 20(CVS) repository. CVS is a freely available 21<a name="INDEX-3"/>configuration management tool 22and is distributed under the GNU General Public License. You can 23download the latest copy from <a href="http://www.cvshome.org/">http://www.cvshome.org/</a>. The Samba team 24describes various ways to access its CVS repository at <a href="http://www.samba.org/samba/cvs.html">http://www.samba.org/samba/cvs.html</a>.</p> 25 26<a name="samba2-APP-D-NOTE-162"/><blockquote class="note"><h4 class="objtitle">WARNING</h4> 27<p>Although the CVS code contains the latest features, it also contains 28the latest bugs and sometimes won't even compile 29properly! If you prefer a less "bleeding 30edge" release, try looking in the 31<em class="filename">alpha</em> and <em class="filename">pre</em> directories 32on the Samba FTP server. The <em class="filename">alpha</em> directory 33contains alpha releases, and the <em class="emphasis">pre</em> directory 34contains (usually more stable) prerelease versions. (See <a href="ch02.html">Chapter 2</a> for information on downloading via FTP.) Alpha 35releases might be a little behind the latest CVS code, but are less 36buggy and usually compile properly on the more common Unix versions.</p> 37</blockquote> 38 39<p>One of the nicest things about CVS is its ability to handle remote 40logins. This means that people across the globe on the Internet can 41download and update various source files for any project that uses a 42CVS repository. Such is the case with Samba. Once you have CVS 43installed on your system, you must first log in to the Samba source 44server with the following command:</p> 45 46<blockquote><pre class="code">$ <tt class="userinput"><b>cvs -d :pserver:cvs@pserver.samba.org:/cvsroot login</b></tt></pre></blockquote> 47 48<p>When you are prompted for a password, enter <tt class="literal">cvs</tt>. 49You are connected to the CVS server at 50<tt class="literal">pserver.samba.org</tt>. Once you are connected, you can 51download the latest source tree with the following command:<a name="FNPTR-1"/><a href="#FOOTNOTE-1">[1]</a></p> 52 53<blockquote><pre class="code">$ <tt class="userinput"><b>cvs -z5 -d :pserver:pserver@pserver.samba.org:/cvsroot co samba</b></tt></pre></blockquote> 54 55<p>This downloads the entire Samba distribution (file by file) into a 56directory called <em class="filename">samba</em>, created in your current 57directory. The <em class="filename">samba</em> directory has the same 58structure as the Samba source distribution described in <a href="ch02.html">Chapter 2</a>, except that it has additional directories 59named <em class="filename">CVS</em> throughout the source tree. These 60directories are used by CVS to store information about each file in 61the source tree and how to update them. After the download is 62completed, you can follow the instructions in <a href="ch02.html">Chapter 2</a> to configure, compile, and install your new 63Samba release.</p> 64 65<p>The Samba developers typically update the Samba source code one or 66more times per day. Whenever you want to catch up to the latest 67changes, simply <em class="emphasis">cd</em> to the 68<em class="filename">samba</em> directory and run the following command:</p> 69 70<blockquote><pre class="code">$ <tt class="userinput"><b>cvs update -d -P</b></tt></pre></blockquote> 71 72<p>Each time you do this, you will need to reconfigure, recompile, and 73reinstall to update your installation as we showed you in <a href="ch02.html">Chapter 2</a>.</p> 74 75<hr/><h4 class="head4">Footnotes</h4><blockquote><a name="FOOTNOTE-1"/> 76<p><a href="#FNPTR-1">[1]</a> The <tt class="literal">-z</tt> option causes the transfer to be made 77in GNU gzip compressed format and requires the 78<em class="filename">gzip</em> program to be installed on your system to 79work. If you do not have <em class="filename">gzip</em>, omit the 80<tt class="literal">-z</tt> option.</p> </blockquote><hr/><h4 class="head4"><a href="toc.html">TOC</a></h4> 81 82</body></html> 83