WriteToCVMFS: Difference between revisions

From LZ Computing
Jump to navigation Jump to search
Line 30: Line 30:
# e.g. I will install the latest version of LUXSim
# e.g. I will install the latest version of LUXSim
svn checkout --username <username> --password <passwd> svn://xenophile.case.edu/LUXSim latest
svn checkout --username <username> --password <passwd> svn://xenophile.case.edu/LUXSim latest
#Note that <username> and <passwd> for LUXSim svn repo should be obtained by following instructions [[ http://teacher.pas.rochester.edu:8080/wiki/bin/view/Lux/UsageSVN | <span> style="color:#0645AD;">here</span> ]]
#Note that <username> and <passwd> for LUXSim svn repo should be obtained by following instructions [[http://teacher.pas.rochester.edu:8080/wiki/bin/view/Lux/UsageSVN|<span style="color:#0645AD;">here</span> ]]


# Find the revision number of latest
# Find the revision number of latest

Revision as of 20:18, 9 September 2015

How to write to /cvmfs/lz.opensciencegrid.org

# osggrid01.hep.wisc.edu is the cvmfs writer and only accessible through the hep.wisc.edu network
# login to osggrid01.hep.wisc.edu via lzlogin01.hep.wisc.edu
ssh username@lzlogin01.hep.wisc.edu
ssh osggrid01.hep.wisc.edu

cd /cvmfs/lz.opensciencegrid.org/
# Write an empty file to the parent directory (don't follow it literally)
 touch myFile.txt

 

Building a version of LUXSim

# login to osggrid01.hep.wisc.edu
ssh osggrid01.hep.wisc.edu

# Setup PATH, ROOTSYS, GEANT4
export ROOTSYS=/cvmfs/lz.opensciencegrid.org/ROOT/v5.34.32/slc6_gcc44_x86_64/root
export PATH=${ROOTSYS}/bin:/sbin:/usr/sbin:/usr/bin:/bin:/usr/local/bin
export LD_LIBRARY_PATH=${ROOTSYS}/lib:/lib64:/usr/lib64:/lib:/usr/lib
source /cvmfs/lz.opensciencegrid.org/geant4/etc/geant4env.sh

# go to LUXSim directory
cd /cvmfs/lz.opensciencegrid.org/LUXSim

# e.g. I will install the latest version of LUXSim
svn checkout --username <username> --password <passwd> svn://xenophile.case.edu/LUXSim latest
#Note that <username> and <passwd> for LUXSim svn repo should be obtained by following instructions [[http://teacher.pas.rochester.edu:8080/wiki/bin/view/Lux/UsageSVN|<span style="color:#0645AD;">here</span> ]]

# Find the revision number of latest
cd latest/
RevNum=svn info | awk '/Revision/ {print "r"$2}'

# Organize the directory by renaming latest to revision number
cd /cvmfs/lz.opensciencegrid.org/LUXSim
mv latest ${RevNum}
cd ${RevNum}
make