"Fossies" - the Fresh Open Source Software Archive

Member "apg-2.2.3/INSTALL" (7 Aug 2003, 2383 Bytes) of package /linux/privat/old/apg-2.2.3.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 Installation
    2 
    3 There are 2 types of installation: (1) stand-alone, (2) client-server
    4 (See README for details). You can use each type separetly or you can
    5 use them together.
    6 
    7 The simplest way to install this package is:
    8 1. untar the distribution and cd to the top:
    9 
   10     % gzip -d -c apg-2.X.XX.tar.gz | tar xf -
   11     % cd apg-2.X.XX
   12 
   13 If you are reading this file, you probably have already done this!
   14 
   15 2. Edit the Makefile
   16 
   17 3. make the software:
   18 
   19    For stand-alone:
   20 
   21       % make standalone
   22 
   23    For client-server:
   24 
   25       % make cliserv
   26 
   27    For both:
   28 
   29      % make all
   30 
   31 During the make process compiler will generate some warnings
   32 Just ignore this fact. I'm working to fix them.
   33 
   34 4. install the binaries and man pages. You may need to be superuser
   35 to do this (depending on where you are installing things):
   36 
   37      % su
   38      # make install
   39 
   40 5. You can remove the program binaries and object files from the
   41 source code directory by typing
   42 
   43      % make clean
   44 
   45 NOTE: THE REST IS FOR CLIENT-SERVER INSTALLATION ONLY !!!
   46 
   47 6. Modify your /etc/inetd.conf file to contain the line below.
   48 You may have to modify it to support your version of the file.
   49 
   50      pwdgen stream tcp nowait nobody /usr/local/sbin/apgd apgd [options]
   51 
   52 or
   53      pwdgen stream tcp nowait nobody /usr/sbin/tcpd /usr/local/sbin/apgd [options]
   54 
   55 if you use tcp_wrapers. (for options see apgd(8) manpage)
   56 
   57 For all OS versions you must modify, your /etc/services file needs
   58 to include the following line:
   59 
   60      pwdgen     129/tcp        # PWDGEN service
   61 
   62 7. Restart inetd with a
   63 
   64     # kill -HUP inetdpid
   65 
   66 8. Configure your syslogd daemon to handle events `daemon.info' and
   67 `daemon.debug' see syslogd(8) and syslog.conf(5)
   68 
   69 9. Check that apgd is working
   70 
   71     % telnet your.host.name 129
   72 
   73 or
   74 
   75     % telnet your.host.name pwdgen
   76 
   77 10. Customize your apgcli.pl - APG client
   78 Edit apgcli.pl file that can be found in src/perl directory of
   79 source distribution tree
   80 
   81 ----------------------------------> src/perl/apgcli.pl
   82 #!/usr/bin/perl -w                 # Put here the real location of perl
   83 $host = "localhost";               # Put here the name of your APG server
   84 use IO::Socket;
   85 $remote = IO::Socket::INET->new(
   86     Proto => "tcp",
   87     PeerAddr => $host,
   88     PeerPort => "pwdgen(129)",
   89     )
   90     or die "cannot connect to pwdgen port at $host";
   91 while ( <$remote> ) { print }
   92 ----------------------------------> src/perl/apgcli.pl
   93 
   94 END