Updating software on your Quanterra system. Douglas Neuhauser, UC Berkeley doug@seismo.berkeley.edu Revised: 97/01/20 Revised: 97/11/30 to include ubin21970530.tar.Z ======================================================================== The procedures outlined below are not for the faint-of-heart. It assumes a working knowledge of Quanterra system, including how to copy files, edit files, etc. If you have questions on any part of the procedure, contact Quanterra, Inc. or Doug Neuhauser at the above email address. ======================================================================== I. Installing new system software on your Quanterra. The system software is available in 2 formats. You only need ONE of the following formats: lharc format: SYSTEM.960730.lzh compressed tar format: SYSTEM.960730.tar.Z 1. Copy the system distribution files (eg SYSTEM.1.0.tar.Z) to your quanterra. Be sure that when using ftp, kermit, or comserv (dpda) that you use binary mode. If you use kermit, you may need to rename the file on the Quanterra to its original name, since kermit may change some of the "." to "x" to allow only 2 components in the filename. 2. Unpack the system distribution into a temporary directory. chd /h0 makdir tmp chdir tmp compress -d ../SYSTEM.1.0.tar.Z tar xvf ../SYSTEM.1.0.tar OR lharc -x ../SYSTEM.1.0.lzh 3. On all systems except 4120 systems: Install the new OS9Boot file if it is different from your existing OS9Boot file. a. Compare the new OS9Boot file to cmp /h0/OS9Boot /h0/tmp/OS9Boot b. If the files are identical, delete the new /h0/tmp/OS9Boot file and skip the remainder of this step. If the files are different (Bytes different > 0), install the new OS9Boot file. c. Save the original OS9Boot file. Use rename to ensure that it remains in the same location (sectors) on disk. chd /h0 attr -w OS9Boot rename OS9Boot OS9Boot.old d. Copy the new OS9Boot file to /h0, and install a pointer to the new boot file. copy tmp/OS9Bboot /h0 chd /h0fmt os9gen -eb=100k -q=OS9Boot /h0fmt e. Return to the /h0/tmp directory and delete the OS9Boot file from that directory. chd /h0/new delete -f /h0/tmp/OS9Boot 4. For each of the remaining files or directories in /h0/tmp, rename the corresponding files or directories in /h0 to ensure that they are not overwritten. rename /h0/ALERTS ALERTS.old rename /h0/CMDS CMDS.old rename /h0/OVERLAYS OVERLAYS.old rename /h0/SYS SYS.old rename /h0/startup startup.old rename /h0/startup_00 startup_00.old rename /h0/startup_147 startup_147.old rename /h0/startup_4120 startup_4120.old 5. Copy the contents of the /h0/tmp directory to /h0. chd /h0/tmp tar cf - * | (chd /h0; tar xf - ) 6. Delete the contents of the /h0/tmp directory. chd /h0 deldir -f -q tmp 7. Customize the file /h0/startup to run the appropriate startup file startup_4120, startup_147, or startup_00 (depending on your hardware architecture), and customize the appropriate hardware-dependent startup file if necessary. 8. Copy your old password file to the new /h0/SYS directory copy -f /h0/SYS.old/password /h0/SYS/password 9. If you already have the system software 960730, you can use the following procedure to install just the updates for the /h0/CMDS directory. The updates are found in the following distribution file: compressed tar format: CMDS.after.940130.tar.Z After copying the distribution to /h0, you can use do the following: makdir /h0/tmp chdir /h0/tmp compress -d ../CMDS.after.940130.tar.Z tar xvf ../CMDS.after.940130.tar Rename the old versions of the program in the /h0/tmp directory. For each program in the /h0/tmp directory, do the following command, where you substitute the name of the program for "program". rename /h0/CMDS/program program.old Copy the new programs into the /h0/CMDS directory: copy -w=/h0/CMDS * Delete the contents of the /h0/mtp/directory. chd /h0 deldir -f -q tmp ======================================================================== II. Installing new network software on your Quanterra. If you use the networking software, you should now install the NETWORK.backout file according to the Quanterra instructions. Again, save your exising copy of ISP_IPLANCE or ISP_147. ======================================================================== II. Installing new UltraSHEAR software on your Quanterra. The UltraSHEAR software is available in 2 formats. You only need ONE of the following formats: lharc format: USHEAR.35_06_1213.lzh compressed tar format: USHEAR.35_06_1213.tar.Z If you already have UltraSHEAR 35/06-0528, you may install just the update files to update this release to UltraSHEAR 35/06-1213: lharc format: USHEAR.35_06_1213.update.lzh compressed tar format: USHEAR.35_06_1213.update.tar.Z You will also need the file ubin21970530.tar.Z which contains a complete replacement for USHEAR/BIN21 dated May 30 1997. *** Copy the system distribution files (eg USHEAR.35_06_1213.tar.Z) to your quanterra. Be sure that when using ftp, kermit, or comserv (dpda) that you use binary mode. If you use kermit, you may need to rename the file on the Quanterra to its original name, since kermit may change some of the "." to "x" to allow only 2 components in the filename. *** Unpack the system distribution into a temporary directory. chd /h0 makdir tmp chdir tmp compress -d ../USHEAR.35_06_1213.tar.Z tar xvf ../USHEAR.35_06_1213.tar OR lharc -x ../USHEAR.35_06_1213.lzh *** Unpack the USHEAR update file ubin21970530.tar.Z chd USHEAR/BIN21 del -f * deldir -f -q * compress -d /h0/ubin21970530.tar.Z ! tar xf - *** Rename the original USHEAR directory. If you are upgrading from SHEAR to USHEAR, rename the orignal SHEAR directory chd /h0 rename /h0/USHEAR /h0/USHEAR.old *** Copy the contents of the /h0/tmp directory to /h0. chd /h0/tmp tar cf - * | (chd /h0; tar xf - ) *** Delete the contents of the /h0/tmp directory. chd /h0 deldir -f -q tmp *** Copy your original aqcfg file from the old USHEAR directory USHEAR.old to the corresponding directory in the new USHEAR directory structure. Update the .selection file to contain the directory name that contains your aqcfg file. EG: if your stations is XYZ, and the directory that contains the aqcfg file for XYZ is XYZ.serial, chd /h0/USHEAR/CFG/Q80/DV del -f .selection echo XYZ.serial >.selection makdir XYZ.serial chd XYZ.serial copy /h0/USHEAR.old//CFG/Q80/DV/XYZ.serial/aqcfg aqcfg attr -pr aqcfg ** Update your aqcfg file to take advantage of any new features of this version of UltraSHEAR. ** Copy your old vbb_system_descrption. copy -f -r /h0/USHEAR.old/LOGS/vbb_system_description -w=/h0/USHEAR/LOGS ======================================================================== Deleting old files: After you have rebooted your system, and verified that it works, you can delete the old files on your system chd /h0 del -f *.old deldir -f -q *.old