| 1 |
CONFIGURATION AND INSTALLATION OF NN |
| 2 |
------------------------------------ |
| 3 |
|
| 4 |
RELEASE 6.7 |
| 5 |
|
| 6 |
|
| 7 |
This file describes the necessary steps to configure and install nn. |
| 8 |
You are advised to read this file before proceeding with the installation. |
| 9 |
|
| 10 |
If you've configured/installed nn before, you can probably ignore this file |
| 11 |
and proceed to editing config.h. Note that there are new variables in |
| 12 |
config.h, so copying one from nn-6.6 won't work. (Though it can obviously |
| 13 |
be used as a guide). |
| 14 |
|
| 15 |
The following command line prompts are used in the examples: |
| 16 |
`$' is used when no special privileges are required. |
| 17 |
`#' is used when SUPER USER privileges may be required. |
| 18 |
|
| 19 |
Note that this file still assumes in many places that you will be running |
| 20 |
nnmaster. If you are using NOV instead, you should ignore anything dealing |
| 21 |
with nnmaster and its database. If you are only installing the nn client, |
| 22 |
you can also ignore steps 3.5, 6, and 7. |
| 23 |
|
| 24 |
|
| 25 |
STEP 1 |
| 26 |
|
| 27 |
CONFIGURATION OF MAKEFILE |
| 28 |
------------------------- |
| 29 |
|
| 30 |
Check the 'Makefile' file and supply the proper values for the |
| 31 |
following parameters: |
| 32 |
|
| 33 |
CC The command to invoke the C compiler |
| 34 |
|
| 35 |
CPP The command to invoke the C preprocessor with the result |
| 36 |
written to the standard output stream. |
| 37 |
|
| 38 |
CFLAGS Flags to the C compiler (e.g. -O or -g) |
| 39 |
|
| 40 |
LDFLAGS Additional flags to the C compiler when linking executables |
| 41 |
|
| 42 |
Notice that mandatory system specific CFLAGS and LDFLAGS are usually |
| 43 |
defined in the s- file (see below). |
| 44 |
|
| 45 |
|
| 46 |
STEP 2 |
| 47 |
|
| 48 |
CREATE CONFIGURATION FILE config.h |
| 49 |
---------------------------------- |
| 50 |
|
| 51 |
The configuration file is distributed in the file config.h-dist. You |
| 52 |
must COPY this to config.h before proceeding. Keep the original -dist |
| 53 |
file to allow patches to be applied to it if necessary. |
| 54 |
|
| 55 |
$ cp config.h-dist config.h |
| 56 |
|
| 57 |
|
| 58 |
STEP 3 |
| 59 |
|
| 60 |
EDIT config.h TO REFLECT YOUR SYSTEM |
| 61 |
------------------------------------ |
| 62 |
|
| 63 |
For each required configuration parameter, the config.h file contains |
| 64 |
verbose comments explaining the meaning of each parameter in the file. |
| 65 |
Read and follow these instructions carefully. If you do that, nn |
| 66 |
should compile and run without problems. |
| 67 |
|
| 68 |
Further information about the parameters can be found below in case |
| 69 |
you are in doubt. Regarding the NNTP related definitions, consult the |
| 70 |
file named olddoc/NNTP. Note that the information there is out of date. |
| 71 |
|
| 72 |
Notice that every time you edit config.h, the file update.h is |
| 73 |
modified to make a new configuration level for the version in the |
| 74 |
source directory. The current configuration is showed in the version |
| 75 |
string as #number. |
| 76 |
|
| 77 |
|
| 78 |
STEP 3.1: SPECIFY NOV AND NNTP CONFIGURATION |
| 79 |
------------------------------------------------ |
| 80 |
|
| 81 |
If you will be connecting to a newsserver that uses NOV (and nearly all of |
| 82 |
them do these days), define NOV. |
| 83 |
|
| 84 |
If you use nn on a single system with news on its local disks, you |
| 85 |
will not have to worry the least about networking, and you simply |
| 86 |
leave NNTP undefined. |
| 87 |
|
| 88 |
|
| 89 |
STEP 3.2: SELECT SYSTEM FILE |
| 90 |
---------------------------- |
| 91 |
|
| 92 |
A list of systems that nn runs on and their associated include files |
| 93 |
is found in the file MACHINES. |
| 94 |
|
| 95 |
If none of these can be used on your system, create your own based on |
| 96 |
the file conf/s-template.h. |
| 97 |
|
| 98 |
|
| 99 |
STEP 3.3: SELECT MACHINE FILE |
| 100 |
----------------------------- |
| 101 |
|
| 102 |
A list of machines that nn runs on and their associated include files |
| 103 |
is found in the file MACHINES. |
| 104 |
|
| 105 |
If you cannot use one of these machine files create your own based on |
| 106 |
the file conf/m-template.h. |
| 107 |
|
| 108 |
|
| 109 |
STEP 3.4: LOCALIZE NN |
| 110 |
--------------------- |
| 111 |
|
| 112 |
You will have to specify a number of files and directories which nn |
| 113 |
has to know about to work properly. If you don't specify these, nn |
| 114 |
will in most cases use it own alternatives which will correspond to |
| 115 |
common practices on most installations. |
| 116 |
|
| 117 |
The following directories and files can be defined in config.h: |
| 118 |
|
| 119 |
|
| 120 |
BIN_DIRECTORY (mandatory) |
| 121 |
|
| 122 |
The directory where you want the user programs to be |
| 123 |
installed. The following programs will be installed in that |
| 124 |
directory: |
| 125 |
|
| 126 |
nn The news reader program |
| 127 |
nnacct Accounting, quota, and access management |
| 128 |
nnadmin The administration program (link to nn) |
| 129 |
nncheck Check for unread articles (link to nn) |
| 130 |
nngoback Mark older articles as unread (link to nn) |
| 131 |
nngrab Faster keyword search |
| 132 |
nngrep Grep for news groups (link to nn) |
| 133 |
nnpost Standalone posting program (link to nn). |
| 134 |
nnstats Collection and expiration statistics |
| 135 |
nntidy Cleans up the rc file (link to nn) |
| 136 |
nnusage Show usage statistics |
| 137 |
nnview Reads mail folders (link to nn) |
| 138 |
|
| 139 |
|
| 140 |
LIB_DIRECTORY |
| 141 |
|
| 142 |
The directory where nn's auxiliary programs and files will |
| 143 |
be installed unless another directory is specified by one of |
| 144 |
the following definitions. |
| 145 |
|
| 146 |
|
| 147 |
MASTER_DIRECTORY (optional, default = LIB_DIRECTORY) |
| 148 |
|
| 149 |
The directory containing the nnmaster daemon programs. It |
| 150 |
should not be shared in a networked environment! |
| 151 |
|
| 152 |
back_act |
| 153 |
Program to make daily copies of the active file to |
| 154 |
allow nngoback to work. |
| 155 |
|
| 156 |
nnmaster |
| 157 |
The program building and maintaining nn's database. |
| 158 |
|
| 159 |
nnspew Program to build a tertiary subject database for |
| 160 |
nngrab. |
| 161 |
|
| 162 |
MPID Exclusive lock file created by the currently running |
| 163 |
nnmaster daemon process. Accessed by nnadmin to |
| 164 |
get the daemon's process id. |
| 165 |
|
| 166 |
GATE Message file created by nnadmin and deleted by nnmaster. |
| 167 |
|
| 168 |
|
| 169 |
CLIENT_DIRECTORY (optional, default = LIB_DIRECTORY) |
| 170 |
|
| 171 |
Contains the auxiliary programs and files required by the nn |
| 172 |
program: |
| 173 |
|
| 174 |
aux The shell script used in connection with replies etc. |
| 175 |
It knows about common editors like vi and gnu emacs to |
| 176 |
have them position the cursor appropriately. To add |
| 177 |
support for your own favorite editor, you should edit |
| 178 |
the file aux.sh, not the compiled `aux' script! |
| 179 |
|
| 180 |
upgrade_rc |
| 181 |
Script used by nn to convert release 6.3 rc files to .newsrc |
| 182 |
format when first invoked after upgrade to 6.4 or later. |
| 183 |
|
| 184 |
|
| 185 |
HELP_DIRECTORY (optional, default = CLIENT_DIRECTORY/help) |
| 186 |
|
| 187 |
The directory where the help files and online manual are |
| 188 |
stored. This directory is an obvious candidate for sharing in |
| 189 |
a network. |
| 190 |
|
| 191 |
|
| 192 |
CACHE_DIRECTORY (optional, default = each user's .nn directory) |
| 193 |
|
| 194 |
Only used with NNTP!! Directory to be used as a common storage |
| 195 |
for temporary cache files when nn is used with NNTP. Using a |
| 196 |
common directory for cache files allows you to clean these out |
| 197 |
on reboot with a single "rm" command in the rc file: |
| 198 |
(cd CACHE_DIRECTORY; rm -f *) |
| 199 |
But of course this requires that you use a separate directory |
| 200 |
for the cache! |
| 201 |
|
| 202 |
|
| 203 |
TMP_DIRECTORY (optional, default = /usr/tmp) |
| 204 |
|
| 205 |
The directory to be used as temporary storage for files used |
| 206 |
when editing responses etc. |
| 207 |
|
| 208 |
|
| 209 |
LOG_FILE (optional, default = LIB_DIRECTORY/Log) |
| 210 |
|
| 211 |
The log file used by nnmaster and nn to store reports, error |
| 212 |
messages, usage statistics, etc. |
| 213 |
|
| 214 |
|
| 215 |
NEWS_DIRECTORY (optional, default = /usr/spool/news) |
| 216 |
|
| 217 |
The directory containing the news spool directories and files. |
| 218 |
It is not required when a remote NNTP server is used. |
| 219 |
|
| 220 |
|
| 221 |
NEWS_LIB_DIRECTORY (optional, default = /usr/lib/news) |
| 222 |
|
| 223 |
The directory containing the news system's active file and |
| 224 |
other related files. |
| 225 |
|
| 226 |
|
| 227 |
STEP 3.5: WHERE DO YOU WANT THE DATABASE? |
| 228 |
----------------------------------------- |
| 229 |
|
| 230 |
The following definitions in config.h are used to control where the |
| 231 |
database maintained by nnmaster is stored. The database consists of a |
| 232 |
couple of files containing global information for all existing groups, |
| 233 |
and a pair of files for each non-empty group. The database requires |
| 234 |
some disk space to hold the necessary information. On average about |
| 235 |
100 bytes per article in the system, or about 5% of the space |
| 236 |
allocated to the news articles. |
| 237 |
|
| 238 |
The database is intended to be shared together with the news spool |
| 239 |
directory in a networked environment provided that NETWORK_DATABASE is |
| 240 |
defined in config.h. |
| 241 |
|
| 242 |
If DB_DIRECTORY is not defined, the global database files will be |
| 243 |
located in a directory named NEWS_DIRECTORY/.nn, and the per-group |
| 244 |
files will be located in each individual news group's directory (named |
| 245 |
.nnd and .nnx). Using this strategy will normally require that |
| 246 |
nnmaster is owned "news" (OWNER in config.h). |
| 247 |
|
| 248 |
The location of the database can be changed via the following |
| 249 |
definitions in config.h: |
| 250 |
|
| 251 |
DB_DIRECTORY (optional, default = see above) |
| 252 |
The directory containing the global database information files. |
| 253 |
If you share /usr/spool/news via NFS or RFS, you can set DB to |
| 254 |
something like /usr/spool/news/.nn to share it automatically |
| 255 |
with /usr/spool/news. |
| 256 |
|
| 257 |
DB_DATA_DIRECTORY (optional, default = DB_DIRECTORY/DATA) |
| 258 |
When DB_DIRECTORY is defined, the per-group files will no |
| 259 |
longer be stored in the group directories, but in a single |
| 260 |
common directory specified by DB_DATA_DIRECTORY. The files in |
| 261 |
this directory will be named either by group number or by |
| 262 |
group name (if DB_LONG_NAMES is also defined). |
| 263 |
|
| 264 |
|
| 265 |
The files config.h and NNTP describes how to share the database |
| 266 |
between several machines (also when you don't use NNTP). |
| 267 |
|
| 268 |
|
| 269 |
STEP 4 |
| 270 |
|
| 271 |
COMPILE THE SOFTWARE |
| 272 |
-------------------- |
| 273 |
|
| 274 |
To compile the software, you just have to run one of the following |
| 275 |
make commands. |
| 276 |
|
| 277 |
If you are making a complete package with both master and client, do |
| 278 |
|
| 279 |
$ make all |
| 280 |
|
| 281 |
If you want to share a database which resides on another host (through |
| 282 |
NFS/RFS/rdist), you don't need a master on the local system, so you |
| 283 |
can do the following instead: |
| 284 |
|
| 285 |
$ make client |
| 286 |
|
| 287 |
|
| 288 |
STEP 5 |
| 289 |
|
| 290 |
INSTALLING THE SOFTWARE |
| 291 |
----------------------- |
| 292 |
|
| 293 |
Installation of the nn software is handled entirely via a script |
| 294 |
"./inst" created during the compilation. The components of nn are |
| 295 |
split into five parts, which can be installed separately or in various |
| 296 |
combinations depending on whether you run a stand-alone system or |
| 297 |
networked systems sharing the database and other parts of the nn |
| 298 |
package. The five components are: |
| 299 |
|
| 300 |
1) Master files and programs (machine dependent) |
| 301 |
Install the MASTER_DIRECTORY programs. |
| 302 |
|
| 303 |
2) User files and programs (machine dependent, shareable) |
| 304 |
Install the BIN_DIRECTORY programs. |
| 305 |
|
| 306 |
3) Auxiliary programs (configuration dependent, shareable) |
| 307 |
Install the CLIENT_DIRECTORY files and programs. |
| 308 |
|
| 309 |
4) Documentation (shareable) |
| 310 |
Install the MAN pages in the proper directories. |
| 311 |
|
| 312 |
5) Help files (shareable) |
| 313 |
Install the HELP_DIRECTORY files (except online manual). |
| 314 |
|
| 315 |
6) Online manual (shareable with 5) |
| 316 |
Format and install the online manual in HELP_DIRECTORY. |
| 317 |
|
| 318 |
|
| 319 |
Unless you have defined yourself as the owner of the nn package and |
| 320 |
have write permission on all the necessary directories, you will need |
| 321 |
to be super-user to install nn, so start with |
| 322 |
|
| 323 |
$ su |
| 324 |
|
| 325 |
Now run the installation script: |
| 326 |
|
| 327 |
# ./inst |
| 328 |
|
| 329 |
The `inst' script will list a menu with the following choices: |
| 330 |
|
| 331 |
(1)-(6) Install individual parts of the package. |
| 332 |
|
| 333 |
(s) Install a complete server + client package (1-6). |
| 334 |
|
| 335 |
(c) Install a client which accesses all its support files and |
| 336 |
the database via a network (2). |
| 337 |
|
| 338 |
(h) Install a client with local auxiliary files, but shared |
| 339 |
documentation and help files (2-3). |
| 340 |
|
| 341 |
(n) Install a client accessing only the database via a network (2-6). |
| 342 |
|
| 343 |
(m) Install only the nnmaster (1). |
| 344 |
|
| 345 |
(c) Install only the client programs (2). |
| 346 |
|
| 347 |
(u) Update already installed parts of the package. This will |
| 348 |
check for the existence of the old programs, and only update |
| 349 |
programs and files already installed. You will typically use |
| 350 |
this after applying patches. |
| 351 |
|
| 352 |
You can also run the `inst' script with the choices as arguments, e.g. |
| 353 |
|
| 354 |
./inst m c |
| 355 |
|
| 356 |
|
| 357 |
NOTICE: Since nnmaster runs setuid OWNER, all users can potentially |
| 358 |
kill the running master, initialize the database etc. if they |
| 359 |
have access to execute the master. So either restrict the |
| 360 |
permissions to execute nnmaster or the access to the directory |
| 361 |
containing it. The default installation puts modes -rwsr-s--- |
| 362 |
on nnmaster and leaves the directory "open" which may not be |
| 363 |
adequate for you. |
| 364 |
|
| 365 |
|
| 366 |
STEP 6 |
| 367 |
|
| 368 |
INITIALIZE THE DATABASE |
| 369 |
----------------------- |
| 370 |
|
| 371 |
If you have installed the nnmaster on the current system, you now have |
| 372 |
to initialize the database: |
| 373 |
|
| 374 |
$ su -- also as superuser |
| 375 |
# ./inst INIT |
| 376 |
|
| 377 |
If something goes wrong in this step, e.g. problems with the active |
| 378 |
file, you must redo the initialization after fixing the other |
| 379 |
problems. |
| 380 |
|
| 381 |
When the INIT operation completes, a database with empty entries for |
| 382 |
all the currently existing groups will have been created. If you want |
| 383 |
some special actions to be performed for specific groups as described |
| 384 |
in the nnmaster manual, you must now edit the GROUPS file created by |
| 385 |
nnmaster in the DB_DIRECTORY. If you modify the GROUPS file, you must |
| 386 |
run the following command to register the changes to the GROUPS file. |
| 387 |
|
| 388 |
$ MASTER_DIRECTORY/nnmaster -G |
| 389 |
|
| 390 |
When you are ready, you must start nnmaster to enter all the existing |
| 391 |
articles into the database. If you use the following command, |
| 392 |
nnmaster will fork and return immediately; its background child will |
| 393 |
continue to update the database whenever new articles arrive: |
| 394 |
It will ignore articles which are more than 45 days old (-O). |
| 395 |
|
| 396 |
$ MASTER_DIRECTORY/nnmaster -r -O45 |
| 397 |
|
| 398 |
It may take quite a while before all existing articles have been |
| 399 |
entered into the database. You can use nnadmin's (U)pdate and (S)tat |
| 400 |
commands to trace the progress and the (L)og command to see if it has |
| 401 |
finished (a C entry will occur). You will see that many groups will |
| 402 |
be BLOCKED, but the number should decrease as nnmaster gets through |
| 403 |
more and more groups. |
| 404 |
|
| 405 |
You can also use the following command to do the initial collection of |
| 406 |
articles from a terminal and get a nice trace of the action: |
| 407 |
|
| 408 |
$ MASTER_DIRECTORY/nnmaster -D -O45 |
| 409 |
|
| 410 |
One or two numbers will be shown while a group is being collected. |
| 411 |
The first number is the number of the article currently being read. |
| 412 |
The (optional) second number will be the number of old (or bad) |
| 413 |
articles which nnmaster has ignored in the group so far. |
| 414 |
|
| 415 |
|
| 416 |
NOTICE: If the system file you have used does not specify how to |
| 417 |
detatch a process from its controlling terminal, the nnmaster |
| 418 |
may die when you log out. |
| 419 |
|
| 420 |
When nnmaster has finished the initial collection the articles, you |
| 421 |
can nnadmin's (V)alidate command to verify that the database build by |
| 422 |
nnmaster is consistent (restart nnadmin before verifying). |
| 423 |
|
| 424 |
|
| 425 |
STEP 7 |
| 426 |
|
| 427 |
UPDATE SYSTEM FILES |
| 428 |
------------------- |
| 429 |
|
| 430 |
You will have to edit some of the scripts and files on your system to |
| 431 |
get the database and other support files updates automatically, also |
| 432 |
following system shutdown, crashes, etc. |
| 433 |
|
| 434 |
|
| 435 |
STEP 7.1: START NNMASTER WHEN SYSTEM IS BOOTED |
| 436 |
---------------------------------------------- |
| 437 |
|
| 438 |
To have the database updated at all times, the nnmaster should be |
| 439 |
started when the system is booted. |
| 440 |
|
| 441 |
There will be a file named /etc/rc, a directory /etc/rc.d, or |
| 442 |
something similar on your system which contains commands that are |
| 443 |
executed when the system is booted. The following commands should be |
| 444 |
added to the boot scripts: |
| 445 |
|
| 446 |
rm -f MASTER_DIRECTORY/MPID |
| 447 |
MASTER_DIRECTORY/nnmaster -l -r -C |
| 448 |
|
| 449 |
|
| 450 |
Alternatively, you can arrange for cron to run the master regularly. |
| 451 |
In this case, you should not use the -r and -C options. Instead, you |
| 452 |
should let cron execute the command 'nnadmin Z' once a day to |
| 453 |
validate the database. For example: |
| 454 |
|
| 455 |
0,10,20,30,40,50 * * * * MASTER/nnmaster -LM |
| 456 |
0 0 * * * BIN/nnadmin Z |
| 457 |
|
| 458 |
|
| 459 |
WARNING: If you share the database via NFS or RFS, nnmaster should run |
| 460 |
only on the system where the database actually resides!! |
| 461 |
And preferably it should run on the host where the news spool |
| 462 |
directory is located as well. This will improve speed as well |
| 463 |
as reliability (NFS can suffer from time out problems). |
| 464 |
|
| 465 |
|
| 466 |
STEP 7.2: SETUP EXPIRE ON THE DATABASE |
| 467 |
-------------------------------------- |
| 468 |
|
| 469 |
To run expire on the database, you simply have to execute the |
| 470 |
following command (with sufficient privileges): |
| 471 |
|
| 472 |
BIN_DIRECTORY/nnadmin =EYW |
| 473 |
|
| 474 |
You should arrange for expire to be run on nn's database whenever you |
| 475 |
have run expire on the news directories. |
| 476 |
|
| 477 |
Supposing you run the expire from your crontab, you may simply add the |
| 478 |
above command to the crontab at an appropriate time when you are |
| 479 |
certain that news' expire is completed. |
| 480 |
|
| 481 |
If you run nnmaster from cron rather than in daemon mode, you can use |
| 482 |
the following command to run expire on the database. |
| 483 |
|
| 484 |
nnmaster -F -k "" |
| 485 |
|
| 486 |
This form allows you to run expire on selected groups rather than on |
| 487 |
all groups as initiated by the above nnadmin command. See the |
| 488 |
nnmaster manual for further details. |
| 489 |
|
| 490 |
|
| 491 |
STEP 7.3: SAVE A COPY OF THE ACTIVE FILE ONCE A DAY |
| 492 |
--------------------------------------------------- |
| 493 |
|
| 494 |
The `nngoback' program requires that the program `back_act' is |
| 495 |
executed once (and only once) every day to maintain suitable copies of |
| 496 |
the active files for the last 14 days. In a network environment, it |
| 497 |
should execute on the same host as the nnmaster. |
| 498 |
|
| 499 |
Simply arrange for back_act to be invoked by cron once a day |
| 500 |
(preferably just before the batch of news for `today' arrives). For |
| 501 |
example, assuming the news is received just before midnight (syntax |
| 502 |
and location of crontab entry may vary): |
| 503 |
|
| 504 |
In /usr/spool/cron/crontabs/news (System V): |
| 505 |
00 23 * * * MASTER_DIRECTORY/back_act |
| 506 |
or in /usr/lib/crontab (BSD): |
| 507 |
00 23 * * * su - news MASTER_DIRECTORY/back_act |
| 508 |
|
| 509 |
The default setup allows you to go 14 days back with nngoback, but if |
| 510 |
you don't keep news that long, there is no reason to keep that many |
| 511 |
copies of the active file either. In that case, you can supply the |
| 512 |
maximum number of days as an argument to back_act. Of course, you can |
| 513 |
also keep more than 14 copies of the active file to allow nngoback to |
| 514 |
go more than 14 days back by giving back_act an argument larger than 14. |
| 515 |
|
| 516 |
|
| 517 |
STEP 7.4: PREPARE FOR NNSPEW TO BE RUN REGULARLY |
| 518 |
------------------------------------------------- |
| 519 |
|
| 520 |
The nngrab program will run faster if a dedicated subject database in |
| 521 |
addition to the normal database is available. To maintain this |
| 522 |
additional database, the program nnspew must be executed regularly, |
| 523 |
e.g. from cron. Every 3-6 hours should be sufficient to keep the |
| 524 |
database reasonably up-to-date, e.g. |
| 525 |
|
| 526 |
In /usr/spool/cron/crontabs/news (System V): |
| 527 |
2 6,12,18 * * * MASTER_DIRECTORY/nnspew |
| 528 |
or in /usr/lib/crontab (BSD): |
| 529 |
2 6,12,18 * * * su - news MASTER_DIRECTORY/nnspew |
| 530 |
|
| 531 |
|
| 532 |
STEP 8 |
| 533 |
|
| 534 |
INSTALL AND EDIT GLOBAL FILES |
| 535 |
----------------------------- |
| 536 |
|
| 537 |
Depending on your needs, you should create the following files on each |
| 538 |
host running nn (you may also just share the files if you like): |
| 539 |
|
| 540 |
CLIENT_DIRECTORY/init |
| 541 |
The global init file for all users on the system. Users will |
| 542 |
be able to override the definitions in this file, but you can |
| 543 |
probably make some sensible decisions which will prevent |
| 544 |
novice users from getting into trouble, for example set the |
| 545 |
default distribution to "local" etc. |
| 546 |
|
| 547 |
You can also specify a global presentation sequence here. |
| 548 |
|
| 549 |
You may use init.sample as a starting point, but don't use it |
| 550 |
without careful examination. Especially, the sequence part |
| 551 |
is mainly an illustration of the possibilities. If you are in |
| 552 |
doubt, just delete the sequence part of the file (groups will |
| 553 |
then be presented in pure alphabetical order). |
| 554 |
|
| 555 |
CLIENT_DIRECTORY/motd |
| 556 |
Every time you change this file, it will be shown to the nn |
| 557 |
users the next time they invoke nn. This can be used to |
| 558 |
inform the users about changes in the news environment or |
| 559 |
local policies. (motd = message of the day) |
| 560 |
|
| 561 |
|
| 562 |
NNTP_SERVER |
| 563 |
Must contain the host name of the NNTP-server when NNTP is |
| 564 |
used. If you already run NNTP with your other news readers, |
| 565 |
this file does not need to be modified. |
| 566 |
|
| 567 |
|
| 568 |
STEP 9 |
| 569 |
|
| 570 |
TEST THE BASIC FUNCTIONS |
| 571 |
------------------------ |
| 572 |
|
| 573 |
If any of the following tests fails or you see other peculiar |
| 574 |
behavior, you should consult the PROBLEMS file. You may not be the |
| 575 |
only one to have seen the problems, and there might even be a solution. |
| 576 |
|
| 577 |
First you should check that nnmaster does collect the articles it is |
| 578 |
supposed to. Here, nnadmin is a great help, since you can peek around |
| 579 |
in all the database files and see what nnmaster is doing. nnadmin |
| 580 |
takes a snap-shot of the database when it starts up, but you can take |
| 581 |
a new snap-shot at any time using the (U)pdate command. |
| 582 |
|
| 583 |
Also look at the (L)og to see that there were no problems while |
| 584 |
collecting the articles. |
| 585 |
|
| 586 |
There are a few things you should check to ensure the proper |
| 587 |
functioning of nn. |
| 588 |
|
| 589 |
1) Backup your current .newsrc file if you have one. (Don't save it |
| 590 |
in .newsrc.bak or .newsrc.orig since nn may use these names). |
| 591 |
|
| 592 |
2) Run `nn'. If you have upgraded from release 6.3, nn will convert |
| 593 |
your release 6.3 .nn/rc file into a .newsrc file. |
| 594 |
|
| 595 |
3) Does nn find any news? If not, does nn -x find anything? |
| 596 |
|
| 597 |
4) Can you send mail to yourself? Try the sequence: |
| 598 |
m (return) (return) testing (return) |
| 599 |
edit the letter |
| 600 |
s (return) |
| 601 |
|
| 602 |
If not, you should check the REC_MAIL program. |
| 603 |
|
| 604 |
5) Can you post an article to the local test group? Try: |
| 605 |
:post (return) |
| 606 |
test (return) |
| 607 |
local (return) |
| 608 |
edit the article |
| 609 |
s (return) |
| 610 |
|
| 611 |
If not, you should check the INEWS program. |
| 612 |
|
| 613 |
|
| 614 |
------------------------------------------- |
| 615 |
IF EVERYTHING WORKS |
| 616 |
YOU HAVE COMPLETED THE INSTALLATION |
| 617 |
------------------------------------------- |
| 618 |
|
| 619 |
|
| 620 |
UPDATING THE SOFTWARE |
| 621 |
--------------------- |
| 622 |
|
| 623 |
Patches to this software will be distributes as context diff's which |
| 624 |
can be applied using Larry Wall's `patch' program. |
| 625 |
|
| 626 |
After applying the patches, you will need to redo the compilation and |
| 627 |
installation steps: |
| 628 |
|
| 629 |
$ patch -p0 < PATCH_FILE (or use nn's :patch command) |
| 630 |
$ make all |
| 631 |
$ su |
| 632 |
# ./inst u |
| 633 |
|
| 634 |
To be able to install a new nnmaster, the currently running master (if |
| 635 |
any) will be stopped automatically, and it has to be started manually |
| 636 |
when the installation is complete (unless it is setup to be run by cron). |
| 637 |
|
| 638 |
Notice that unless it is explicitly required in the patch, there is no |
| 639 |
need to reinitialize the database after applying the patch. |