updated documentation a bit
[spider.git] / html / adminmanual-7.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2 <HTML>
3 <HEAD>
4  <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
5  <TITLE>The DXSpider Administration Manual v1.48: CVS</TITLE>
6  <LINK HREF="adminmanual-8.html" REL=next>
7  <LINK HREF="adminmanual-6.html" REL=previous>
8  <LINK HREF="adminmanual.html#toc7" REL=contents>
9 <link rel=stylesheet href="style.css" type="text/css" title="default stylesheet">
10 </HEAD>
11 <BODY>
12 <A HREF="adminmanual-8.html">Next</A>
13 <A HREF="adminmanual-6.html">Previous</A>
14 <A HREF="adminmanual.html#toc7">Contents</A>
15 <HR>
16 <H2><A NAME="s7">7. CVS</A></H2>
17
18 <P>CVS stands for "Concurrent Versions System" and the CVS for DXSpider is held
19 at 
20 <A HREF="http://www.sourceforge.net">Sourceforge</A>.  This means
21 that it is possible to update your DXSpider installation to the latest
22 sources by using a few simple commands.
23 <P>
24 <P>THIS IS NOT FOR THE FAINT HEARTED!!!  ONLY DO THIS IF YOU HAVE A TEST
25 INSTALLATION OR ARE WILLING TO HAVE YOUR CLUSTER CRASH ON YOU!!!
26 THIS MUST BE CONSIDERED AT LEAST BETA TESTING AND MAYBE EVEN ALPHA!!
27 YOU HAVE BEEN WARNED!!!
28 <P>
29 <P>DID I MENTION..... ONLY DO THIS IF YOU ARE WILLING TO ACCEPT THE
30 CONSEQUENCES!!!
31 <P>
32 <P>I am of course assuming that you have a machine with both DXSpider and
33 Internet access running.
34 <P>
35 <P>BEFORE YOU EVEN CONSIDER STARTING WITH THIS MAKE A BACKUP OF YOUR
36 ENTIRE SPIDER TREE!!
37 <P>
38 <P>Assuming you are connected to the Internet, you need to login to the
39 CVS repository and then update your Spider source.  There are several
40 steps which are listed below ...
41 <P>
42 <P>First login as the user <EM>sysop</EM>.  Next you need to connect to the CVS
43 repository.  You do this with the command below ...
44 <P>
45 <PRE>
46 cvs -d:pserver:anonymous@cvs.DXSpider.sourceforge.net:/cvsroot/dxspider login 
47 </PRE>
48 <P>You will get a password prompt.  Simply hit return here and your machine should
49 return to a normal linux prompt.
50 <P>
51 <P>What happens next depends on whether you have an existing installation that 
52 you want to update with the latest and greatest or whether you just want
53 to see what is there and/or run it on a new machine for testing.
54 <P>If you are installing Spider from CVS then change directory to /home/sysop
55 <P>If you are wanting to update Spider then cd to /tmp
56 <P>
57 <P>The next step will create a brand new 'spider' directory in your current
58 directory.
59 <P>
60 <PRE>
61 cvs -z3 -d:pserver:anonymous@cvs.DXSpider.sourceforge.net:/cvsroot/dxspider co spider
62 </PRE>
63 <P>This command is all on one line.
64 <P>
65 <P>Hopefully your screen should show you downloading files.  The -z3 simply compresses
66 the download to improve speed.
67 When this has finished, you will have exactly the same as if you had untarred a full 
68 tarball PLUS some extra directories and files that CVS needs to do the magic that 
69 it does.
70 <P>
71 <P>Now if you are doing a new installation, that's it.  Carry on as if you have
72 just downloaded and untarred the lastest tarball.
73 <P>
74 <P>If you want to upgrade your current installation then do this ...
75 <P>
76 <BLOCKQUOTE><CODE>
77 <PRE>
78 tar cvfz /tmp/s.tgz spider
79 cd /
80 tar xvfzp /tmp/s.tgz
81 </PRE>
82 </CODE></BLOCKQUOTE>
83 <P>This is assuming you downloaded to the /tmp directory of course.
84 <P>
85 <P>NOTE:  the 'p' on the end of the 'xvfz' is IMPORTANT!   It keeps the permissions
86 correct.  YOU WERE LOGGED IN AS THE USER SYSOP WEREN'T YOU?????
87 <P>Remember to recompile the C client (cd /spider/src; make)
88 <P>
89 <P>At this point the files have been upgraded.  You can (usually) restart the cluster
90 in your own time.  However, if you attempt to use any new commands or features
91 expect it to be fatal!  At least your cluster will have been restarted then so it
92 will be too late to worry about it!
93 <P>
94 <P>Now the magic part!  From now on when you want to update, simply connect to the 
95 Internet and then, as the user <EM>sysop</EM> ...
96 <P>
97 <BLOCKQUOTE><CODE>
98 <PRE>
99 cd /spider
100 cvs -z3 update -d
101 </PRE>
102 </CODE></BLOCKQUOTE>
103 <P>and your files will be updated.  As above, remember to recompile the "C" client 
104 if it has been updated (CVS will tell you) and restart if any of the perl scripts
105 have been altered or added, again, CVS will tell you.
106 <P>
107 <P>You will find any changes documented in the /spider/Changes file.
108 <P>
109 <HR>
110 <A HREF="adminmanual-8.html">Next</A>
111 <A HREF="adminmanual-6.html">Previous</A>
112 <A HREF="adminmanual.html#toc7">Contents</A>
113 </BODY>
114 </HTML>