Skip to content

Instantly share code, notes, and snippets.

@hiracchi
Last active August 29, 2015 14:22
Show Gist options
  • Save hiracchi/0d5f211ee03d8b0dbaeb to your computer and use it in GitHub Desktop.
Save hiracchi/0d5f211ee03d8b0dbaeb to your computer and use it in GitHub Desktop.
build globus-toolkit for HPCI
#!/bin/bash
export GLOBUS_LOCATION=${HOME}/local/gt
export PATH=${GLOBUS_LOCATION}/bin:${PATH}
export DYLD_LIBRARY_PATH=${GLOBUS_LOCATION}/lib
# sudo aptitude install libltdl-dev
./configure --prefix=${GLOBUS_LOCATION} --with-flavor=gcc64dbg 2>&1 | tee out.configure
make gsi-openssh gsi-myproxy 2>&1 | tee out.make
make install 2>&1 | tee out.make_install
${GLOBUS_LOCATION}/setup/gsi_openssh_setup/setup-openssh -verbose
#!/bin/bash
CERTDIR=~/.globus/certificates
SERVER=www.hpci.nii.ac.jp
CRL_CA=hpcica.crl
wget -P ${CERTDIR} http://${SERVER}/ca/${CRL_CA}
HASH_CA=`openssl crl -in $CERTDIR/$CRL_CA -noout -hash`
echo $HASH_CA
mv $CERTDIR/$CRL_CA $CERTDIR/${HASH_CA}.r0
#!/bin/bash
HOST=your_host
PORT=22
export GLOBUS_LOCATION=${HOME}/local/gt
export DYLD_LIBRARY_PATH=${GLOBUS_LOCATION}/lib
${GLOBUS_LOCATION}/bin/gsissh -p ${PORT} ${HOST} $*
#!/bin/bash
HPCI_ACCOUNT=hpci000000
export GLOBUS_LOCATION=${HOME}/local/gt
export DYLD_LIBRARY_PATH=${GLOBUS_LOCATION}/lib
${GLOBUS_LOCATION}/bin/myproxy-logon -s portal.hpci.nii.ac.jp -l ${HPCI_ACCOUNT} -t 12
#!/bin/bash
mkdir -p ~/.globus/certificates
cd ~/.globus/certificates
wget "https://www.hpci.nii.ac.jp/ca/hpcica.pem.zip"
wget "https://www.hpci.nii.ac.jp/ca/hpcica.signing_policy.zip"
wget "https://www.hpci.nii.ac.jp/ca/hpcica.crl"
unzip hpcica.pem.zip
unzip hpcica.signing_policy.zip
HASH_VALUE=`openssl crl -in hpcica.crl -noout -hash`
mv hpcica.crl ${HASH_VALUE}.r0
# Fingerprint check
echo "please check the fingerprint: https://www.hpci.nii.ac.jp/ca/Fingerprint.html"
openssl x509 -in ${HASH_VALUE}.0 -noout -fingerprint -sha1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment