File: README.win32

package info (click to toggle)
wwwoffle 2.9f-2.2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 7,716 kB
  • ctags: 2,077
  • sloc: ansic: 23,951; sh: 6,815; lex: 4,201; perl: 917; makefile: 623; ruby: 181; lisp: 14
file content (198 lines) | stat: -rw-r--r-- 7,968 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
      WWWOFFLE - World Wide Web Offline Explorer - Version 2.7 - Win32
      ================================================================


    *************************************************************************
    ** This file is rather out of date because it was written for earlier  **
    ** versions of WWWOFFLE and cygwin.  If you compile WWWOFFLE for Win32 **
    ** and can suggest changes then please let me know.                    **
    *************************************************************************


This is the Windows 32-bit version of the World Wide Web OFFline Explorer,
otherwise know as WWWOFFLE.  A UNIX version of this program has been available
since the start of 1997.  The possibility of a Windows version of the program
was brought to my attention by an investigation of the Cygwin development kit.


The Cygwin Development Kit
--------------------------

The Cygwin development kit is described in its FAQ as follows:

        The Cygwin tools are Win32 ports of the popular GNU development
        tools for Windows NT, 95, and 98. They function through the use
        of the Cygwin library which provides a UNIX-like API on top of
        the Win32 API.

        Use the tools to: 
        o Develop Win32 console or GUI applications, using the Win32 API.
        o Easily port many significant UNIX programs to Windows NT/9x
          without making significant source code changes. Configure and
          build most GNU software from source using standard Unix build
          procedures. 
        o Work in a fairly complete UNIX-like environment, with access to
          many common UNIX utilities (from both the provided bash shell
          and the standard Win32 command shell). 

More information about the Cygnus development kit and the GNU tools that are in
the development kit can be obtained from their web-sites.

http://cygwin.com/
http://www.gnu.org/

To compile WWWOFFLE you should use the latest version of the cygwin library.


Using WWWOFFLE
--------------

Because this version of WWWOFFLE is a port of a UNIX program (with negligible
changes from the UNIX version) some of the concepts and features may not be
familiar to users of MS Windows.

Filenames
- - - - -

On UNIX systems the '/' character is used as a path separator, DOS uses '\', you
should use the UNIX format in the wwwoffle.conf configuration file and in the
command line arguments.  One other change that has been made is that on DOS the
':' character is not allowed in filenames so the '!' character has been used in
the host sub-directory names instead.

On UNIX systems the filenames are case-sensitive and can be longer than 8.3
characters.  WWWOFFLE requires that the files that it creates keep their case
and are longer than 8.3 characters.

On UNIX systems there is no distinction between the separate disk drives like
there is under DOS.  With a DOS system there are drives 'A:', 'C:', 'D:' etc, on
UNIX all of the disks are accessed from the root directory '/'.  In the Cygnus
CDK and hence in WWWOFFLE all pathnames are expected to be in this format, the
drive that the operating system booted from (normally drive C:) is '/', drive
'A:' would be '//a/', drive 'D:' would be '//d/'.  You must use this format in
the wwwoffle.conf configuration file and in the command line arguments.

The default installation location for WWWOFFLE on UNIX is different from that
for Windows-32.

                        UNIX                                    Windows-32

Cached files:   /var/spool/wwwoffle                     /wwwoffle
Config file:    /etc/wwwoffle/wwwoffle.conf             /wwwoffle/wwwoffle.conf
Executables:    /usr/local/bin & /usr/local/sbin        /wwwoffle/bin
Documentation:  /usr/local/man/man*                     /wwwoffle/doc

In the documentation and the program you may find references to these pathnames
and filenames, you should make the appropriate conversions.

Other Terms
- - - - - -

Syslog        - The system logfile, many daemon processes (servers) write their
                status to this file.
Daemon        - A program (usually some type of server) that runs in the
                background and sleeps until it is called upon to do anything.
Username/uid  - Users on a UNIX system have to log on and are assigned a
                username and a numberic user ID (uid).
                [Not the same as a Windows 95/98 logon username]
Groupname/gid - Users on UNIX are also assigned to a group that has a name and a
                numeric Group ID (gid).
                [Not applicable to Windows 95/98]


Running WWWOFFLE
----------------

The WWWOFFLE server program 'wwwoffled' is typically it is started from the boot
time scripts (the equivalent to autoexec.bat on DOS). On a Win32 system I do not
know the best way of starting a program at boot time so I leave it to you to
decide.

The WWWOFFLE helper program 'wwwoffle' is run each time that the dial-up
connection is started or stopped.  This is normally done by the scripts that are
automatically run by the PPP connection process.  Again I do not know the best
way of doing this on Win32, the graphical interface to DUN does not appear to
allow for this.

Quick Demonstration
- - - - - - - - - -

To see what WWWOFFLE does, use the following steps for a quick demonstration.

1) Edit the configuration file
   c:\wwwoffle\wwwoffle.conf

2) Start the WWWOFFLE demon running.
   c:\wwwoffle\bin\wwwoffled

3) Start your web browser and set up localhost:8080 as the proxy.
   Disable caching between sessions within the browser.

4) a) Connect to the internet
   b) Tell the WWWOFFLE demon that you are online
        c:\wwwoffle\bin\wwwoffle -online
   c) Start browsing
   d) Tell the WWWOFFLE demon that you are offline
        c:\wwwoffle\bin\wwwoffle -offline
   e) Disconnect from the internet

5) Go back and browse the pages again while not connected, follow some different
   links this time (you will see a WWWOFFLE server message in the browser).

6) a) Connect to the internet
   b) Tell the WWWOFFLE demon that you are online
        c:\wwwoffle\bin\wwwoffle -online
   c) Tell the WWWOFFLE demon to fetch the new pages
        c:\wwwoffle\bin\wwwoffle -fetch
   d) Tell the WWWOFFLE demon that you are offline
        c:\wwwoffle\bin\wwwoffle -offline
   e) Disconnect from the internet

7) a) Go to http://localhost:8080/index/ and find the newly downloaded pages.
   b) Browse the new pages that have just been fetched.


Running WWWOFFLE as a service
-----------------------------

One way to run WWWOFFLE is to install it as a service using the cygrunsrv
program that comes with the cygnus toolset.

The command that you would use to do this is (all on one line):

cygrunsrv -I wwwoffle -p /usr/local/sbin/wwwoffled.exe -o
          -a "-c /etc/wwwoffle/wwwoffle.conf -d"


Win32 Problems
--------------

If accessing WWWOFFLE is very slow then it could be that there are problems with
performing DNS lookups to see which hosts are connecting to WWWOFFLE.  Windows
can use a UNIX style hosts file to specify local hostnames.  The file is named
c:\windows\hosts or c:\winnt\hosts and contains a list of IP addresses and
hostnames.

For example if you have two hosts on the 192.168.0.* subnet called host1 and
host2 you would put the following in the hosts file.

192.168.0.1   host1
192.168.0.2   host2


Other Information
-----------------

You should read the rest of the documentation about WWWOFFLE, in particular the
FAQ and README.1st file.  These should answer your questions or at least point
you in the direction of how to contact me for information.

There may be other UNIX biased features of WWWOFFLE in the documentation of the
program itself.  Since this is the first version of WWWOFFLE that works on Win32
platforms I hope that you will try and work around any problems.  I will try and
make sure that the next version has more applicable information.



Andrew M. Bishop
August 24th 2001