| 9 | === Updated packages === |
| 10 | {{{ |
| 11 | sudo apt-get update |
| 12 | sudo apt-get upgrade |
| 13 | }}} |
| 14 | |
| 15 | === Miscellaneous packaged needed for GEMINI === |
| 16 | {{{ |
| 17 | sudo apt-get install python-m2crypto python-dateutil python-openssl libxmlsec1 xmlsec1 libxmlsec1-openssl libxmlsec1-dev openjdk-7-jdk git python-M2Crypto python-paramiko sharutils ntp libncurses-dev build-essential bison flex python-lxml |
| 18 | sudo apt-get install libreadline6-dev libtool automake python-dev |
| 19 | sudo apt-get install yap swig |
| 20 | }}} |
| 21 | |
| 22 | === Installed strongswan === |
| 23 | {{{ |
| 24 | cd ~/Downloads |
| 25 | wget http://download.strongswan.org/strongswan-4.6.4.tar.bz2 |
| 26 | bunzip2 strongswan-4.6.4.tar.bz2 |
| 27 | tar -xvf strongswan-4.6.4.tar |
| 28 | cd strongswan-4.6.4/ |
| 29 | ./configure --enable-monolithic --disable-gmp --enable-openssl |
| 30 | cd src/libstrongswan/ |
| 31 | make && sudo make install |
| 32 | }}} |
| 33 | |
| 34 | === Installed ABAC === |
| 35 | {{{ |
| 36 | cd ~/Downloads |
| 37 | wget http://abac.deterlab.net/src/abac-0.2.3.tgz |
| 38 | cd abac/ |
| 39 | STRONGSWAN_SRC_DIR=~/Downloads/strongswan-4.6.4 |
| 40 | STRONGSWAN_LIB_DIR=/usr/local/lib/ipsec |
| 41 | export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386/ |
| 42 | ./autogen.sh |
| 43 | ./configure --with-strongswan=$STRONGSWAN_SRC_DIR --with-strongswan-ld-path=$STRONGSWAN_LIB_DIR |
| 44 | vi libabac/abac_util.c |
| 45 | make |
| 46 | sudo make install |
| 47 | vi /usr/local/etc/strongswan.conf |
| 48 | }}} |
| 49 | |
| 50 | === Cloned GEMINI git repository === |
| 51 | {{{ |
| 52 | mkdir ~/src |
| 53 | cd ~/src |
| 54 | git clone https://github.com/GENI-GEMINI/UW.git GEMINI |
| 55 | mkdir ~/GEC16\ Tutorials/GEMINI |
| 56 | cd ~/GEC16\ Tutorials/GEMINI |
| 57 | ln -s ~/src/GEMINI/geminiv2 common |
| 58 | }}} |
| 59 | |
| 60 | === Installed credentials for gemini01-gemini15 in ~/GEC16\ Tutorials/GEMINI === |
| 61 | |
| 62 | === Installed GSI === |
| 63 | {{{ |
| 64 | cd src |
| 65 | tar -zxvf /tmp/irodsGSIinstall/gt5.2.2-all-source-installer.tar.gz |
| 66 | sudo apt-get install libltdl-dev |
| 67 | sudo mkdir /usr/local/globus |
| 68 | sudo chmod a+w /usr/local/globus |
| 69 | cd gt5.2.2-all-source-installer/ |
| 70 | export GLOBUS_LOCATION=/usr/local/globus |
| 71 | ./configure --prefix $GLOBUS_LOCATION |
| 72 | make globus-gsi |
| 73 | cd /usr/local/globus/include/globus |
| 74 | ln -s gcc32dbg/globus_config.h |
| 75 | export LD_LIBRARY_PATH=$GLOBUS_LOCATION/lib |
| 76 | }}} |
| 77 | |
| 78 | === Installed iRODS 3.2 === |
| 79 | {{{ |
| 80 | cd ~/src |
| 81 | tar -zxvf /tmp/irodsGSIinstall/irods3.2.tgz |
| 82 | cd iRODS |
| 83 | ./irodssetup |
| 84 | |
| 85 | Include additional prompts for advanced settings [no]? no |
| 86 | Build an iRODS server [yes]? no |
| 87 | Include GSI [no]? yes |
| 88 | GLOBUS_LOCATION [/usr/local/globus]? /usr/local/globus |
| 89 | GSI Install Type to use (or 'none')? globus |
| 90 | Include Kerberos [no]? no |
| 91 | Include the NCCS Auditing extensions [no]? no |
| 92 | Save configuration (irods.config) [yes]? yes |
| 93 | Start iRODS build [yes]? yes |
| 94 | }}} |
| 95 | |
| 96 | === Installed CA certificates === |
| 97 | {{{ |
| 98 | mkdir ~/.globus |
| 99 | cd ~/.globus |
| 100 | tar -zxvf /tmp/irodsGSIinstall/geniCAbundle.tgz |
| 101 | cd certificates |
| 102 | for i in `ls *.0`;do hash=`basename ${i} .0`;rm $hash.signing_policy;rm $hash.0;done |
| 103 | /tmp/irodsGSIinstall/genhashes.sh |
| 104 | }}} |
| 105 | |
| 106 | === Set up bash environment for iRODS/GSI === |
| 107 | {{{ |
| 108 | echo 'export PATH=/home/geni/src/iRODS/clients/icommands/bin:$PATH' >> /home/geni/.bashrc |
| 109 | echo 'export GLOBUS_LOCATION=/usr/local/globus' >> /home/geni/.bashrc |
| 110 | echo 'export LD_LIBRARY_PATH=$GLOBUS_LOCATION/lib' >> /home/geni/.bashrc |
| 111 | }}} |
| 112 | |
| 113 | === Installed other misc tools === |
| 114 | * vim |
| 115 | * screen |
| 116 | * emacs |
| 117 | * apache2 |