WWWOFFLE - Installation Instructions - Version 2.6b =================================================== There are only 10 steps required to install WWWOFFLE from the source code to a fully working and tested program. If you are using a binary release (Win32) then you should skip over the first 3 steps. Compilation ----------- 1) Edit the Makefile and set the following: The name & port of the server (LOCALHOST) - default localhost:8080 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 optional web page language (LANG) - default English only The compiler options (CC and CFLAGS). The choice of using compression or not (USE_ZLIB). (The Makefile includes some machine specific options for non-Linux machines that may need to be uncommented.) 2) Compile the programs make all **** Important **** To compile WWWOFFLE you will require a C compiler (e.g. gcc) a version of lex (e.g. GNU flex) and the appropriate development libraries and include files. **** Important **** 3) Install the programs and create the spool directory make install **** Important **** If you already use WWWOFFLE then you should stop the existing version running before doing the installation of the new version. **** Important **** You should look out for any output from make that is prefixed with 'WWWOFFLE:' this is important information and indicates that the installation process has found something that requires your action during the install. Configuration ------------- 4) Edit the configuration file 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 Proxy section of the configuration file 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 wwwoffle.conf has changed, the file CHANGES.CONF explains the differences since version 1.3. **** Important * If you currently use version 1.x **** **** Important * If you currently use version 2.x **** The configuration file wwwoffle.conf has changed, the file CHANGES.CONF explains the differences and upgrade-config.pl can fix them. **** Important * If you currently use version 2.x **** **** Important * If you currently use version 2.x **** The cache filenames have changed slightly, the file CONVERT explains the differences and convert-cache can fix them. **** Important * If you currently use version 2.x **** 5) Start the WWWOFFLE demon running. wwwoffled -c wwwoffle.conf This may require the full path to the wwwoffled program (usually /usr/local/sbin/wwwoffled) and the full path to the configuration file (usually /var/spool/wwwoffle/wwwoffle.conf), for example: /usr/local/sbin/wwwoffled -c /var/spool/wwwoffle/wwwoffle.conf 6) Start your WWW Browser and set up localhost:8080 as the proxy. Disable caching between sessions within the browser. Select the URL http://localhost:8080/ in the browser to test that WWWOFFLE is working. Testing ------- 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. Making WWWOFFLE Run Automatically --------------------------------- WWWOFFLE is designed to be easy to automate so that it is always running after the computer is booted and is always in the correct mode for being connected to the internet or not. The contrib/README file contains pointers to various methods of starting WWWOFFLE automatically and making sure that it is in the correct mode when online. 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. They are also used as the compiled in defaults for the wwwoffle program. /*+ 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 four limit the number of connections that wwwoffled 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 next one is the number of prevtime directories that are created to allow a history back beyond the latest time online. If this number is changed then the files /var/spool/wwwoffle/html/messages/IndexLastTime-Tail.html and IndexLastOut-Tail.html must be edited for the links to these to be visible. /*+ The number of pretime directories to create (lasttime history). +*/ #define NUM_PREVTIME_DIR 5 The next one is the size of the buffer that is used when reading data from the cache or from the network socket. /*+ The size of the buffer to use when reading from the cache or a socket. +*/ #define READ_BUFFER_SIZE 1024 The next two give the permissions that are used for the creation of directories and files in the cache (Don't forget the leading '0' for octal). /*+ The default permission for creating directories. +*/ #define DEF_DIR_PERM 0755 /*+ The default permission for creating files. +*/ #define DEF_FILE_PERM 0644