⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install.ms.2

📁 早期freebsd实现
💻 2
📖 第 1 页 / 共 3 页
字号:
\fIinnd\fP will close and re-assign two descriptors every 10 or so articles..PPA better alternative is to use funnels and an exploder.Funnels, specified in the \fInewsfeeds\fP file, let multiple sites sendtheir output down a single stream.The advantage of funnels is that this stream can be a channel; the primarydisadvantage is that the funnel specifies what data is to be written,not the individual sites.(Since most feeds will want either ``Wn'' or ``Wnm'' entries, this isusually not a problem.).PPIn order for the funnel output to be useful, it usually must be split intoindividual, per-site, files.Programs that do this type of splitting are called ``exploders.''INN provides two exploders, \fIfilechan\fP and \fIbuffchan\fP..PP\fIFilechan\fP is the simplest, and most inefficient, exploder.It does not keep any files open and is very system-call intensive.It can be used to provide behavior (and performance!) that is similar toB2.11 \fIinews\fP.It can, however, be used as the funnel for an unlimited number of sites..PP\fIBuffchan\fP keeps all its output files open all the time.It should not be used for more sites then a single process can have open.\fIBuffchan\fP also has flags to automatically flush its files, as wellas close and re-open them, every specified number of articles.(The re-open capability is useful for things like \fInntplink\fP in its\&``watch the batchfile'' mode.)Using \fIbuffchan\fP with the ``\-l1\ \-c50'' flags will give behaviorthat is similar to the C News \fIrelaynews\fP..PP\fIBuffchan\fP can be run as a full exploder (``Tx'') in the\fInewsfeeds\fP file.This means that you can use \fIctlinnd\fP to send a command line down\fIbuffchan\fP's input stream.(\fIInnd\fP will also send a command whenever newsgroups are modified.)The only useful message is ``flush'' which will close, and re-open, thespecified site files.You should also note that the flow is one-way; full exploders cannot sendany acknowledgement back..NH 1Master/slave replication.PPINN supports a simple model of replicated news databases:a single master host pushes out updates to its slaves.The master is the only host that receives articles \(em this includesboth outside newsfeeds and articles written by local users.The slaves only receive articles from the master..PPNo special work is required to set up a master host..PPA slave is set up by starting \fIinnd\fP with the ``\-S'' flag to specifythe name or IP address of the master host.This should be done by modifying the ``FLAG'' variable in your\fI_PATH_NEWSBOOT\fP script.If \fIinnd\fP is started with the ``\-S'' flag it will pass this flag onto \fInnrpd\fP.This means that when anyone connects to the slave and does a ``POST'' command,\fInnrpd\fP will connect to the master and offer the article..PPSince the \fInnrpd\fP on the slave host will usually add its name tothe Path header, you should add ``Ap'' to the \fIflags\fP field ofthe slave's entry on the master..PPOnce the slave has been set up it is necessary to have the master feed it.This is done by using an extension to the NNTP protocol.This extension, the ``XREPLIC'' command, is is documented in \fIinnd.8\fP.In order to do this you will have to set up a \fInewsfeeds\fP entry forthe slave.This should be a standard entry except that you will need to have boththe filename and the replication information written int the batchfile.To do this, put ``WnR'' in the \fIflags\fP field of the entry..PPWhen you want to actually send the articles to the slave site you willhave to specify the ``\-S'' flag in your \fIinnxmit\fP command.Current versions of \fInntplink\fP use the ``\-x'' flag..PPWhen running as a slave, \fIinnd\fP is very paranoid about staying synchronizedwith its master.Most noticeably, you should make sure that all newgroup and rmgroup controlmessages are handled identically on both systems..\".bp.SHAppendix IV:  First-time Usenet or NNTP Installation.PPSince the needs and administration of systems varies so much, I canonly give some general guidelines and advice in this section.Like .UXsystem administration in general, it is unfortunately still true thatmost of the job will be learned ``in the heat of the moment.''Once you have INN set up, however, it should not require much attention.For general problems, try posting to ``news.sysadmin'';use ``news.software.nntp'' and ``news.software.b'' for installation problems..PPOnce all the software has been compiled and installed, you must nowget a newsfeed.This involves having one (or more) sites pass along to you all thearticles that they have received.Getting articles is a passive action, because it is generally moreefficient that way.(The \fInntpget\fP program is primarily a debugging aide and utilityprogram.It is not the recommended way to get a newsfeed, and most sites willprefer you not to use it for that.).PPIf you already have Usenet access, you could post a note to ``news.admin''asking for a feed.Make sure to say that you are looking for an NNTP connection!If you are a member of an NSFNet regional network, or subscribe toa commercial IP network, ask your contact there at the network center.If they do not provide feeds directly, they can probably help you findone.You also might try writing to the <nntp-managers@colossus.apple.com>mailing list.This will reach the news administrators of many NNTP sites on the Internet.(If you want to join the list, remember to send it tonntp-managers-request, \fBnot\fP nntp-managers!).PPOnce have a site willing to give you a feed, you need to get thelist of groups that they will give you.You also need to create those groups on your machine.The easiest way to do this is usually to ask them for a copy oftheir active file, and for you to add the entries of the groups thatyou're interested in..PPOnce the groups are set up, your newsfeed will periodically connect toyour NNTP server and offer it any new articles that have arrived since thelast connection.\fIInnd\fP will accept the connection, receive the articles, andqueue them up for any sites that you feed..PPThe next step is to set it up so that your articles are sent back toyour newsfeed.To do this, create a \fInewsfeeds\fP entry, using the same name that showsup in the Path header that you see.(If you use a different name, then use the ``excludes'' sub-field to avoidoffering back everything they offer you.)This is usually done by giving them all non-local articles as a filefeed.For example, ``Foo, Incorporated'' does not give any foo.* articles toanyone else..PPWhen someone at your site writes an article, \fIinnd\fP will record thefilename in the batch file for your upstream site.Either \fIsend-nntp\fP or \fInntpsend\fP will flush and lock the batchfile,and then call \fIinnxmit\fP to connect to the remote site and send thesequeued articles out.You should edit the script to list the sites you want, and arrange for\fIcron\fP to run this script on a regular basis.You can run it as often as you like, but 10 minutes is a common interval..PPIf you want to feed any sites via UUCP, then you will have to setup file feed entries for them in the \fInewsfeeds\fP file, and arrangeto have \fIcron\fP run the \fIsend-uucp\fP script as desired.(UUCP batches are typically only done every few hours.).PPOnce you have news flowing in and out of the system, you will haveto expire it or your disks will fill up.The \fInews.daily\fP script should be run by \fIcron\fP in the middleof the night.It will summarize that day's log files, and then call \fIexpire\fP topurge old news.You might also want to have \fIcron\fP run \fIrnews\fP hourly to pickup any stalled batches.Finally, if your feeds change IP address, you might want a daily jobthat does ``ctlinnd reload hosts.nntp "flush cache"''.This is because \fIinnd\fP does not currently time-out DNS entries..PPYou will generally want to set up the \fIcron\fP jobsso that they are run as the news administrator, and not as root.A good version of \fIcron\fP that makes it easy to do this can be foundon gatekeeper.dec.com in pub/misc/vixie/cron.tar.Z..PPYou will also need to get one or more programs to read news.There are several freely-available programs around.\fIRn\fP is popular, and is probably the best place to start.The official distribution is available for anonymous FTP at tmc.eduin the \fIrn\fP directory..PPWelcome to Usenet, and have fun!.\".bp.SHAppendix V:  News overview database.PPThere are now many newsreaders available that are able to do ``threading.''This is the ability to track a discussion within a newsgroup by usingthe References header (or other data), regardless of changes in headerslike the Subject line.Examples of these readers include \fInn\fP, \fItrn\fP, and \fIgnus\fP,and more are becoming available.Until recently, a major problem with these readers is that they allrequired a specialized external database that contained the threadingdata..PPIn late 1992, Geoff Collyer <geoff@world.std.com> released the \fInov\fP,or ``news overview,'' package.This included database tools and, and client access routines,that let the current threaded newsreaders use a common, textual,database.An overview database typically adds adds about 7-9% to your storagerequirements.By default, the overview files are stored in the spool directory;you can change this to use an alternate tree that mirrors the spoolhierarchy by changing the \fI_PATH_OVERVIEWDIR\fP parameter..PPINN includes full support for creating and expiring news overview databases.To do this, add an entry like the following to your \fInewsfeeds\fP file:.DSoverview:*:Tc,WO:/path/to/bin/overchan.DE(Make sure to replace \fI/path/to/bin\fP with the value of your\fI_PATH_NEWSBIN\fP parameter.)Then reload the \fInewsfeeds\fP file or restart your server.To create the initial database, run the following command after you havestarted \fIoverchan\fP:.DSexpireover -a -s.DEYou will also need to expire the overview data.The easiest way to do this is to add the ``expireover'' keyword tothe \fIcron\fP job that runs \fInews.daily\fP..PPThe \fInnrpd\fP server includes two command extensions to access the database;they are documented in the ``protocol extensions'' part of \fIdoc/nnrpd.8\fP.INN does not include any client code or modifications to any newsreadersto use the overview data.Most maintainers have agreed to support the overview database, includingthe INN extensions for remote access.You can find prototype versions of many readers (work done by Geoff) onworld.std.com in the directory src/news; look for files named\fIreader\fP.dist.tar.Z..\".bp.SHAppendix VI:  Limited MIME Support.PPThis version of INN includes limited support for MIME, the MultipurposeInternet Mail Extensions, described in RFC 1341.The support is the ability to do limited transport of arbitraryMIME messages, and \fInnrpd\fP can add MIME headers to all local postingsthat do not have them..PPIn addition, there are patches available for \fInntplink\fP thatallow it to do MIME transport.The patches are not (yet) part of the official release; if you need them,contact Christophe Wolfhugel <Christophe.Wolfhugel@hsc-sec.fr>; he didmost of the INN work, too..PPYou should be very careful if you have \fInnrpd\fP add MIME headers.To do this, edit \fIinn.conf\fP as indicated in \fIdoc/inn.conf.5\fP.Once this is done, \fBall\fP articles posted will get MIME headers added.Existing MIME headers will not be modified, but missing ones will be added.The default values to add to \fIinn.conf\fP are these:.DSmime-version: 1.0mime-contenttype text/plain; charset=us-asciimime-encoding: 7bit.DEAn internationalized site might want to use these values:.DSmime-version: 1.0mime-contentType: text/plain; charset=iso-8859-1mime-encoding: 8bit.DEIt is possible to use these values because INN provides a clean eight-bitdata path.Unless you make special arrangements with your peers, however, youmust transmit seven-bit data.Doing this will require special transmit agents.Note that \fInnrpd\fP is not a Mime-compatible reader.You must have software to extract the data and present it appropriately..PPIf you configure your site to use seven-bit data, then you must alsomake sure that none of your software creates eight-bit articles.\fINnrpd\fP does not verify this.If you configure your site to use eight-bit data, then ASCII works fine,but remember that in quoted-printable long lines are cut andthat the equal sign (``='') is quoted; this is really bad for source codepostings, among others..PPThe character set can also cause problems.If you use ``iso-8859-1'' you must make sure that your posting softwareuses this character set (e.g., not CP-437 under MS-DOS) because \fInnrpd\fPdoes not do any conversion..PPIn general, be very cautious..PPMIME articles can only be sent using \fIinnxmit\fP; work on \fIbatcher\fPis in progress.Unless the ``\-M'' flag is used, no MIME conversions are done.If the flag is used, the following happens:Articles with a Content-Transfer-Encoding header of ``8bit'' or ``binary''are forwaded in ``quoted-printable'' format (the ``base64'' format willbe available soon).All other articles -- in particular, those without MIME headers, those oftype ``message'' or ``multipart,'' those with Content-Transfer-Encodingheader of ``7bit'' -- are forwarded without any change.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -