home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / TCPIP / NNTP-1.000 / NNTP-1 / nntp.1.5.11t / server / README < prev    next >
Encoding:
Text File  |  1993-10-17  |  3.0 KB  |  89 lines

  1.      Caveat: Before compiling anything here, go look at README and conf.h
  2. in the "common" directory.  Fix conf.h up, and then come back here.
  3.  
  4.      Back already?  Ok.  Now following the bouncing numbers:
  5.  
  6.     1. Create the access file with the proper entries.
  7.        This file goes wherever you said ACCESS_FILE
  8.        was supposed to be in common/conf.h.  It's format is
  9.        explained in the manual entry for nntpd.8c.
  10.        A sample access file is in ../support/access_file.
  11.        If you don't care who (ab)uses your news server,
  12.        you can have the line "default read post" in your access
  13.        file, which will allow anyone on the network to
  14.        read and post news via your server.  See the manual
  15.        page for a better explanation.
  16.  
  17. Parts two and three are necessary if you're running with TCP:
  18.  
  19.     2. Make an entry for "nntp" in /etc/services.  Should
  20.        be port number 119, tcp.  I.e., should look something like:
  21.  
  22. nntp        119/tcp        readnews    # Network News Transfer Protocol
  23.  
  24.        Sun users running yp should yppush this file to make sure all
  25.        the clients get it.
  26.  
  27.     3. Check ../common/conf.h to make sure you're set to do what
  28.        you want to do with inetd (i.e., #define ALONE or #undef ALONE).
  29.        If you are using inetd,
  30.  
  31.        a. Add a line to /etc/inetd.conf, or whatever your
  32.           configuration file is, to reflect the presence
  33.           of the news server.  On 4.3 BSD machines and on Suns
  34.               running SunOS 4.X, this should look like:
  35.  
  36. nntp    stream    tcp    nowait    root    /etc/nntpd    nntpd
  37.  
  38.           while under Ultrix or 4.2 BSD machines:
  39.  
  40. nntp    stream    tcp    nowait    /etc/nntpd    nntpd
  41.  
  42.           On a Sun running SunOS 3.X the file is /etc/servers;
  43.               the line looks like:
  44.  
  45. nntp    tcp    /usr/etc/in.nntpd
  46.  
  47.           Be sure to yppush your /etc/servers file if you run
  48.           yellow pages.
  49.  
  50.           Don't forget to kill -HUP your inetd (or kill it and restart
  51.               it if you are on SunOS prior to version 4.1).
  52.  
  53.        If you're NOT using inetd,
  54.  
  55.        a. Edit ../common/conf.h to have the line
  56.  
  57.             #define ALONE
  58.  
  59.           to compile in code for the stand alone server.
  60.  
  61.        b. You may as well also define "FASTFORK" in
  62.           ../common/conf.h.  This causes the server not to
  63.           read in the active file every time it forks, but
  64.           rather to stat it every READINTVL seconds, and if
  65.           the file has changed since the last read, to
  66.           read it in again.  This makes the children run
  67.           faster, since they don't have to read the active
  68.           file every time the parent forks off a child, but
  69.           the parent server will eat more cpu, doing
  70.           stat()s every 10 minutes or so.  If your server machine
  71.           is heavily loaded, you might leave this out.
  72.  
  73.        c. Change /etc/rc.local to start the server at
  74.           boot time.
  75.  
  76. Else, if you're using decnet:
  77.  
  78.     2. && 3. Define the NNTP object with ncp:
  79.  
  80. ncp define object NNTP number 0 file /etc/nntpd
  81. ncp define object NNTP default user guest type stream
  82.  
  83. ncp set object NNTP all            # just once for the running system
  84.  
  85.     4. Compile the server by doing "make".
  86.  
  87.     5. Cd .. and continue with the rest of the stuff; you'll
  88.        wind up doing a make install later.
  89.