Globus Toolkit Installation
As root, perform the following tasks:
- Create a globus user account in your system.
# useradd globus
# passwd globus
- Create installation directories
# mkdir /opt/gt3.2
The globus toolkit will be installed in this directory, you can changes this to whatever location you like
# mkdir /opt/gpt3.0.1
GPT will be installed in this directory
- Change ownership of both directories to globus
# chown globus:globus /opt/gt3.2
# chown globus:globus /opt/gpt3.0.1
As globus, perform the following task:
- Download the following files
Globus Toolkit: gt3.2.1-preogsi-source-installer.tar.gz
GPT : gpt-3.0.1-src.tar.gz
MedGrid Experimental CA: globus_simple_ca_19fbe6b1_setup-0.19.tar.gz
- Extract the source codes
[globus]$ tar -xzvf gpt-3.0.1-src.tar.gz
[globus]$ tar -xzvf gt3.2.1-preogsi-source-installer.tar.gz
- Setup environment variables
[globus]$ export GPT_LOCATION=/opt/gpt3.0.1
[globus]$ export GLOBUS_LOCATION=/opt/gt3.2
- Build gpt
[globus]$ cd gpt-3.0.1
[globus]$ ./build_gpt
- Build the globus toolkit
go back to the download directory
[globus]$ cd ../
change directory to the globus toolkit source bundles directory
[globus]$ cd gt3.2.1-preogsi-source-installer/bundles/
build each bundle as follows:
[globus]$ $GPT_LOCATION/sbin/gpt-build [bundle-name] [flavor]
BUNDLE |
FLAVOR |
| globus-data-management-client-3.2-src_bundle.tar.gz |
gcc32dbgpthr |
gcc32dbg |
| globus-data-management-server-3.2-src_bundle.tar.gz |
gcc32dbgpthr |
gcc32dbg |
| globus-data-management-sdk-3.2-src_bundle.tar.gz |
gcc32dbgpthr |
|
| globus-information-services-client-3.2-src_bundle.tar.gz |
gcc32dbgpthr |
|
| globus-information-services-server-3.2-src_bundle.tar.gz |
gcc32dbgpthr |
|
| globus-information-services-sdk-3.2-src_bundle.tar.gz |
gcc32dbgpthr |
|
| globus-resource-management-client-3.2-src_bundle.tar.gz |
gcc32dbgpthr |
gcc32dbg |
| globus-resource-management-server-3.2-src_bundle.tar.gz |
|
gcc32dbg |
| globus-resource-management-sdk-3.2-src_bundle.tar.gz |
gcc32dbgpthr |
|
for example,
[globus]$ $GPT_LOCATION/sbin/gpt-build globus-data-management-client-3.2-src_bundle.tar.gz gcc32dbgpthr
- Build MedGrid's simple CA package using gpt-build
go back to the download directory
[globus]$ cd ../../
[globus]$ $GPT_LOCATION/sbin/gpt-build globus_simple_ca_19fbe6b1_setup-0.19.tar.gz gcc32dbg
- Perform post-installation procedure
[globus]$ . $GLOBUS_LOCATION/etc/globus-user-env.sh
[globus]$ $GPT_LOCATION/sbin/gpt-postinstall
As root, finalize GSI setup by running the following commands:
- Setup environment variables
# export GLOBUS_LOCATION=/opt/gt3.2
# export GPT_LOCATION=/opt/gpt3.0.1
- Source the globus-user-env.sh
# . $GLOBUS_LOCATION/etc/globus-user-env.sh
- Finalize GSI setup
# $GLOBUS_LOCATION/setup/globus_simple_ca_19fbe6b1_setup/setup-gsi -default
# $GLOBUS_LOCATION/setup/globus/setup-globus-gaa-authz-callout
As globus, verify the installation
- To verify the installation, run the following command:
[globus]$ $GPT_LOCATION/sbin/gpt-verify
As root, request a host certificate
- Use grid-cert-request to generate host certificate request
# grid-cert-request -host FQDN
where FQDN is the fully qualified domain name of the host, e.g., mycomputer.mydomain.edu
- Send the request to the specified email address
As an ordinary user, not root or globus, you can also request a user certificate using the grid-cert-request so that you can use it in testing the installation.
After obtaining the needed certificates, you can continue the configuration of your system. If you are not planning to run globus services, you can skip parts B and C below.
Configuring Grid-FTP
You should perform the following tasks as root.
- Add the following entry to /etc/services
gsiftp 2811/tcp # grid ftp
- Add a file in /etc/xinetd.d/ called grid-ftp with the following contents:
service gsiftp
{
instances = 1000
socket_type = stream
wait = no
user = root
env = LD_LIBRARY_PATH=/opt/gt3.2/lib
server = /opt/gt3.2/sbin/in.ftpd
server_args = -l -a -G /opt/gt3.2
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10
disable = no
}
NOTE: Replace /opt/gt3.2 in the above to the appropriate GLOBUS_LOCATION used during installation.
- reload xinetd configuration file
# /etc/init.d/xinetd reload
Configuring Pre-WS Gram Server
Perform the following tasks as root:
- Add the following entry to /etc/services
gsigatekeeper 2119/tcp # Globus gatekeeper
- Add a file in /etc/xinetd.d/ called globus-gatekeeper with the following contents:
service gsigatekeeper
{
socket_type = stream
protocol = tcp
wait = no
user = root
env = LD_LIBRARY_PATH=/opt/gt3.2/lib
server = /opt/gt3.2/sbin/globus-gatekeeper
server_args = -conf /opt/gt3.2/etc/globus-gatekeeper.conf
disable = no
}
NOTE: Replace /opt/gt3.2 in the above to the appropriate GLOBUS_LOCATION used during installation.
- Restart xinetd
# /etc/init.d/xinetd restart
- Change "globus_mapping" to "GLOBUS_MAPPING" (all caps) in the last line of /etc/grid-security/gsi-authz.conf to avoid errors.
- Create the file grid-mapfile in /etc/grid-security/ directory containing the mapping from certificate subject to the user's account name.
Ninf-G Installation
Perform the following tasks to install Ninf-G, as root:
- Download the necessary source files:
Ninf-G: ng2-latest.tgz
- Set GPT_LOCATION
# export GPT_LOCATION=/opt/gpt3.0.1
- Extract the files and change directory to the distribution directory
# tar -xzvf ng2-latest.tgz
# cd ng-2.4.0
- Create installation directory. Here, we assume that the directory is /opt/ng2.4.0
# mkdir /opt/ng2.4.0
- Configure and install the package
# ./configure --prefix=/opt/ng2.4.0 --with-globusFlavor=gcc32dbgpthr --enable-gcc
# make
# make install
NOTE: Use the correct installation directory in the --prefix option above, if different from the one specified.
- Create a symbolic link ninfg pointing to ng2.4.0. This is handy when you will update to newer versions. Just change the link to point to the new installation.
# ln -s /opt/ng2.4.0 /opt/ninfg
- Add 2 files, ninfg.sh and ninfg.csh, in /etc/profile.d/ directory containing the following:
ninfg.sh:
NG_DIR=/opt/ninfg; export NG_DIR
if [ -r ${NG_DIR}/etc/ninfg-user-env.sh ]
then
. ${NG_DIR}/etc/ninfg-user-env.sh
fi
ninfg.csh:
setenv NG_DIR /opt/ninfg
if (-r "${NG_DIR}/etc/ninfg-user-env.csh")
source ${NG_DIR}/etc/ninfg-user-env.csh
endif