Setup to use Condor, OSG, and CMSSW on the HEX Computer Farm

Before using Condor, OSG, or CMSSW on the HEX Computer Farm it is necessary to set a number of environmental variables. There are setup scripts available to do this, as follows:

Condor setup:
source /condor/HTCondor/current/condor.(c)sh

OSG setup:
source /osg/current/setup.(c)sh

CMSSW setup for tcsh shell:
setenv VO_CMS_SW_DIR /cvmfs/cms.cern.ch
setenv SCRAM_ARCH slc6_amd64_gccXXX (replace "XXX" with the desired version of gcc)
source $VO_CMS_SW_DIR/cmsset_default.csh

CMSSW setup for bash shell:
export VO_CMS_SW_DIR=/cvmfs/cms.cern.ch
export SCRAM_ARCH=slc6_amd64_gccXXX (replace "XXX" with the desired version of gcc)
source $VO_CMS_SW_DIR/cmsset_default.sh

CMSSW release setup:
First, follow the "CMSSW setup" instructions above for either tcsh or bash.
Then do:
cmsrel CMSSW_RRR (replace "RRR" with the desired CMSSW version)
Note that you only need to do this once, not everytime you login.
Then do:
cd CMSSW_RRR/src (replace "RRR" with the desired CMSSW version)
cmsenv
cd