Globus Install for PPPL
notes_globus.20080508

   http://www.globus.org/toolkit/downloads/4.0.7

2008-05-08 -- Goals

# Will be in /usr/local/globus/4.0.7
# Minimum build of globus for TRANSP user use
# Need globus-job-submit, globus-url-copy, grid-proxy-init, myproxy-get-delegation
#      grid-proxy-info, grid-cert-info

# Will get certificate signing chain from PPPL

2008-05-08 -- To build globus

# Must build from Globus source for SuSE Intel Machine
# Need ANT for Globus Build
# Will not point to JAVA, since not required for part of build needed
# Note: Configure options below
   
2008-05-09 -- Build ANT (From www.apache.org mirror)

# On client host as globus
url="http://www.trieuvan.com/apache/ant/binaries/apache-ant-1.7.0-bin.tar.bz2"
cd /home/globus
/usr/bin/wget "$url"
/bin/tar jxpf apache-ant-1.7.0-bin.tar.bz2

2008-05-09 -- Do not want JAVA

/usr/bin/which javac &>/dev/null && echo "Warning:javac is in default path"

2008-05-09 -- Install and build

# On client host as globus
cd /home/globus
url="http://www-unix.globus.org/ftppub/gt4/4.0/4.0.7/installers/src/gt4.0.7-all-source-installer.tar.bz2"
/usr/bin/wget "$url"

export ANT_HOME=/home/globus/apache-ant-1.7.0
export PATH=$ANT_HOME/bin:$PATH

# Assume PREFIX directory already created and is owned by globus
PREFIX=/usr/local/globus-4.0.7

/bin/tar jxpf gt4.0.7-all-source-installer.tar.bz2 
cd gt4.0.7-all-source-installer

OPTIONS=
OPTIONS="$OPTIONS --disable-rls"
OPTIONS="$OPTIONS --disable-wsjava"
OPTIONS="$OPTIONS --disable-wsmds"
OPTIONS="$OPTIONS --disable-wsdel"
OPTIONS="$OPTIONS --disable-wsrft"
OPTIONS="$OPTIONS --disable-wsgram"
OPTIONS="$OPTIONS --disable-wsacs"
OPTIONS="$OPTIONS --disable-wsc"
OPTIONS="$OPTIONS --disable-tests"
OPTIONS="$OPTIONS --disable-wstests"
OPTIONS="$OPTIONS --disable-webmds"
OPTIONS="$OPTIONS --disable-rendevous"
./configure --prefix=$PREFIX $OPTIONS 1>configure_LEW.log 2>configure_LEW.err &
/usr/bin/make 1>make_LEW.log 2>make_LEW.err &
/usr/bin/make install 1>make_install_LEW.log 2>make_install_LEW.err &

2008-05-09 -- Set up certificate chain

cd
url="http://www.fusiongrid.org/certs.tar"
/usr/bin/wget "$url"
/bin/mkdir $PREFIX/share/certificates
cd $PREFIX/share/certificates
/bin/tar xpf ~/certs.tar 

2008-05-09 -- Download and install fglogin

# See http://www.fusiongrid.org/services/grid-id.html
cd
url="https://cert.fusiongrid.org/fglogin.sh"
/usr/bin/wget --no-check-certificate "$url"
/bin/chmod +x fglogin.sh
/bin/cp -ip fglogin.sh $PREFIX/bin

2008-05-09 -- Test

# On client host as globus

 client host needs securid or vpn to get to the TRANSP server
/usr/bin/telnet gfw-esnet.pppl.gov 259

export GLOBUS_LOCATION=/usr/local/globus-4.0.7
source $GLOBUS_LOCATION/etc/globus-user-env.sh

# Test getting a proxy
fglogin -l lglobus -t 200
grid-proxy-info

# Test submitting a job
globus-job-submit transpgrid.pppl.gov /bin/touch /usr/tmp/lew_touch.txt

# Test sending a file
globus-url-copy file:///etc/SuSE-release \
  gsiftp://transpgrid.pppl.gov/usr/tmp/lew_SuSE-release

# Test receiving a file
globus-url-copy gsiftp://transpgrid.pppl.gov/etc/redhat-release \
    file:///usr/tmp/lew_redhat-release