Add changes to the installation manual for Windows users from K1XX
[spider.git] / html / installation-6.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 Installation Manual v1.50: Installing the software</TITLE>
6  <LINK HREF="installation-7.html" REL=next>
7  <LINK HREF="installation-5.html" REL=previous>
8  <LINK HREF="installation.html#toc6" REL=contents>
9 <link rel=stylesheet href="style.css" type="text/css" title="default stylesheet">
10 </HEAD>
11 <BODY>
12 <A HREF="installation-7.html">Next</A>
13 <A HREF="installation-5.html">Previous</A>
14 <A HREF="installation.html#toc6">Contents</A>
15 <HR>
16 <H2><A NAME="s6">6. Installing the software</A></H2>
17
18 <P>At this point you will need to create 2 additional directories under 
19 "C:\Spider."  Make directories "C:\spider\local" and "C:\spider\local_cmd". 
20 If "C:\spider" is missing, go back and figure out why, because it shouldn't be.
21 <P>Now create your own local copy of the DXVars.pm file by:-
22 <P>
23 <BLOCKQUOTE><CODE>
24 <PRE>
25 copy c:\spider\perl\DXVars.pm.issue
26 c:\spider\local\DXVars.pm
27 </PRE>
28 </CODE></BLOCKQUOTE>
29 <P>Now you'll need to edit this file using a text editor like Notepad. If nothing
30 else, you can simply
31 <P>
32 <BLOCKQUOTE><CODE>
33 <PRE>
34 cd \spider\local
35 </PRE>
36 </CODE></BLOCKQUOTE>
37 <P>and then
38 <P>
39 <BLOCKQUOTE><CODE>
40 <PRE>
41 notepad DXVars.pm
42 </PRE>
43 </CODE></BLOCKQUOTE>
44 <P>to bring up an editor window containing the file. As an absolute
45 minimum you must adjust the following items in DXVars.pm:-
46 <P>
47 <UL>
48 <LI> $mycall  - Should hold the callsign of your DX Cluster</LI>
49 <LI> $myname  - The SysOp's first name</LI>
50 <LI> $myalias - the SysOp's callsign. Cannot be the same as $mycall!</LI>
51 <LI> $myqth - The station's geographical location (QTH).</LI>
52 <LI> $mylatitude - The station latitude in degrees and decimal fractions</LI>
53 <LI> $mylongitude - The station longitude in degrees and decimal fractions</LI>
54 <LI> $mylocator - The Maidenhead (or QRA) locator of the station </LI>
55 </UL>
56 <P>You really also ought to update the $myqth and $myemail variables. And
57 unless you are absolutely certain you know what you're doing, you
58 should change nothing else in this file. Note that if you use an "@" or 
59 a "$" character in one of the above strings (typically in $myemail) you must 
60 write them as "\@" or "\$". 
61 <P>
62 <H2><A NAME="ss6.1">6.1 Incoming telnets</A>
63 </H2>
64
65 <P>If you want to enable inbound "TELNET" connections (or you are running
66 Windows 98, NT, 2000 or XP), you've got a little more work to do. From a
67 handy "DOS box" that's not doing anything else, do the following:-
68 <P>
69 <BLOCKQUOTE><CODE>
70 <PRE>
71 copy \spider\perl\Listeners.pm \spider\local
72 cd \spider\local
73 notepad listeners.pm
74 </PRE>
75 </CODE></BLOCKQUOTE>
76 <P>The following line need attention:-
77 <P>
78 <BLOCKQUOTE><CODE>
79 <PRE>
80 #               ["0.0.0.0", 7300],
81 </PRE>
82 </CODE></BLOCKQUOTE>
83 <P>On my machine, I've simply uncommented the "0.0.0.0" entry by
84 removing the '#' from the front of the line. 
85 <P><B>You MUST carry out this step if you are
86 running on a Windows 98, NT, 2000 or XP based system</B>
87 <P>If you don't have a static hostname for your machine, and you
88 intend to allow folk to connect to your machine across the
89 internet, then I'd suggest you pay a visit to www.dyndns.org and
90 create one for yourself. While it's free, it will take a modest
91 amount of effort on your part to read, understand and
92 implement what needs to be done to set this up.
93 <P>
94 <P>If your machine is connected to the internet <B>and</B> you don't
95 want to allow your machine to be visible to the outside world you
96 should change the "0.0.0.0" to "127.0.0.1" [which is
97 "localhost"]. This will then only allow connections from inside your
98 machine. As was said earlier: if you aren't running Win9x (or you want
99 to use DXTelnet or somesuch), then you need to have the machine
100 listening at least to "127.0.0.1" ("0.0.0.0" means <B>all</B> IP
101 addresses).
102 <P>
103 <H2><A NAME="ss6.2">6.2 The AGW packet engine</A>
104 </H2>
105
106 <P>On the assumption that you'll be using the SV2AGW Packet Engine
107 to interface your radios to the cluster, it would be a good idea to
108 download the Packet Engine software!  You can get this software from:
109 <P>
110 <A HREF="http://www.raag.org/sv2agw/agwpe.zip">http://www.raag.org/sv2agw/agwpe.zip</A><P>Depending upon your TNCs, you may also need to get:
111 <P>
112 <A HREF="http://www.raag.org/sv2agw/drivers.zip">http://www.raag.org/sv2agw/drivers.zip</A><P>A couple of the tools:
113 <P>
114 <A HREF="http://www.raag.org/sv2agw/agwterm.zip">http://www.raag.org/sv2agw/agwterm.zip</A><P>
115 <A HREF="http://www.raag.org/sv2agw/agwmonitor.zip">http://www.raag.org/sv2agw/agwmonitor.zip</A><P>will also help with troubleshooting of the RF links themselves.
116 <P>Install and configure AGWPE.  You should now create your own local copy of 
117 AGWConnect.pm by:-
118 <P>
119 <BLOCKQUOTE><CODE>
120 <PRE>
121 copy c:\spider\perl\AGWConnect.pm
122 c:\spider\local\AGWConnect.pm
123 </PRE>
124 </CODE></BLOCKQUOTE>
125 <P>and then
126 <P>
127 <BLOCKQUOTE><CODE>
128 <PRE>
129 notepad AGWConnect.pm
130 </PRE>
131 </CODE></BLOCKQUOTE>
132 <P>to bring up an editor window containing the file. You must
133 consider adjusting the following items in AGWConnect.pm:-
134 <P>
135 <UL>
136 <LI>$enable - set to '1' to enable AGWPE interface </LI>
137 <LI>$login  - the login ID you chose when you set up the SV2AGW security :-)</LI>
138 <LI>$passwd - password that matches $login</LI>
139 </UL>
140 <P>The login ID and passwd only need to be set if you are accessing AGW separately
141 via its web interface.  This interface is normally not needed for use with DXSpider.
142 <P>
143 <H2><A NAME="ss6.3">6.3 Setting up the initial user files</A>
144 </H2>
145
146 <P>Next you need to create the initial user files, etc. A tool is
147 supplied which will do this for you. To run the tool:-
148 <P>
149 <BLOCKQUOTE><CODE>
150 <PRE>
151 cd \spider\perl
152 perl create_sysop.pl
153 </PRE>
154 </CODE></BLOCKQUOTE>
155 <P>If all goes according to plan, you will see no output from this
156 program, and after a brief wait, your DOS prompt will be
157 returned.
158 <P>Depending on how brave you are, you might now care to try the
159 following:-
160 <P>
161 <BLOCKQUOTE><CODE>
162 <PRE>
163 perl cluster.pl
164 </PRE>
165 </CODE></BLOCKQUOTE>
166 <P>If you did everything you were told, your DOS window will now
167 hold a display which looks something like:-
168 <P>
169 <BLOCKQUOTE><CODE>
170 <PRE>
171 DXSpider DX Cluster Version 1.50
172 Copyright (c) 1998-2002 Dirk Koopman G1TLH
173 loading prefixes ...
174 loading band data ...
175 loading user file system ...
176 starting listeners ...
177 Internal port: localhost 27754
178 load badwords: Ok
179 reading in duplicate spot and WWV info ...
180 reading existing message headers ...
181 load badmsg: Ok
182 load forward: Ok
183 load swop: Ok
184 @msg = 0 before delete
185 @msg = 0 after delete
186 reading cron jobs ...v cron: reading /spider/cmd/crontab
187 cron: adding 1 0 * * 0
188 DXUser::export("$main::data/user_asc")
189 reading database descriptors ...
190 doing local initialisation ...
191 orft we jolly well go ...
192 queue msg (0)
193 </PRE>
194 </CODE></BLOCKQUOTE>
195 <P>Now, if that's what you've got, you are very nearly home and dry
196 (in as far as these particular experiments are concerned, anyhow)
197 <P>If you are running Windows 9x you can access your new cluster (from
198 the local machine) by finding yourself another "DOS box" and doing the
199 following:-
200 <P>
201 <BLOCKQUOTE><CODE>
202 <PRE>
203 cd \spider\perl
204 perl winclient.pl
205 </PRE>
206 </CODE></BLOCKQUOTE>
207 <P>If you are running Windows NT, 2000 or XP then winclient.pl does not
208 work. We don't know why other than this seems to be some kind of
209 incomaptibility in perl. You can achieve the same thing by telnetting
210 to the port you defined in Listeners.pm (7300 as default), thus:-
211 <P>
212 <BLOCKQUOTE><CODE>
213 <PRE>
214 Menu->Start->Run
215 telnet localhost 7300
216 </PRE>
217 </CODE></BLOCKQUOTE>
218 <P>On getting the <B>login:</B> prompt, enter your sysop callsign (the one you
219 put in DXVars.pm as $myalias).
220 <P>
221 <P>I would recommend <B>strongly</B> that you obtain a better telnet
222 client than that which comes with windows (I use 
223 <A HREF="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTY</A>). 
224 <P>
225 <P>Anyway, if you are rewarded with a display which looks something like:-
226 <P>
227 <BLOCKQUOTE><CODE>
228 <PRE>
229 Hello Iain, this is GB7SJP in Amersham, Bucks running DXSpider V1.50
230 Cluster: 1 nodes, 1 local / 1 total users Max users 2 Uptime 0 00:00
231 M0ADI de GB7SJP 4-Mar-2001 1511Z >
232 </PRE>
233 </CODE></BLOCKQUOTE>
234 <P>You've arrived. Try some commands, and see how they feel. (In
235 case you were wondering, "Iain", "M0ADI" and "GB7SJP" all came
236 from the version of DXVars.pm that was on the machine when I
237 started the winclient.pl)
238 <P>
239 <P>The interface is very basic. It is a simple command line. There are
240 better looking interfaces. Most of the "standard" logging and DX
241 Cluster access programs that are capable of connecting via a TCP or
242 telnet connection will work as a "Sysop Console" client. You connect
243 to "localhost" on the port that you defined in Listeners.pm (usually
244 7300). I recommend packages like 
245 <A HREF="http://www.qsl.net/wd4ngb/telnet.htm">DXTelnet</A>.
246 <P>
247 <H2><A NAME="ss6.4">6.4 Connecting to other clusters</A>
248 </H2>
249
250 <P>If you want to connect this to another cluster, then you'll want to
251 negotiate a link with someone. For experimental purposes, I'm happy to
252 allow folk to connect to GB7DXA (spud.ath.cx), on the understanding
253 that the system may or may not be there and may or may not be
254 connected to anything particularly useful at any given moment. Contact
255 me by 
256 <A HREF="mailto:g0rdi@blacksheep.org">Email</A> if you
257 want me to set up a connection for you.
258 <P>
259 <HR>
260 <A HREF="installation-7.html">Next</A>
261 <A HREF="installation-5.html">Previous</A>
262 <A HREF="installation.html#toc6">Contents</A>
263 </BODY>
264 </HTML>