Project

General

Profile

Example of .bashrc file with necessary setup

umask 002

. /afs/fnal.gov/ups/etc/setups.sh
setup setpath

host=`hostname | cut -d. -f1`
case $host in
minos25 )
  1. echo "Do not run srm on this node!"
    . /afs/fnal.gov/files/code/e875/general/condor/scripts/setup_minos_condor.sh
  2. setup srm
    PATH="/minos/app/app/OSG1/srm-client-fermi/bin:$PATH"
    export PATH
    PATH="/minos/app/app/OSG1/srm-client-fermi/sbin:$PATH"
    export PATH
    SRM_CONFIG="/minos/app/app/OSG1/srm-client-fermi/etc/config-2.xml"
    export SRM_CONFIG
    export X509_USER_PROXY=/minos/data/minfarm/.grid/rubin-production.proxy
    ;;
    minos* )
    . /minos/app/app/OSG1/setup.sh# sets up srm
    export X509_USER_PROXY=/minos/data/minfarm/.grid/rubin-production.proxy
    ;;
    esac

export CDPATH=.:..:$HOME:/minos/data/minfarm:/grid/fermiapp/minos/minfarm

export PATH=$PATH:/grid/fermiapp/minos/minfarm/bin:/grid/fermiapp/minos/minfarm/scripts:$HOME/bin
export PATH=$PATH:/grid/fermiapp/minos/minfarm/SAM/current/bin
export PATH=$PATH:.

export SAM_DB_SERVER_NAME=SAMDbServer.prd:SAMDbServer
export SAM_NAMING_SERVICE_IOR=corbaname::minos-sam-ns.fnal.gov:9010

export DCCP_PATH=dcap://fndca1:24725/pnfs/fnal.gov/usr/minos
export X509_PATH=dcap://fndca1:24525/pnfs/fnal.gov/usr/minos
export DCACHE_IO_TUNNEL=/usr/local/grid/dccp/lib/libgsiTunnel.so

  1. At least for now workers will use srmcp
    export SRMV2_PATH=srm://fndca1:8443/srm/managerv2\?SFN=/pnfs/fnal.gov/usr/minos

export AFS_TOP=/afs/fnal.gov/files/data/minos
export AFS_DIR=$AFS_TOP/d10
export AFS_BACKUP=$AFS_TOP/log_data/farm
export AFS_LISTS=/afs/fnal.gov/files/expwww/numi/html/minwork/computing/process_lists
export GA=/grid/app/minos
export GAs=/grid/app/minos/scripts
export GF=/grid/fermiapp/minos/minfarm
export GFs=/grid/fermiapp/minos/minfarm/scripts
export GFsub=/grid/fermiapp/minos/minfarm/condor_submit
export GD=/grid/data/minos
export GDlog=/grid/data/minos/condor_log
export MD=/minos/data/minfarm
export MDf=/minos/data/minfarm/farmtest
export AFS_LOGS=$AFS_TOP/farm_logs
export AFS_MCLOGS=$AFS_TOP/farm_mclogs
export MINOS_SETUP_DIR=/afs/fnal.gov/files/code/e875/general/minossoft/setup
export ROUNDUP=$MD/ROUNTMP/LOG

export COLUMNS LINES

export CVS_RSH=ssh
export CVSROOT=:ext::/cvs/minoscvs/rep1
alias mincvs='cvs -d :pserver::/cvs/minoscvs/rep1'

alias ls='ls -CF --color=auto'
alias lsnc='ls -CF --color=never'
#alias pur='rm -f .bck ..bck ~ .' # Use the executable pur
alias lj='mycondor_q.glide' # Temporary
alias submit='submit.glide' # Temporary
alias submit.mc='submit.mc.glide' # Temporary
alias get_daq_submit='get_daq_submit.glide'
alias submit.a='submit.glide.a'
alias get_test_times='
/work/get_test_times'
alias setup_minos='. /grid/fermiapp/minos/minossoft/setup/setup_minossoft_FNALU.sh'
alias texdel='rm *.aux *.log *.dvi'

  1. Want to use the non-redirected versions of condor utilities
  2. Be careful here -- 'which' will still report the wrapper varieties but
  3. execution will use the aliases. You must unalias if you want wrappers.
    if [ $host == minos25 ]; then
    alias condor_rm='/opt/condor/bin/condor_rm'
    alias condor_hold='/opt/condor/bin/condor_hold'
    alias condor_release='/opt/condor/bin/condor_release'
    fi

function ljm() ( lj "$" | more )
function ljs() ( lj -s "$
" )
function ljf() ( mycondor_q.glide | grep -E ' F|jobs' )
function ljn() ( mycondor_q.glide | grep -E ' N|jobs' )
function ljh() ( mycondor_q.glide | grep -E ' H |jobs' )
function lji() ( mycondor_q.glide | grep -E ' I |jobs' )
function ljx() ( mycondor_q.glide | fgrep '. . .' )
function gum() ( gunzip -c "$@" | more ) # This is a simple alias in tcsh
function fmonth() ( grep $1 /minos/data/minfarm/lists/daq_lists/*.farlist | awk '{print $2}' | sort -u )
function nmonth() ( grep $1 /minos/data/minfarm/lists/daq_lists/*.nearlist | awk '{print $2}' | sort -u )

. ~/bin/printer_aliases.sh
alias kinit='kinit -f -l 26h -r 6d'

export LANG=en_US
export SUPPORTED=en_US:en

export PS1="`hostname | cut -d. -f1`\$ "

  1. Allow easy access to IIT and home
    export linrubin=216.47.138.196
    export littleone=24.14.48.174
    export home=$littleone
    #alias ssh="ssh -i $HOME/.ssh/id_rsa.`hostname | cut -d. -f1`"