Date: 24/11/94
Revision history
You can use it to:
This document is concerned with installation and maintenance of Newstar at institutes other than the NFRA. It descibes our export policy, the procedure for first time installation and the procedures for local maintenance.
This list may be extended with other Unix systems in future. Newstar can also be run on Convex (cv) systems, but this is not officially supported by the NFRA.
If you want to install Newstar on your institute, the Newstar group will assist with the first time installation of the package. We expect you to assign a local "Friend of Newstar" who will take care of local maintenance, using the procedures described in this document. In case of problems, you can of course contact the Newstar group, who will do it's best to solve things on a short notice.
The Newstar maintenance at the radio-observatory in Westerbork is updated by the Newstar group at a weekly basis.
At present, disk-space requirements are:
>>> cd "Newstar root-directory" >>> mkdir src >>> cd src >>> uncompress [directory_with_archive/]nstar_src.tar.Z >>> tar xvf [directory_with_archive/]nstar_src.tar >>> tar xvf [directory_with_archive/]nstar_src_aa.tar
Your local situation will be reflected in the following files, all in directory "Newstar root-directory"/src/sys
newstar_xxxx.csh Directory structure, tape-units, some details wngfex_xxxx.csh Commands for printing i_aaxxxx.csh Fine-tuning for compilation on architecture "aa"In general, the Newstar group will create these files based on information supplied by you. In case you want to create the files yourself, please use the versions for the nfra (newstar_nfra.csh etc.) as a template, since they are extensively documented.
In newstar_xxxx.csh you should define at least the following:
The order in n_install and n_hosts is arbitrary, but you best keep it the same in both variables for your own convenience.
>>> source "Newstar root-directory"/src/sys/newstar_xxxx.cshYou may have received archives nstar_exe_aa.tar or nstar_lib_aa.tar. If aa matches the name of your architecture, you may just untar these files in the appropriate directories to get a working system:
>>> nup quit >>> cd $n_lib >>> uncompress [directory_with_archive/]nstar_lib_aa.tar.Z >>> tar xvf [directory with_archive]/nstar_lib_aa.tar >>> uncompress [directory_with_archive/]nstar_lib_inc.tar.Z >>> tar xvf [directory with_archive]/nstar_lib_inc.tar >>> cd $n_exe >>> uncompress [directory_with_archive/]nstar_exe_aa.tar.Z >>> tar xvf [directory_with_archive/]nstar_exe_aa.tarIf you need to build Newstar from scratch, use the following commands:
>>> nup build -u wntinc (will give 9 errors for dsc-files which could not be translated because wntinc does not yet exist.) >>> nup build -u -t:exe wntinc >>> nup build -u allLogs of all transactions and errors are kept in $n_src/updyymmddaa[i].log where i is an index (e.g. upd930623sw.log, upd930623sw1.log).
If something goes wrong during the installation, the log-files will be sent to the Newstar group by eMail. This assumes you have the elm mailer running at your institute. If you do not have it, you should supply an alias to e.g. mail or mailx in newstar_xxxx.csh (add a line like alias elm 'mail -s "\!1" \!2 ')
>>> source "Newstar root-directory"/src/sys/newstar_xxxx.cshThis can be safely done in a .cshrc or .login file.
You can now display the version of Newstar you are currently using:
>>> nnewsThis will display the version number first, followed by a list of recent changes. The version number consists of a release number followed by a dot and a revision number.
>>> dwe nscanPrograms are started by typing dwe (or exe) followed by the name of the program. This will display a line like "NSCAN$1 (v4.21) started ...". The version number can be lower than the version displayed by nnews, since a revision may concern only some programs. A full revision history with the revisions for every program can be found in the on-line documentation (select "Revision history" from the Newstar home page presented by nhyper).
A revision of Newstar is a series of minor changes that do not affect the overall operation of Newstar. Revisions are typically bug repairs, small additions to the functionality of a program etc. They do not affect keyword syntax and fileformats.
A release of Newstar is issued when any of the following occured:
If we modify the Newstar master at NFRA, all Friends of Newstar that we know of will receive an eMail describing the changes. This message will also contain instructions how to upgrade your installation.
In most cases, upgrading is done through a single command:
>>> nup updateThis in fact causes the following commands to be executed, which you may also execute by hand:
>>> cd $n_importThe default directory is set to $n_import, which is the proper place to receive new files. This keeps your current sources intact.
>>> nup retrieve allThis will make a fresh version of the file $n_src/sys/database.idx, which gives a full description of your current installation. Than it will retrieve the version of database.idx from the NFRA for comparison. Any files that need to be updated are retrieved in $n_import. The list of files retrieved is in file retrieved.grp.
>>> nup build -Update -T:^exe retrieved.grpThis will build all files just retrieved, and any files dependent on them. No executables will be built, this will be done after the library check.
>>> nup clear -NConfirmThis will throw away any source files in the master system that are no longer needed.
>>> nup check lThis will check your libraries. Experience shows that escpecially on HP workstations libraries tend to get cluttered. This will be found by the library check. If necessary, an additional build command will be scheduled to rebuilt modules. Objects for which no source is present are removed from the libraries. Duplicate entries are both removed and replaced by a fresh entry. Out-of-date entries are updated.
>>> nup check e -UpdateThis will check your executables. Executables that do not yet exist or are out-of-date with respect to the NFRA are rebuilt. Note that usually not all versions need to be rebuilt for a new revision. Thus some programs may show a lower version than the version shown by nnews.
>>> rsh HOST '( source $n_src/sys/newstar_xxxx.csh; nup update rsh)If $n_hosts (as defined in newstar_xxxx.csh) contains more hosts, the above command will be issued for each of them. This will carry out the build and check commands listed above, but not the retrieve.
The proceedings of the update command will dump a lot of output on your screen, which is also stored in logfiles $n_src/updyymmdd[i].log (see above). You may want to redirect the output to a file or /dev/null. If any errors occur, the log-file will be sent to the Newstar group by eMail.
The nup command has many more uses than the ones described above. Most of them should not be relevant to you, since they are related to partial rebuilds, making backups etc. In case you are interested though, you can get more information through the command
>>> nup help -help