Changes between Initial Version and Version 1 of client_installation_guide

Show
Ignore:
Timestamp:
06/10/11 17:34:37 (13 years ago)
Author:
piontek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • client_installation_guide

    v1 v1  
     1= QCG Broker Client Installation = 
     2 
     3[[PageOutline]]  
     4 
     5= Requirements = 
     6* '''Java (>= 1.5)'''\\ 
     7{{{ 
     8#!div style="font-size: 90%" 
     9For SL5.x 
     10{{{#!sh 
     11yum install java-1.6.0-sun-compat.x86_64 
     12}}} 
     13}}} 
     14* '''Apache Ant''' (>= 1.6) ("Optional tasks for ant" are required. For SL5.x the ''ant-nodeps.x86_64'' package must be installed) 
     15{{{ 
     16#!div style="font-size: 90%" 
     17For SL5.x 
     18{{{#!sh 
     19yum install ant.x86_64 ant-nodeps.x86_64 
     20}}} 
     21}}} 
     22* '''xml-commons-apis''' - installation of this package is not mandatory, but is recommended to avoid confusing information about not important errors. 
     23{{{ 
     24#!div style="font-size: 90%" 
     25For SL5.x 
     26{{{#!sh 
     27yum install xml-commons.x86_64 xml-commons-apis.x86_64 
     28}}} 
     29}}} 
     30* '''trusted CA certificates''' 
     31 To enable secure communication between client and QCG-Broker service set of trusted CA certificates must be copied either into `/etc/grid-security/certificates` directory or configured for every user. 
     32 
     33 For the PL-Grid project: Install Polish Grid and PL-Grid Simpla-CA certificates: 
     34{{{ 
     35#!div style="font-size: 90%" 
     36{{{#!sh 
     37wget https://dist.eugridpma.info/distribution/igtf/current/accredited/RPMS/ca_PolishGrid-1.38-1.noarch.rpm 
     38wget http://software.plgrid.pl/packages/general/ca_PLGRID-SimpleCA-1.0-2.noarch.rpm 
     39wget https://dist.eugridpma.info/distribution/util/fetch-crl/fetch-crl-2.8.5-1.noarch.rpm 
     40 
     41rpm -i ca_PolishGrid-1.38-1.noarch.rpm  
     42rpm -i ca_PLGRID-SimpleCA-1.0-2.noarch.rpm  
     43 
     44#install certificate revocation list fetching utility  
     45rpm -i fetch-crl-2.8.5-1.noarch.rpm 
     46 
     47#get fresh CRLs now 
     48/usr/sbin/fetch-crl  
     49 
     50#install cron job for it 
     51cat > /etc/cron.daily/fetch-crl.cron << EOF 
     52#!/bin/sh  
     53/usr/sbin/fetch-crl 
     54EOF 
     55 
     56chmod a+x /etc/cron.daily/fetch-crl.cron 
     57}}} 
     58}}} 
     59* '''User's credential''' 
     60  To secure the communication and authenticate the user to the service the X509 proxy certificate is needded. 
     61  Client expects the access either to proxy certificate file or to pair of user certificate and private key files in "pem" format. 
     62 
     63  If the user has the certificate in p12 format, the certificate has to be first converted to pem format files. 
     64{{{ 
     65  openssl pkcs12 -nocerts -in cert.p12 -out userkey.pem 
     66  openssl pkcs12 -clcerts -nokeys -in cert.p12 -out usercert.pem 
     67}}} 
     68 
     69 
     70= Installation = 
     71The installation of QCG-Broker service can be done in two ways: 
     721. Using the QCG-Broker precompiled source distribution. This kind of installation is designed for every Linux distribution meeting described above requirements. The installation can be performed as well by system administrator (to deploy one common instance of client accesible for all users) as every regular user (that wants to have his own instance). 
     732. Using provided RPM package. The package is designed for Scientific Linux 5.x (recommended version is 5.5) and the installation process requires root privileges. 
     74 
     75== Installation using the QCG-Broker distribution == 
     76* download the QCG-Broker archive from [[http://node2.qoscosgrid.man.poznan.pl/~piontek/qcg-broker/qcg-broker.tgz|qcg-broker.tgz]] 
     77{{{ 
     78#!div style="font-size: 90%" 
     79{{{#!sh 
     80wget http://node2.qoscosgrid.man.poznan.pl/~piontek/qcg-broker/qcg-broker.tgz 
     81}}} 
     82}}} 
     83* unpack the archive 
     84{{{ 
     85#!div style="font-size: 90%" 
     86{{{#!sh 
     87tar xzf qcg-broker.tgz 
     88}}} 
     89}}} 
     90=== Compilation === 
     91The distribution contains precompiled version of QCB-Broker command-line client, that can be deployed as it is. The compilation step is optional and can be skiped, except the situation in which some specific compiler options should be added or changed. 
     92  
     93* compile sources 
     94{{{ 
     95#!div style="font-size: 90%" 
     96{{{#!sh 
     97cd qcg-broker-<VERSION> 
     98ant client-stubs client 
     99}}} 
     100}}} 
     101 
     102=== Setup === 
     103* setup deployment configuration - all configuration variables are placed in `client-deploy.prop` file 
     104 * '''client.deploy.dir''' - directory where QCG-Broker client will be deployed 
     105 * '''client.service.host''' - QCG-Broker service hostname 
     106 * '''client.service.port''' - QCG-Broker service port 
     107 * '''client.service.dn''' - QCG-Broker credential DN 
     108 
     109=== Deployment === 
     110*  deploy QCG-Broker command-line client  
     111{{{ 
     112#!div style="font-size: 90%" 
     113{{{#!sh 
     114ant deploy-client 
     115}}} 
     116}}} 
     117 
     118== Installation using provided RPM == 
     119Perform the whole installation procedure as a `root` user. 
     120 
     121* Install PL-Grid or/and QCG repositories: 
     122 * Official PL-Grid repository 
     123{{{ 
     124#!div style="font-size: 90%" 
     125{{{#!sh 
     126rpm -Uvh http://software.plgrid.pl/packages/repos/plgrid-repos-2010-2.noarch.rpm 
     127}}} 
     128}}} 
     129 * !QosCosGrid testing repository 
     130{{{ 
     131#!div style="font-size: 90%" 
     132{{{#!sh 
     133cat > /etc/yum.repos.d/qcg.repo << EOF 
     134[qcg] 
     135name=QosCosGrid YUM repository 
     136baseurl=http://fury.man.poznan.pl/qcg-packages/sl/x86_64/ 
     137enabled=1 
     138gpgcheck=0 
     139EOF 
     140}}} 
     141}}} 
     142* install QCG-Broker client using YUM Package Manager: 
     143{{{ 
     144#!div style="font-size: 90%" 
     145{{{#!sh 
     146yum install qcg-broker-client 
     147}}} 
     148}}} 
     149 
     150* configure the client specifying the QCG-Broker URL and DN: 
     151{{{ 
     152#!div style="font-size: 90%" 
     153{{{#!sh 
     154vim /opt/plgrid/qcg/qcg-broker/client/etc/qcg-broker-client.conf 
     155}}} 
     156}}} 
     157 
     158= Usage = 
     159For the description how to use the QCG-Broker client please see the [[QCG_Broker_Client|QCG-Broker User Guide]].