33140feebd730d6d580c31bdd382bd9ef65eca5b
[spider.git] / html / adminmanual-9.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.50: CVS</TITLE>
6  <LINK HREF="adminmanual-10.html" REL=next>
7  <LINK HREF="adminmanual-8.html" REL=previous>
8  <LINK HREF="adminmanual.html#toc9" REL=contents>
9 <link rel=stylesheet href="style.css" type="text/css" title="default stylesheet">
10 </HEAD>
11 <BODY>
12 <A HREF="adminmanual-10.html">Next</A>
13 <A HREF="adminmanual-8.html">Previous</A>
14 <A HREF="adminmanual.html#toc9">Contents</A>
15 <HR>
16 <H2><A NAME="s9">9. CVS</A></H2>
17
18 <H2><A NAME="ss9.1">9.1 CVS from a Linux platform</A>
19 </H2>
20
21 <P>CVS stands for "Concurrent Versions System" and the CVS for DXSpider is held
22 at 
23 <A HREF="http://www.sourceforge.net">Sourceforge</A>.  This means
24 that it is possible to update your DXSpider installation to the latest
25 sources by using a few simple commands.  A graphical interface to CVS for
26 Windows is explained in the next section.
27 <P>
28 <P>Please be aware that if you update your system using CVS, it is possible that
29 you could be running code that is very beta and not fully tested.  There is
30 a possibility that it could be unstable.
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 <H2><A NAME="ss9.2">9.2 CVS from a Windows platform</A>
110 </H2>
111
112 <P>After the initial setup, an update to your DXSpider software is no more than a couple
113 of clicks away.  This section is intended to explain and illustrate the use of the
114 WinCVS application to update your DXSpider software.  The current stable version of
115 WinCVS is Ver. 1.2.  You can get this software at:
116 <P>
117 <A HREF="http://prdownloads.sourceforge.net/cvsgui/WinCvs120.zip">http://prdownloads.sourceforge.net/cvsgui/WinCvs120.zip</A><P>Pick your download mirror and then install WinCVS after the download is complete.
118 <P>In this next section I have included a series of links to .jpg files to take advantage of the
119 picture and 1000 words equivalency.  The .jpg files are in the C:\spider\html directory.  If
120 someone using a Linux system is reading this section from boredom, the files are in
121 /home/sysop/spider/html.  One aside, a Linux user can also get a copy of gcvs and do your updates
122 graphically as opposed to from the command line.  The following descriptions are almost identical
123 between WinCvs and gcvs.  The following screen shots have duplicate links, depending upon whether
124 you are viewing this information under the Windows or Linux operating system.
125 <P>When WinCVS is installed, running, and you are connected to the internet, the initial screen looks like:
126 <P>
127 <A HREF="initial.jpg">initial.jpg</A><P>If you want, you can also look at these .jpg files with another viewer that might provide some
128 better clarity to the image.  On the left is the directory tree for your hard disk.  Notice that
129 the spider directory has a gray highlight.
130 <P>To start configuring WinCVS, click on Admin at the top of the screen and then Preferences.  This 
131 should get you:
132 <P>
133 <A HREF="pref-gen.jpg">pref-gen.jpg</A><P>In the top line for CVSROOT, enter:
134 <BLOCKQUOTE><CODE>
135 <PRE>
136 anonymous@cvs.DXSpider.sourceforge.net:/cvsroot/dxspider login
137 </PRE>
138 </CODE></BLOCKQUOTE>
139 <P>and select
140 <BLOCKQUOTE><CODE>
141 <PRE>
142 "passwd" file on the cvs server
143 </PRE>
144 </CODE></BLOCKQUOTE>
145 <P>for Authentication on the General tab.
146 <P>Next, move to the right to the Ports tab.
147 <P>
148 <A HREF="pref-ports.jpg">pref-ports.jpg</A><P>In here, check the box on the second line down for the "pserver" port.  Enter a port number of 2401.
149 <P>Finally, go to the WinCvs tab all the way to the right.
150 <P>
151 <A HREF="pref-wincvs.jpg">pref-wincvs.jpg</A><P>Enter Notepad as the viewer to open files.  For the HOME folder, put "C:\spider" and click OK
152 because the configuration is now complete.
153 <P>You are now ready to upgrade your copy of DXSpider.  Click on the greyed Spider folder
154 shown in the directory tree on the left of the WinCVS display.  Two things should happen.  The Spider
155 folder will be selected and the greyed-out arrow located just below the word Query in the top line will
156 turn to solid green.
157 <P>For anyone using gcvs under Linux, the green arrow is located on the extreme left of the display,
158 under the word File.  A gcvs screen looks like:
159 <P>
160 <A HREF="gcvs.jpg">gcvs.jpg</A><P>Click on the now green arrow to start the download process.  An Update Settings box will be displayed
161 to which you can simply say OK.
162 <P>
163 <A HREF="update-OK.jpg">update-OK.jpg</A><P>For future reference, the Update Settings box is the place where you can enter information to revert
164 to a prior version of DXSpider.  Information on reverting to a Before Date is contained in the WinCVS
165 manual.
166 <P>After a short period of time, a series of file names will scroll by in the lower pane of the WinCVS
167 window.  Eventually you should see
168 <BLOCKQUOTE><CODE>
169 <PRE>
170 *****CVS exited normally with code 0*****
171 </PRE>
172 </CODE></BLOCKQUOTE>
173
174 appear in the lower pane.  You're done.  The updated files are in place ready for you to stop and then
175 restart your DXSpider.  After the restart, you're running with the latest version of DXSpider.
176 <P>
177 <A HREF="completed.jpg">completed.jpg</A><P>To paraphrase from the CVS section... Now the magic part!  From now on when you want to update, simply
178 connect to the Internet and start WinCVS.
179 <BLOCKQUOTE><CODE>
180 <PRE>
181 Click on the greyed-out Spider directory in the left screen
182 Click on the green down arrow
183 Click OK on the Update Settings dialog box
184 Restart your Spider software
185 </PRE>
186 </CODE></BLOCKQUOTE>
187 <P>
188 <HR>
189 <A HREF="adminmanual-10.html">Next</A>
190 <A HREF="adminmanual-8.html">Previous</A>
191 <A HREF="adminmanual.html#toc9">Contents</A>
192 </BODY>
193 </HTML>