initial make (before make install) does not have DESTDIR set
[sfa.git] / INSTALL.txt
1 ========== INSTALL
2 Assuming that you've set up your yum repo like for a myplc install,
3 you should be abe to just
4 # yum install geniwrapper
5
6 ========== CONFIGURE
7
8 ---
9 Inspect your plc config:
10
11 [2009.06.09--1l-f8-32-vplc07] / # plc-config-tty 
12 Enter command (u for usual changes, w to save, ? for help) s PLC_ROOT_USER
13 PLC_ROOT_USER = root@test.onelab.eu
14 Enter command (u for usual changes, w to save, ? for help) s PLC_ROOT_PASSWORD
15 PLC_ROOT_PASSWORD = test++
16 ---
17 geni-config-tty
18
19 * set GENI_PLC_USER             to PLC_ROOT_USER 
20 * set GENI_PLC_PASSWORD         to PLC_ROOT_PASSWORD
21 write and quit
22
23 *NOTE* xxx at this point you get a warning b/c the authorities hierarchy has not been created yet; ignore
24 ---
25 run gimport
26
27 [2009.06.09--1l-f8-32-vplc07] / # gimport.py 
28 Import: creating top level authorities
29 Hierarchy: creating authority: plc
30 plc : 
31 Import: creating table for authority plc
32 NOTICE:  table "geni$plc" does not exist, skipping
33   inserting authority record for plc
34
35 --- 
36 run geni-config-tty again - to initialize /etc/geni/authorities/plc/plc.pkey
37
38 [2009.06.09--1l-f8-32-vplc07] / # geni-config-tty 
39 Enter command (u for usual changes, w to save, ? for help) q
40                 /etc/geni/authorities/server.key
41 copied from     /etc/geni/authorities/plc/plc.pkey
42 ---
43
44
45 xxx tested this far xxx
46
47
48 Federation:
49 ===========
50 edit /etc/geni/aggregates.xml and /etc/geni/registries.xml  
51 * set addr to ip or hostname of federated peer
52 * set port to geni service port on federated peer
53 * set hrn to humarn readable name of federated peer interface
54
55 trade trusted root gid's (found in /usr/share/geniwrapper/geni/trusted_roots/) 
56
57 Run:
58 ====
59
60 First run:
61 # initialize the registry by running the registry import tool 
62 python gimport.py
63
64 # start the services
65 /etc/init.d/geniwrapper start 
66
67 or 
68
69 plc.py -r -d
70 plc.py -a -d
71 plc.py -s -d
72
73
74 Use:
75 ==== 
76
77 Copy my private PL (RSA) ssh key to ~/.sfi/quetier.pkey
78
79 in cmdline
80 edit  configSfi.sh
81 export SFI_AUTH=ple.upmc
82 export SFI_USER=$SFI_AUTH.quetier
83 export SFI_REGISTRY=http://138.96.255.199:12345/
84 export SFI_SM=http://138.96.255.199:12346/
85
86 source configSfi.sh
87
88 ./sfi.py list ple
89 ./sfi.py show ple.upmc.quetier