| 20 | | Create the installation directory and uncompress archives: |
| 21 | | |
| 22 | | * gzip -d -c physica.vn.nn.tar.gz | tar xvf - |
| 23 | | |
| 24 | | cdelacruz@metis:/usr/local$ sudo mkdir physica |
| 25 | | cdelacruz@metis:/usr/local/physica$ sudo gzip -d *.gz |
| 26 | | cdelacruz@metis:/usr/local/physica$ sudo tar xf physica.v2.77.kernel2.6.tar |
| 27 | | cdelacruz@metis:/usr/local/physica$ sudo mkdir bin |
| 28 | | |
| 29 | | * edit physica.script and insert the proper directories |
| 30 | | |
| 31 | | modfied paths to /usr/local/physica |
| 32 | | |
| 33 | | * you may have to chmod +x physica.script and physica |
| 34 | | |
| 35 | | cdelacruz@metis:/usr/local/physica/bin$ sudo chmod +x physica.script |
| 36 | | |
| 37 | | * mv physica.script to a /bin directory and rename it as physica |
| 38 | | By running physica from the script, the environment variables |
| 39 | | are properly set |
| 40 | | |
| 41 | | modified the .bashrc file to initialize the environment: |
| 42 | | |
| 43 | | ### Physica Environment ### |
| 44 | | PHYSICA_DIR=/usr/local/physica |
| 45 | | export PHYSICA_DIR |
| 46 | | TRIUMF_FONTS=/usr/local/physica |
| 47 | | export TRIUMF_FONTS |
| 48 | | alias physica="/usr/local/physica/physica |
| | 20 | '''Create the installation directory and uncompress archives:''' |
| | 21 | {{{ |
| | 22 | cdelacruz@metis:/opt$ sudo mkdir -p /opt/physica/2.77/bin |
| | 23 | cdelacruz@metis:/opt$ sudo chown -R cdelacruz:cdelacruz physica/ |
| | 24 | cdelacruz@metis:/opt$ tar xzvf physica.v2.77.kernel2.6.tar.gz |
| | 25 | cdelacruz@metis:/opt/physica$ ln -s /opt/physica/2.77 ./current |
| | 26 | }}} |
| | 29 | '''Chmod +x physica.script and physica:''' |
| | 30 | {{{ |
| | 31 | cdelacruz@metis:/usr/local/physica/bin$ sudo chmod +x physica.script |
| | 32 | }}} |
| | 33 | '''Edit/Modify physica.script and insert the proper directories:''' |
| | 34 | {{{ |
| | 35 | #!/bin/bash |
| | 36 | # PHYSICA_DIR is where the help and news files are located |
| | 37 | export PHYSICA_DIR=/opt/physica/current |
| | 38 | # TRIUMF_FONTS is where the vaxfont.dat file is located |
| | 39 | export TRIUMF_FONTS=/opt/physica/current |
| | 40 | # set this to the full path to the physica executable |
| | 41 | PATH=$PATH:/opt/physica/current |
| | 42 | alias physica='/opt/physica/current/physica' |
| | 43 | }}} |
| | 44 | '''mv physica.script to the /bin directory and renamed it as physica.bash:''' |
| | 45 | {{{ |
| 53 | | ------------------------------------------------------------------------------- |
| 54 | | The 2.6 kernel (physica.v2.77.kernel2.6.tar.gz) version of physica |
| 55 | | did not have linking sources. |
| 56 | | |
| 57 | | |
| 58 | | To relink physica: |
| 59 | | |
| 60 | | * gzip -d -c physica.vn.nn-link.tar.gz | tar xvf - |
| 61 | | |
| 62 | | * edit physica.link or physica-no-cern.link and insert the |
| 63 | | proper directories |
| 64 | | |
| 65 | | * you may have to chmod u+x the link files |
| 66 | | |
| 67 | | * relink using either physica.link or physica-no-cern.link |
| 68 | | ------------------------------------------------------------------------------- |
| 69 | | Note: The LinuxPPC 1999 Q3 is essentially a RH6 distribution for PowerPC |
| 70 | | machines. It is binary compatible with MkLinux-R1, Apple's Mach micro- |
| 71 | | kernel based version of Linux for Power Macs, and Yellow-Dog Linux. |
| 72 | | ------------------------------------------------------------------------------- |
| 73 | | To receive further information, please contact: |
| 74 | | |
| 75 | | J.L. CHUMA chuma@triumf.ca |
| 76 | | TRIUMF |
| 77 | | 4004 Wesbrook Mall |
| 78 | | Vancouver, B.C. |
| 79 | | Canada V6T2A3 |
| | 48 | By running physica from the script, the environment variables are properly set. |