home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / lynx272o.zip / INSTALLATION < prev    next >
Text File  |  1997-02-09  |  19KB  |  378 lines

  1. For a description of Lynx please read the README file.
  2.  
  3.         Lynx Installation guide.
  4.  
  5.         Last Updated February 1997
  6.  
  7. UNIX & VMS Step 1a. 
  8.     Most of the variables that you are likely to change are in the
  9.     userdefs.h file.  There are a few that you must change or verify,
  10.     and a few more that you will probably want to change.  The variables
  11.     that must be changed are marked as such in the userdefs.h file.
  12.     Just edit it and the changes should be straight forward.  You also
  13.     should check LYMessages_en.h for tailoring the Lynx statusline
  14.     prompts, messages and warnings to requirements of your site.
  15.  
  16.     NOTE: Many of the variables in userdefs.h are now configurable in
  17.       the lynx.cfg file.  Please read the lynx.cfg file as well.
  18.       Also see the example mime.types, mailcap and jumps files
  19.       in the samples subdirectory.
  20.  
  21. UNIX & VMS Step 1b. (optional)
  22.     Set up local printers and downloaders
  23.     in the lynx.cfg file.  (see lynx.cfg for details)
  24.  
  25. UNIX & VMS Step 1c. (optional)
  26.       If your system requires the PASV FTP code instead of
  27.       the standard PORT FTP code (e.g., to deal with a
  28.       firewall) then edit WWW/Library/Implementation/HTFTP.c
  29.       and comment out line 43 like so:
  30.       /*  #define LISTEN   /* @@@@ Test LJM */
  31.       On Unix you can define NOPORT in the top Makefile instead
  32.       of changing HTFTP.c
  33.  
  34. UNIX Step 1d.  (WAIS support is built into Lynx for VMS, skip to step 1e)
  35.     Adding Direct WAIS support.
  36.     Get the freeWAIS distribution from:
  37.         ftp://ftp.cnidr.org/pub/NIDR.tools/freewais
  38.     and compile it.  The compile process will create some libraries, you will 
  39.     need wais.a and client.a.  Edit the Makefile in the top level  directory 
  40.     and add the library locations under the DIRECT WAIS ACCESS heading.  
  41.     Edit the Makefile for the WWW Library in the
  42.     WWW/Library/Implementation/CommonMakefile to make the WAIS.c sources
  43.     in the library.  If everything goes well you should
  44.     be able to make and have direct WAIS access.
  45.  
  46. UNIX & VMS Step 1e.
  47.     Adding NEWS support.
  48.     To set your site's NTTP server as the default host for news reading
  49.     and posting via Lynx, set the environment variable NNTPSERVER so that
  50.     it points to its Internet address (see Step 5).
  51.  
  52.     For news posting ability to be enabled in Lynx, in userdefs.h (and
  53.     optionally in lynx.cfg) the NEWS_POSTING symbol must be defined to
  54.     TRUE.  Also define LYNX_SIG_FILE in usersdefs.h or lynx.cfg so that
  55.     it points to users' signature files for appending to posted messages.
  56.     For the Organization: header in news postings, Lynx checks for an
  57.     ORGANIZATION or NEWS_ORGANIZATION environment variable.  On Unix,
  58.     Lynx also checks for an /etc/organization file.
  59.  
  60. UNIX Step 1f. (Sun systems)
  61.     Sun resolv library.
  62.     On Sun systems you may need to define RESOLVLIB in the top Makefile
  63.     to enable access to remote hosts.  See the comments in the Makefile
  64.     and PROBLEMS file for more information.
  65.  
  66. VMS Step 1f.
  67.     Downloading binary files.
  68.     Lynx must handle all IO as streams, and on VMS, output files are always
  69.     created with Stream_LF format via the C RTL's fopen().  The file headers
  70.     indicate Implied Carriage Control, even when the transfer was in binary
  71.     mode, which can confuse downloading software and cause corruption of
  72.     the file contents.  To deal with this, you should define the symbol
  73.     USE_FIXED_RECORDS as TRUE in userdefs.h and/or lynx.cfg.  This will
  74.     instruct Lynx to correct the header information to indicate FIXED 512
  75.     records, with No Implied Carriage Control.  If Lynx fails to do the
  76.     conversion (because the file wasn't mapped to a binary MIME type) you can
  77.     execute FIXED512.COM externally to correct the header information.  The
  78.     command file uses Joe Meadow's FILE utility, or the SET FILE/ATTRIBUTES
  79.     command on current versions of VMS, to modify the headers.  See the
  80.     comments in FIXED512.COM, userdefs.h and lynx.cfg for more information.
  81.  
  82.  
  83. UNIX Step 2.
  84.     VMS users skip to 'VMS step 2'
  85.  
  86.     Check the top level Makefile for any site-specific definitions
  87.     you require or desire. Then, you should be ready to compile!
  88.  
  89.     If you type "make" with no arguments you will see a list of 
  90.     supported systems.  If your system type IS listed you just
  91.     need to type "make SYSTEM_TYPE".  For instance, if you are
  92.     running under IBM's RS/6000 AIX 3.2 you would just type
  93.     "make aix32".  If you were running Ultrix you would type
  94.     "make ultrix".
  95.  
  96.     If you are on a SUN workstation and do not have 'gcc' you 
  97.     may change 'gcc' to '/usr/5bin/cc' in the Makefile
  98.  
  99.     If you are on a system that is not listed in the makefile it may be
  100.     more difficult. The first thing you should try is just "make generic",
  101.     this will compile with the "fancy_curses" option, and will give a much
  102.     nicer screen display.  If it doesn't compile or if the screen display
  103.     looks strange (real strange), try compiling with the "low_curses" option.
  104.     Edit the Makefile and remove the '-DFANCY_CURSES' definition under the
  105.     'generic:' entry.  There may be some compatibility problems on some
  106.     systems, but we don't know what they might be at this point.  If you
  107.     are running on a currently unsupported system please contact us via
  108.     the lynx-dev email list (see RELEASE_STATEMENT).  If there are any
  109.     problems we will try to fix them as soon as possible.  
  110.  
  111. VMS step 2.
  112.     Lynx uses the VMS port of gzip for uncompressing streams which have
  113.     Content-Encoding headers indicated compression with gzip or the
  114.     Unix compress.  If you do not have gzip installed on your system
  115.     you can get it from ftp://ftp.wku.edu/ in the fileserv directory.
  116.     The command Lynx uses to uncompress on VMS is "gzip -d".
  117.  
  118.     If you are using the SOCKETSHR library, read SOCKETSHR.announce and
  119.     make sure you have defined SOCKETSHR and SOCKETSHR_LIBRARY as explained
  120.     therein.
  121.  
  122.     A "build.com" and "build-slang.com" script for building Lynx with curses
  123.     or slang is in the top level directory.  All you have to do is type
  124.     "@build" or "@build-slang" and answer its prompt for your system's TCP-IP
  125.     software.  Current choices are:
  126.            MULTINET (default)
  127.        UCX
  128.        WIN_TCP
  129.            CMU_TCP
  130.        SOCKETSHR_TCP
  131.        TCPWARE
  132.     It will autosense whether you have VAXC, DECC or GNUC on VAX or AXP
  133.     and build appropriately.  If a WWWLib already exists for that TCP-IP
  134.     software, it will prompt you for whether you want to rebuild it.  If
  135.     you want to build a WWWLib separately, you can type "@libmake.com"
  136.     with your default directory set to [.WWW.Library.vms] instead doing
  137.     it via "build.com" in the top directory.  You may need to modify
  138.     "build-slang.com", as described in its header, so that it can find
  139.     slang.olb on your system.  If you have both DECC and VAXC, it will
  140.     use DECC to benefit from the newer and more efficient memory management
  141.     functions.
  142.  
  143.     (optional compilation method)
  144.     If you have and want to use MMS, read the header of descrip.mms
  145.     in the top directory and be sure you include the appropriate macro
  146.     definitions when you invoke it:
  147.     $ MMS /Macro = (MULTINET=1)        for VAXC - MultiNet
  148.     $ MMS /Macro = (WIN_TCP=1)        for VAXC - Wollongong TCP/IP
  149.     $ MMS /Macro = (UCX=1)            for VAXC - UCX
  150.     $ MMS /Macro = (CMU_TCP=1)        for VAXC - OpenCMU TCP/IP
  151.     $ MMS /Macro = (SOCKETSHR_TCP=1)    for VAXC - SOCKETSHR/NETLIB
  152.     $ MMS /Macro = (TCPWARE=1)        for VAXC - TCPWare TCP/IP
  153.  
  154.     $ MMS /Macro = (MULTINET=1, DEC_C=1)    for DECC - MultiNet
  155.     $ MMS /Macro = (WIN_TCP=1, DEC_C=1)    for DECC - Wollongong TCP/IP
  156.     $ MMS /Macro = (UCX=1, DEC_C=1)        for DECC - UCX
  157.     $ MMS /Macro = (CMU_TCP=1, DEC_C=1)    for DECC - OpenCMU TCP/IP
  158.     $ MMS /Macro = (SOCKETSHR_TCP=1,DEC_C=1) for DECC - SOCKETSHR/NETLIB
  159.     $ MMS /Macro = (TCPWARE=1, DEC_C=1)    for DECC - TCPWare TCP/IP
  160.  
  161.     $ MMS /Macro = (MULTINET=1, GNU_C=1)    for GNUC - MultiNet
  162.     $ MMS /Macro = (WIN_TCP=1, GNU_C=1)    for GNUC - Wollongong TCP/IP
  163.     $ MMS /Macro = (UCX=1, GNU_C=1)        for GNUC - UCX
  164.     $ MMS /Macro = (CMU_TCP=1, GNU_C=1)    for GNUC - OpenCMU TCP/IP
  165.     $ MMS /Macro = (SOCKETSHR_TCP=1,GNU_C=1) for GNUC - SOCKETSHR/NETLIB
  166.     $ MMS /Macro = (TCPWARE=1, GNU_C=1)    for GNUC - TCPWare TCP/IP
  167.  
  168.         If you just type "MMS" it will default to the MULTINET and VAXC
  169.     configuration.  MMS will build the WWW library and Lynx sources,
  170.     and link the executable.  However, not all of the header dependencies
  171.     are specified.  If you are not a developer, and need a clean build,
  172.     you should use build.com instead of the MMS utility.
  173.  
  174.     If you want SOCKS support on VMS, you must add SOCKS as a compilation
  175.     definition, and the SOCKS library to the link command.  However, instead
  176.     of SOCKSifying Lynx for use behind a firewall, you are better off if you
  177.     build Lynx normally, and set up Lynx to use a proxy server (see below).
  178.     You instead can SOCKSify the proxy server, and it will handle all clients,
  179.     not just Lynx.
  180.  
  181.  
  182. UNIX Step 3.
  183.     Go ahead and test it out with the about_lynx/about_lynx.html file.
  184.     You shouldn't need to install Lynx to test it.
  185.     Once you are satisfied that it works, go ahead and install it.
  186.  
  187.     VERY IMPORTANT!!!!!
  188.         If you are setting up an anonymous account with Lynx you
  189.         are strongly advised to use the -anonymous command line
  190.         option.  If you do not use this option, users may be able
  191.         to gain access to all readable files on your machine.
  192.         ALSO NOTE that many implementations of telnetd allow passing
  193.         of environment variables, which might be used by unscrupulous
  194.         people to modify the environment in anonymous accounts.  When
  195.         making Lynx and Web access publicly available via anonymous
  196.         accounts intended to run Lynx captively, be sure the wrapper
  197.         uses the -cfg switch and specifies the startfile, rather than
  198.         relying on the LYNX_CFG, LYNX_CFG_FILE, or WWW_HOME variables.
  199.  
  200. VMS Step 3. 
  201.     Go ahead and test it out with the [.about_lynx]about_lynx.html file.
  202.     You shouldn't need to install Lynx to test it.
  203.     Once you are satisfied that it works, go ahead and install it.
  204.  
  205.     VERY IMPORTANT!!!!!
  206.         If you are setting up an anonymous account with Lynx you
  207.         are strongly advised to use the -anonymous command line
  208.         option.  If you do not use this option, users will be able
  209.         to gain access to all readable files on your machine.
  210.          ALSO NOTE that some implementations of telnet allow passing
  211.         of environment variables, which might be used by unscrupulous
  212.         people to modify the environment in anonymous accounts.  When
  213.         making Lynx and Web access publicly available via anonymous
  214.         accounts intended to run Lynx captively, be sure the wrapper
  215.         uses the -cfg switch and specifies the startfile, rather than
  216.         relying on the LYNX_CFG, LYNX_CFG_FILE, or WWW_HOME variables.
  217.  
  218.  
  219. UNIX Step 4. (Installation)
  220.     Lynx is very easy to install, if you want Lynx installed anywhere 
  221.     besides "/usr/local/bin", with the man files in "/usr/man/man1", you 
  222.     need to edit the Makefile and change the "exec" and "doc" defines.
  223.     Otherwise just "su" to root and type "make install" and make will
  224.     copy "lynx", "lynx.cfg" and  "lynx.1" to the specified directories.  
  225.     Those are the only two files necessary to run Lynx.  
  226.     lynx.1 isn't really necessary, but it should be available.
  227.     lynx.cfg isn't absolutely necessary either but is the only way
  228.     to configure printers and downloaders (and uploaders if DIRED_SUPPORT
  229.     is implemented), so it is highly recommended.
  230.     Also check out the mailcaps, mime.types and jumps file samples in the
  231.     samples directory.
  232.  
  233. VMS Step 4.
  234.     You need to have the executable in a public place, make it accessible,
  235.     define it as a foreign command, and copy lynx.cfg to "Lynx_Dir".  Look
  236.     at lynx.com in the samples directory as a model for installing Lynx.
  237.     Also check out the mailcaps, mime.types and jumps file samples in the
  238.     samples directory.  To include lynx.hlp in the system HELP library,
  239.     use the command:
  240.  
  241.             $ library/replace sys$help:helplib.hlb lynx.hlp
  242.  
  243.  
  244. UNIX and VMS Step 5.
  245.     Lynx uses some environment variables to regulate it's behavior.
  246.     
  247.     The variable "NNTPSERVER" is used to specify the host which will
  248.     be used as the default for news URLs.
  249.     
  250.     UNIX
  251.         setenv NNTPSERVER "news.server.dom"
  252.     
  253.     VMS
  254.         define/system NNTPSERVER "news.server.dom"
  255.  
  256.  
  257.     The environment variables "ORGANIZATION" or "NEWS_ORGANIZATION", if set,
  258.     will be used for the Organization: header in news postings.
  259.  
  260.  
  261.     The environment variable "LYNX_CFG", if set, will override the default
  262.     location and name of the global configuration file (lynx.cfg) that was
  263.     defined via the constant "LYNX_CFG_FILE" in userdefs.h.  See userdefs.h
  264.     for more information.
  265.  
  266.  
  267.     The environment variable "LYNX_TEMP_SPACE", if set, will override the
  268.     default path prefix for temporary files that was defined via the constant
  269.     "TEMP_SPACE" in userdefs.h.  See userdefs.h for more information.
  270.  
  271.  
  272.     The environment variable "LYNX_SAVE_SPACE", if set, will override the
  273.     default path prefix for files saved to disk that was defined via the
  274.     constant "SAVE_SPACE" in lynx.cfg.  See lynx.cfg for more information.
  275.  
  276.  
  277.     The variable "WWW_HOME", if set, will override the default startup
  278.     URL specified in any of the configuration files.
  279.  
  280.  
  281.     Lynx still supports use of gateway servers, with the servers specified
  282.     via the variables "WWW_access_GATEWAY", where "access" is lower case
  283.     and can be "http", "ftp", "gopher" or "wais".  Most of the gateway
  284.     servers have been discontinued, but "http://www.w3.org:8001" is
  285.     available for wais searches (note that you do not include a terminal
  286.     '/' for gateways, but do for proxies; see below).
  287.  
  288.  
  289.     Lynx version 2.2 and beyond supports the use of proxy servers that can
  290.     act as firewall gateways and caching servers.  They are preferable to
  291.     the older gateway servers.  Each protocol used by Lynx can be mapped
  292.     separately using PROTOCOL_proxy environment variables of the form:
  293.     
  294.         UNIX
  295.                 setenv http_proxy "http://some.server.dom:port/"
  296.                 setenv https_proxy "http://some.server.dom:port/"
  297.                 setenv ftp_proxy "http://some.server.dom:port/"
  298.                 setenv gopher_proxy "http://some.server.dom:port/"
  299.                 setenv news_proxy "http://some.server.dom:port/"
  300.                 setenv newspost_proxy "http://some.server.dom:port/"
  301.                 setenv newsreply_proxy "http://some.server.dom:port/"
  302.                 setenv snews_proxy "http://some.server.dom:port/"
  303.                 setenv snewspost_proxy "http://some.server.dom:port/"
  304.                 setenv snewsreply_proxy "http://some.server.dom:port/"
  305.                 setenv nntp_proxy "http://some.server.dom:port/"
  306.                 setenv wais_proxy "http://some.server.dom:port/"
  307.                 setenv finger_proxy "http://some.server.dom:port/"
  308.                 setenv cso_proxy "http://some.server.dom:port/"
  309.                 
  310.         VMS
  311.                 define "http_proxy" "http://some.server.dom:port/"
  312.                 define "https_proxy" "http://some.server.dom:port/"
  313.                 define "ftp_proxy" "http://some.server.dom:port/"
  314.                 define "gopher_proxy" "http://some.server.dom:port/"
  315.                 define "news_proxy" "http://some.server.dom:port/"
  316.                 define "newspost_proxy" "http://some.server.dom:port/"
  317.                 define "newsreply_proxy" "http://some.server.dom:port/"
  318.                 define "snews_proxy" "http://some.server.dom:port/"
  319.                 define "snewspost_proxy" "http://some.server.dom:port/"
  320.                 define "snewsreply_proxy" "http://some.server.dom:port/"
  321.                 define "nntp_proxy" "http://some.server.dom:port/"
  322.                 define "wais_proxy" "http://some.server.dom:port/"
  323.                 define "finger_proxy" "http://some.server.dom:port/"
  324.                 define "cso_proxy" "http://some.server.dom:port/"
  325.                 (Encase *BOTH* strings in double-quotes to maintain
  326.          lower case for the PROTOCOL_proxy variable and for
  327.          the http access type; include /system if you want
  328.          proxying for all clients on your system.)
  329.  
  330.     If you wish to override the use of a proxy server for specific hosts or
  331.     entire domains you may use the "no_proxy" environment variable. Here is
  332.     an example use of "no_proxy":
  333.           
  334.         UNIX
  335.                 setenv no_proxy "host.domain.dom, domain1.dom, domain2"
  336.                 
  337.         VMS
  338.                 define "no_proxy" "host.domain.dom, domain1.dom, domain2"
  339.  
  340.     You can include a port number in the no_proxy list to override use
  341.     of a proxy server for the host accessed via that port, but not via
  342.     other ports.  For example, if you use "host.domain.dom:119" and/or
  343.     "host.domain.dom:210", then news (port 119) URLs and/or any wais
  344.     (port 210) searches on that host would be excluded, but http, ftp,
  345.     and gopher services (if normally proxied) would still be included,
  346.     as would any news or wais services on other hosts.
  347.  
  348.     If you wish to override the use of a proxy server completely (i.e.,
  349.     globally override any existing proxy variables), set the value of
  350.     "no_proxy" to "*".
  351.  
  352.     Note that Lynx treats file URLs on the local host as requests for
  353.     direct access to the file, and does not attempt ftp if that fails.
  354.     It treats both ftp URLs and file URLs on remote hosts as ftp URLs,
  355.     and does not attempt direct file access for either.  If ftp URLs are
  356.     being proxied, file URLs on a remote host will be converted to ftp
  357.     URLs before submission by Lynx to the proxy server, so no special
  358.     procedure for inducing the proxy server to handle them is required.
  359.     Other WWW clients may require that the http server's configuration
  360.     file have "Map file:* ftp:*" in it to perform that conversion.
  361.  
  362.     The proxy and no_proxy variables also can be set at run time via
  363.     lynx.cfg.
  364.  
  365.     Copies of the Lynx online help are included in the lynx_help
  366.     subdirectory tree and should be made accessible in response to
  367.     the Lynx 'h'elp command by defining HELPFILE in userdefs.h and/or
  368.     lynx.cfg to an appropriate file://localhost/path URL.
  369.     
  370.  
  371. UNIX & VMS Step 6. (Hopefully Optional)
  372.     If something doesn't work, or you can't get it to compile at all, or
  373.     you can't figure out what one of the defines means, or if you just
  374.     want to make a comment, send an email message to the Lynx-Dev mailing
  375.     list (see the README file about subscribing to Lynx-Dev).  Until Lynx
  376.     has been ported to all the world's operating systems, we expect there 
  377.     will be some compatibility problems, but we'll do our best to help you.
  378.