home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
Linux
/
Magazine
/
wwwoffle-2.1.tar.gz
/
wwwoffle-2.1
/
INSTALL
< prev
next >
Wrap
Text File
|
1998-03-02
|
5KB
|
129 lines
WWWOFFLE - World Wide Web Offline Explorer - Version 2.0
========================================================
Simple Installation
-------------------
The following ten steps should be sufficient to demonstrate wwwoffle running.
1) Edit the Makefile and set the following:
The path for installation (INSTDIR) - default /usr/local
The spool directory (SPOOLDIR) - default /var/spool/wwwoffle
The configuration file location (CONFDIR) - default /var/spool/wwwoffle
The compiler options (CC and CFLAGS).
(The Makefile includes some machine specific options for non-Linux machines
that may need to be uncommented.)
2) Compile the programs
make all
3) Install the programs and create the spool directory
make install
**** Important * If you currently use version 1.x ****
You *MUST* run the program upgrade-cache to convert your cache from version
1.x format to version 2.x format. Read the file UPGRADE for details.
**** Important * If you currently use version 1.x ****
4) Edit the configuration file
$(CONFDIR)/wwwoffle.conf
**** Important * If you must use an external HTTP proxy ****
You will need to add the name of the proxy and the port number to the
configuration file $(CONFDIR)/wwwoffle.conf, read it for instructions.
**** Important * If you must use an external HTTP proxy ****
**** Important * If you currently use version 1.x ****
The configuration file $(CONFDIR)/wwwoffle.conf has changed, the file
CHANGES.CONF explains the differences since version 1.3.
**** Important * If you currently use version 1.x ****
5) Start the wwwoffle demon running.
$(INSTDIR)/sbin/wwwoffled -c $(SPOOLDIR)/wwwoffle.conf
**** Important * If you currently use version 1.2b or earlier ****
The wwwoffle demon now disconnects itself from the terminal when run unless
-d is used, this means that you do not need an '&' to run it in background.
**** Important * If you currently use version 1.2b or earlier ****
6) Start your WWW Browser and set up localhost:8080 as the proxy.
Disable caching between sessions within the browser.
7) a) Connect to the internet
b) Tell the wwwoffle demon that you are online
wwwoffle -online
c) Start browsing
d) Tell the wwwoffle demon that you are offline
wwwoffle -offline
e) Disconnect from the internet
8) 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).
9) a) Connect to the internet
b) Tell the wwwoffle demon that you are online
wwwoffle -online
c) Tell the wwwoffle demon to fetch the new pages
wwwoffle -fetch
d) Tell the wwwoffle demon that you are offline
wwwoffle -offline
e) Disconnect from the internet
10)a) Go to http://localhost:8080/index/ and find the newly downloaded pages.
b) Browse the new pages that have just been fetched.
Compile Time Options
--------------------
In the file wwwoffle.h there are a number of extra compile time options that you
may want to change.
The first three are the compiled in defaults for the options in the StartUp
section of the wwwoffle.conf file.
/*+ The default port number to use for the http proxy demon. +*/
#define DEF_HTTP_PORT 8080
/*+ The default port number to use for the wwwoffle control. +*/
#define DEF_WWWOFFLE_PORT 8081
/*+ The default spool directory. +*/
#define DEF_SPOOL "/var/spool/wwwoffle"
/*+ The default configuration file directory. +*/
#define DEF_CONF "/var/spool/wwwoffle"
The next one is the compiled in default for the Purge section age of files to
purge.
/*+ The default age of pages in days before purging. +*/
#define DEF_PURGE_AGE 14
The next four limit the number of connections that wwwoffle will accept at a
time and the number of servers that it will fork in response to this. A total
of MAX_SERVERS, including up to MAX_FETCH_SERVERS when 'wwwoffle -fetch' is run.
These are options in wwwoffle.conf, but the absolute maximum values can be
changed here as well as the default values.
/*+ The absolute maximum number of servers to fork in total. +*/
#define MAX_SERVERS 64
/*+ The default total number of servers to fork. +*/
#define DEF_MAX_SERVERS 8
/*+ The absolute maximum number of servers to fork for fetching previously
requested pages. +*/
#define MAX_FETCH_SERVERS 48
/*+ The default number of servers to fork for fetching pages. +*/
#define DEF_MAX_FETCH_SERVERS 4
The last one is the amount of time that wwwoffle will wait trying to read from a
server before giving up and putting an error mesage in the cache instead.
/*+ The time in seconds to wait while reading from a socket. +*/
#define SOCKET_TIMEOUT 120