|
|
1.1 ! root 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 this should ! 34: 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, the file is /etc/servers; the line looks like: ! 43: ! 44: nntp tcp /usr/etc/in.nntpd ! 45: ! 46: Be sure to yppush your /etc/servers file if you run ! 47: yellow pages. ! 48: ! 49: Don't forget to kill -HUP your inetd. ! 50: ! 51: If you're NOT using inetd, ! 52: ! 53: a. Edit ../common/conf.h to have the line ! 54: ! 55: #define ALONE ! 56: ! 57: to compile in code for the stand alone server. ! 58: ! 59: b. You may as well also define "FASTFORK" in ! 60: ../common/conf.h. This causes the server not to ! 61: read in the active file every time it forks, but ! 62: rather to stat it every READINTVL seconds, and if ! 63: the file has changed since the last read, to ! 64: read it in again. This makes the children run ! 65: faster, since they don't have to read the active ! 66: file every time the parent forks off a child, but ! 67: the parent server will eat more cpu, doing ! 68: stat()s every 10 minutes or so. If your server machine ! 69: is heavily loaded, you might leave this out. ! 70: ! 71: c. Change /etc/rc.local to start the server at ! 72: boot time. ! 73: ! 74: Else, if you're using decnet: ! 75: ! 76: 2. && 3. Define the NNTP object with ncp: ! 77: ! 78: ncp define object NNTP number 0 file /etc/nntpd ! 79: ncp define object NNTP default user guest type stream ! 80: ! 81: ncp set object NNTP all # just once for the running system ! 82: ! 83: 4. Compile the server by doing "make". ! 84: ! 85: 5. Cd .. and continue with the rest of the stuff; you'll ! 86: wind up doing a make install later.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.