Modify Your SLAC Public Environment

Notes:

  • If you are using the University of Washington's Terminal Server, you should ignore this section and refer to the UW GLAST Server instructions.
  • If you have not already done so, be sure you have fulfilled the basic prerequisites for using SLAC Public. (See Prerequisites: Basic.)
  • If you are running an SCons build, also refer to "SCons: An Introduction", which describes where these builds are located and the required environment variables.

.cshrc

If you plan to use SLAC's Public Installion you will need to set up your environment in one of the following two ways in order to access external libraries (CMT, ROOT, etc.). Based upon .cshrc status from which you start, modify your login profile using one of the following procedures:

  • If you are starting from the default .cshrc, which you received from the SCS with your new account, replace your default  .cshrc file with the file:

    /afs/slac.stanford.edu/g/glast/ground/scripts/user.cshrc

  • Note: If you are not familiar with Unix, Use the following procedure to update your .cshrc file:

    1. Are you accessing SLAC Public from a Windows or Linux/Mac machine?

    If you are coming from a windows machine, first:

      1. Open a secure shell (e.g., PuTTY).
      1. Log in to a SLAC Public Machine (e.g., noric.slac.stanford.edu); see Public Machines at SLAC.
    If you are coming from a Linux or a Mac machine, use a command-line ssh:

    ssh -Y rhel4-32.slac.stanford.edu

    1. Do not change directories (i.e., remain in your home directory for now).
     
    1. At the $ prompt, enter:

    cp /afs/slac.stanford.edu/g/glast/ground/scripts/user.cshrc ./.cshrc

    1. Refer below to: SLAC Public Environment (after setup)

OR

  • If you already have a .cshrc script with statements which you want to keep, you may use the group script by adding the following lines to the top of your .cshrc

    set interactive=${?prompt}
    if ( ${?LD_LIBRARY_PATH} != 1 ) then
          setenv  LD_LIBRARY_PATH

    endif
    setenv     GLASTROOT /afs/slac.stanford.edu/g/glast
    source  ${GLASTROOT}/ground/scripts/group.cshrc

Troubleshooting the .cshrc

Still have to login and enter your password? If you are using the Kerberos Network Identity Manager and, after logging in for the day, you are still being asked for a login and/or password, it may be because you have some now obsoleted code in your .cshrc that is testing for an AFS token. If it thinks that you do not have a token (because it does not recognize the Kerberos token), it issues the klog. This requires you to login even though you already have a token. To avoid the problem, it is recommended that you edit your .cshrc and simply comment out (#) the klog line:

SLAC Public Environment (after setup)

A non-customized, Slac Public user environment should look similar to the one shown below after updating the .cshrc file.

Tip: After logging in to a Slac Public machine, check the environment variables by entering the env command at the $ prompt. When using the NFS User Space, you will need to make special note of the environment variables set up for:

  • External Libraries (e.g., /afs/slac/g/glast/ground/GLAST_EXT)
  • Glast Offline Build Areas (e.g., ${BUILDS}/)
    • Non-optimized (rhel4_gcc34)
    • Optimized (rhel4_gcc34opt)

    Tip: Be sure to use the optimized version (i.e., rhel4_gcc34opt) of Science Tools when performing an analysis. The optimized versions run ~5 times faster than the debug versions.

  • MRvcmt. If using MRvcmt, you should also make note of:
    • CMTROOT
      (e.g., /afs/slac.stanford.edu/g/glast/applications/CMT/v1r18p20061003)
    • CMTCONFIG (e.g., rhel4_gcc34)

Note: ROOT for GLAST variables are not included in the script files. If using ROOT on SLAC Public, you will also want to add those variables to your .cshrc file. (See Set ROOT Environment Variables: Linux.)

Examples of environment variables in a SLAC Public user's home directory:

BUILDS=/nfs/farm/g/glast/u30/builds/
CLASSPATH=/afs/slac.stanford.edu/g/glast/applications/CMT/v1r18p20061003/java
CMTBASE=/afs/slac.stanford.edu/g/glast/applications/CMT
CMTCONFIG=rhel4_gcc34
CMTROOT=/afs/slac.stanford.edu/g/glast/applications/CMT/v1r18p20061003
CMTVERSION=v1r18p20061003
CVSROOT=/nfs/slac/g/glast/ground/cvs
GLAST_EXT=/afs/slac/g/glast/ground/GLAST_EXT/rhel4_gcc34
GLASTROOT=/afs/slac.stanford.edu/g/glast
GROUPSCRIPTS=/afs/slac.stanford.edu/g/glast/ground/scripts
LATCalibRoot=/afs/slac/g/glast/ground/releases/calibrations/

Last updated by: Chuck Patterson 08/27/2010

 

08/27/2010