source: trunk/gsdl/Install.sh@ 6771

Last change on this file since 6771 was 6771, checked in by mdewsnip, 20 years ago

Major changes. Now installs the 11 documented example collections rather than the original 4 CD-ROM collections. Also, now in French, Spanish and Russian!

  • Property svn:executable set to *
  • Property svn:mime-type set to application/octet-stream
File size: 70.7 KB
Line 
1#!/bin/sh
2
3## Install.sh -- Install Greenstone
4
5
6# set iscdrom variable to "yes" for a cdrom installation
7iscdrom="yes"
8
9# This string will always be in English so is not translated
10echo "Which version of Greenstone do you want installed: "
11echo "[E]nglish, [F]rench, [R]ussian or [S]panish?"
12printf "%s" "> "
13read ans
14ans=`echo $ans | tr 'A-Z' 'a-z'`
15
16
17# ------------------------------------------------------------------------------
18# FRENCH STRINGS
19# ------------------------------------------------------------------------------
20if [ "$ans" == "f" ] || [ "$ans" == "french" ]; then
21
22 itext0="Greeenstone n'a pu être installé"
23
24 itext1="Install.h doit être exécuté à partir du répertoire dans lequel il réside."
25
26 itext2="ERREUR: n'a pu trouver l'emplacement "
27
28 itext3cd="Ce script va installer Greenstone sur votre système. Vous pourriez
29parcourir le document Install.pdf présent dans le repertoire des
30documents de ce CD ROM avant de poursuivre avec l'installation."
31
32 itext3web="-- Missing translation --"
33
34 itext3="Notez que lorsque l'on vous demande de taper une réponse, appuyer
35sur \"entrer\" sélectionnera le choix par défaut (indiqué entre
36crochets [] à la fin de chaque question). Si vous hésitez sur
37l'option à choisir, choisissez l'option par défaut.
38
39Notez aussi que Install.sh affiche des informations concernant la
40commande exécutée sur votre système sous la forme:
41\"--> Install.sh: [command]\".
42
43Dans cette installation, il est supposé que vous ayez déjà un
44serveur Web installé sur votre système.
45
46Afin de le consulter ultérieurement, le texte affiché lors de
47l'installation, celui ci est enregistré dans un fichier appelé
48INSTALL_RECORD qui sera placé dans le répertoire à partir duquel
49vous avez choisi d'installer Greenstone.
50
51Continuer? [y]"
52
53 itext4="
54Dans quel répertoire voulez-vous installer Greenstone?
55Assurez-vous que ce répertoire est sur une partition avec suffisamment
56d'espace disque pour les options que vous avez l'intention de choisir."
57
58 itext5="
59 * Une installation binaire pour Linux nécessite environ 40Mo."
60
61 itext6="
62 * La compilation du code source de Greenstone nécessite environ 155Mo.
63 * L'installation facultative des collections Greenstone de
64 démonstration peut occuper jusqu'à 200Mo de plus (la taille de
65 chaque collection vous sera indiquée avant l'installation).
66 * La documentation en ligne nécessite 4Mo de plus.
67 * L'option permettant à Greenstone d'exporter des collections
68 \"CD exporting\" nécessite 24Mo de plus.
69Entrez le répertoire d'installation de Greenstone. Un répertoire gsdl
70sera créé dans ce répertoire. [${gsdlhome}]"
71
72 itext7="
73Avertissement: Le répertoire ${gsdlhome} n'existe pas.
74Voulez-vous le créer? [y]"
75
76 itext8="ERREUR: la création du répertoire $gsdlhome a échoué"
77
78 itext9="
79Si cette installation échoue ou est annulée, n'oubliez pas d'exécuter
80le script uninstall (${gsdlhome}/Uninstall.sh) pour nettoyer
81l'installation partielle.
82Continuer? [y]"
83
84 itext10="
85Installation de la hiérarchie des répertoires à partir de ${gsdlhome}"
86
87 itext11="
88Souhaitez-vous installer la documentation Greenstone sur votre disque
89dur? La documentation occupe environ 4Mo d'espace disque. Si vous
90n'installez pas la documentation, vous pourrez toujours la consulter à
91partir du répertoire 'docs' du CD-ROM [y]"
92
93 itext12="
94Souhaitez-vous installer la fonctionnalité Greenstone pour exporter?
95Cette fonctionnalité vous permet d'exporter une collection Greenstone
96dans un format adapté pour graver un CD-ROM auto-installable sous
97Windows. Ce module occupe environ 23Mo d'espace disque [n]"
98
99 itext18="Initialisation des permissions ..."
100
101 itext19="
102Afin de permettre la construction de collection par les utilisateurs
103finaux, le programme cgi Greenstone doit pouvoir écrire dans les
104répertoires ${gsdlhome}/collect et ${gsdlhome}/tmp répertoires.
105Sur la plupart des systèmes, cela veut dire que ces répertoires doivent
106permettre l'écriture. Permettre l'écriture dans ces répertoires? [y]"
107
108 itext20="
109Vous pouvez soit installer les fichiers [b]inaires exécutables sous
110Linux (i386 seulement), soit installer et [c]ompiler le code source
111de Greenstone."
112
113 itext21="Entrez \"[b]\" ou \"c\""
114
115 itext22="Installation des fichiers binaires exécutables sous Linux"
116
117 itext23="Installation du code source"
118
119 itext24="configuration ..."
120
121 itext25="compilation ..."
122
123 itext26="installation ..."
124
125 itext27="ERREUR: La compilation a échoué"
126
127 itext28="
128
129Greenstone a besoin d'un répertoire cgi (pour les exécutables) valide
130(normalement appelé cgi-bin sur les systèmes Unix) pour exécuter.
131Ce peut être soit:
132 1. Le répertoire cgi-bin Greenstone par défaut (${gsdlhome}/cgi-bin).
133 Dans ce cas vous devrez configurer votre serveur Web pour considérer
134 ce répertoire comme étant son répertoire cgi pour les fichiers
135 exécutables. Pour Apache, vous pouvez utiliser la directive
136 'ScriptAlias' (les détails concernant la configuration de votre
137 serveur Web seront affichés à la fin de cette procédure
138 d'installation)."
139
140 itext29=" Veuillez noter que vous aurez certainement besoin de l'aide de votre
141 administrateur système pour reconfigurer votre serveur Web."
142
143 itext30=" 2. Un répertoire cgi-bin existant. Normallement un répertoire cgi-bin
144 est créé au moment de l'installation de votre serveur web.
145 Généralement c'est soit /home/httpd/cgi-bin, soit
146 /usr/local/apache/cgi-bin, soit /var/lib/apache/cgi-bin."
147
148 itext31=" De nombreux systèmes permettent aux utilisateurs individuels d'avoir
149 leur propre répertoire cgi-bin in /home/username/public_html/cgi-bin."
150
151 itext32="Entrez \"[1]\" or \"2\""
152
153 itext33="
154N'oubliez pas de configurer votre serveur Web pour considérer
155${gsdlhome}/cgi-bin comme le répertoire cgi exécutable. Ne vous en
156faites pas, vous serez à nouveau prévenu à la fin de cette procédure
157d'installation."
158
159 itext34="
160Entrez le répertoire existant cgi pour les fichiers exécutables
161[/usr/local/apache/cgi-bin]"
162
163 itext35="Avertissement: Le répertoire ${cgi_bin} n'existe pas.
164Voulez-vous le créer? [y]"
165
166 itext36="N'oubliez pas de configurer votre serveur Web pour considérer
167${gsdlhome}/cgi-bin comme le répertoire cgi exécutable. Ne vous en faites
168pas, on vous le rappellera encore une fois à la fin la fin de la procédure
169d'installation."
170
171 itext37="Exécutez le script uninstall (${gsdlhome}/Uninstall.sh) pour nettoyer
172une installation partielle."
173
174 itext38="ERREUR: la création du répertoire $cgi_bin a échoué"
175
176 itext39="
177Impossible d'écrire dans le répertoire $cgi_bin . Vous devrez copier le
178contenu du répertoire ${gsdlhome}/cgi-bin dans le répertoire $cgi_bin une
179fois cette installation terminée. On vous le rappellera encore une fois à
180la fin la fin de la procédure d'installation."
181
182 itext40="
183Installation des programmes cgi Greenstone dans $cgi_bin"
184
185 itext41="
186Veuillez entrer l'adresse Web du répertoire $cgi_bin. En général, c'est
187http://localhost/cgi-bin, ou http://127.0.0.1/cgi-bin, ou
188http://votre-ordinateur-nom/cgi-bin, ou http://nnn.nnn.nnn.nn/cgi-bin.
189[$web_cgi]"
190
191 itext42="
192
193Pour pouvoir exécuter Greenstone, le répertoire $gsdlhome et tout son
194contenu doit être accessible à partir du Web.
195Pour que cela soit possible, vous pouvez soit:
196 1. Configurer le serveur Web pour que le répertoire $gsdlhome soit
197 lui-même accessible à partir du Web."
198
199 itext43=" 2. Indiquer un répertoire Web déjà accessible à partir du Web dans
200 lequel un lien symbolique (ln -s) vers $gsdlhome sera créé.
201 Lorsqu'un serveur Web est installé, un répertoire accessible à partir
202 du web est toujours créé (le serveur Web Apache utilise la directive
203 DocumentRoot pour définir ce répertoire). En général, ce répertoire
204 est appelé /home/httpd/html, ou bien /usr/local/apache/htdocs, ou
205 encore /var/lib/apache/htdocs."
206
207 itext44=" De nombreux systèmes permettent aux utilisateurs individuels
208 d'avoir leur propre répertoire accessible à partir du Web. Ces
209 répertoires sont créés à partir du répertoire
210 /home/username/public_html."
211
212 itext45=" Veuillez noter que le serveur Web devra être configuré pour
213 accepter les liens symboliques à partir de ce répertoire. Pour
214 le serveur Apache cela signifie que ce répertoire doit être
215 configuré avec les options SymLinksIfOwnerMatch et FollowSymLinks
216 (La plupart des installations Apache sont configurées de cette façon
217 par défaut)"
218
219 itext46="
220N'oubliez pas de configurer le serveur Web pour que le répertoire $gsdlhome
221soit accessible à partir du Web. On vous le rappellera encore une fois à la
222fin la fin de la procédure d'installation."
223
224 itext47="Entrez le répertoire qui est accessible à partir du Web [${public_html}]"
225
226 itext48="
227Impossible d'écrire dans le répertoire $public_html. Vous devrez créer un
228lien symbolique appelé gsdl de $public_html vers $gsdlhome après cette
229installation. On vous le rappellera encore une fois à la fin de la
230procédure d'installation."
231
232 itext49="
233Entrez l'adresse Web du répertoire $public_html. Elle peut être un url
234relatif (c.a.d. \"/gsdl\") ou un url complet (c.a.d.
235\"http://${hostname}/gsdl\") [/gsdl]"
236
237 itext50="
238Un mot de passe est nécessaire pour pouvoir utiliser des collections
239construites par des utilisateurs finaux ou pour afficher des pages
240permettant l'administration.
241Un utilisateur ayant pour nom utilisateur \"admin\" sera créé avec le
242mot de passe que vous allez entrer (c.a.d. que pour afficher les pages
243qui nécessite d'authentifier l'utilisateur, vous devrez entrer \"admin\"
244comme nom d'utilisateur et le mot de passe que vous allez donner ici).
245"
246
247 itext51="
248
249L'installation de Greenstone a réussi."
250
251 itext52=" * N'oubliez pas de configurer le serveur Web pour considérer le
252 répertoire $cgi_bin comme étant le répertoire des exécutables cgi."
253
254 itext53=" Pour le serveur Apache, vous devrez ajouter la directive
255 ScriptAlias suivante dans le fichier de configuration httpd.conf"
256
257 itext54=" * N'oubliez pas de déplacer le contenu du répertoire
258 ${gsdlhome}/cgi-bin dans le répertoire $cgi_bin
259"
260
261 itext55=" * N'oubliez pas de configurer le serveur Web pour considérer le
262 répertoire $gsdlhome comme accessible par le Web."
263
264 itext56=" Pour le serveur Apache, vous devrez ajouter au fichier de
265 configuration httpd.conf la directive Alias suivante."
266
267 itext57=" N'oubliez pas de créer un lien symbolique appelé gsdl de $old_ph
268 vers ${gsdlhome}.
269"
270
271 itext58="Les messages affichés lors de l'exécution de ce script ont été enregistré
272dans ${gsdlhome}/INSTALL_RECORD.
273Vous pouvez enlever Greenstone de votre ordinateur à tout moment en
274exécutant le script ${gsdlhome}/Uninstall.sh.
275Utilisez Greenstone en rentrant l'adresse ${web_cgi}/library
276dans votre navigateur.
277"
278
279 itext59="
280Cette installation nécessite l'utilitaire Gnu 'make' qui n'a pu être trouvé
281sur cet ordinateur. Veuillez entrer le chemin d'accès vers Gnu make"
282
283 itextdoccols="
284La collection Greenstone de démonstration a été installée. Souhaitez-vous
285installer d'autres collections à partir du CD-ROM d'installation? [y]"
286
287 itextdec_dls="
288-- Missing translation --"
289
290 itextdec_wrdpdf="
291-- Missing translation --"
292
293 itextdec_gsarch="
294-- Missing translation --"
295
296 itextdec_cltbib="
297-- Missing translation --"
298
299 itextdec_cltext="
300-- Missing translation --"
301
302 itextdec_marc="
303-- Missing translation --"
304
305 itextdec_oai="
306-- Missing translation --"
307
308 itextdec_image="
309-- Missing translation --"
310
311 itextdec_authen="
312-- Missing translation --"
313
314 itextdec_garish="
315-- Missing translation --"
316
317 itextdec_isis="
318-- Missing translation --"
319
320
321# ------------------------------------------------------------------------------
322# RUSSIAN STRINGS
323# ------------------------------------------------------------------------------
324elif [ "$ans" == "r" ] || [ "$ans" == "russian" ]; then
325
326 itext0="Greenstone ÎÅ ÂÙÌ ÕÓÔÁÎÏ×ÌÅÎ"
327
328 itext1="Install.sh ÄÏÌÖÅÎ ÂÙÔØ ÕÓÔÁÎÏ×ÌÅÎ ÉÚ ÄÉÒÅËÔÏÒÉÉ, × ËÏÔÏÒÏÊ ÏÎ ÒÁÚÍÅÝÁÅÔÓÑ"
329
330 itext2="ïûéâëá: îÅ×ÏÚÍÏÖÎÏ ÏÐÒÅÄÅÌÉÔØ ÍÅÓÔÏÐÏÌÏÖÅÎÉÅ"
331
332 itext3cd="üÔÏÔ ÓËÒÉÐÔ ÕÓÔÁÎÏ×ÉÔ Greenstone × ÷ÁÛÕ ÓÉÓÔÅÍÕ. ðÒÉ ÖÅÌÁÎÉÉ ÷Ù ÍÏÖÅÔÅ
333ÐÒÏÓÍÏÔÒÅÔØ ÄÏËÕÍÅÎÔ Install.pdf, ËÏÔÏÒÙÊ ÒÁÓÐÏÌÏÖÅÎ × ÄÉÒÅËÔÏÒÉÉ docs
334ÎÁ ÄÁÎÎÏÍ CD-ROM, ÄÏ ÐÒÏÄÏÌÖÅÎÉÑ ÉÎÓÔÁÌÌÑÃÉÉ."
335
336 itext3web="-- Missing translation --"
337
338 itext3="
339úÁÍÅÔØÔÅ, ÞÔÏ ËÏÇÄÁ ÐÏÓÔÕÐÁÅÔ ÐÒÉÇÌÁÛÅÎÉÅ ÎÁ ××ÏÄ, ÎÁÖÁÔÉÅ ËÌÁ×ÉÛÉ
340\"enter\" ×ÙÂÉÒÁÅÔ ÐÏ ÕÍÏÌÞÁÎÉÀ ÚÁÄÁÎÎÏÅ × Ë×ÁÄÒÁÔÎÙÈ ÓËÏÂËÁÈ [] ×
341ËÏÎÃÅ ËÁÖÄÏÇÏ ×ÏÐÒÏÓÁ. åÓÌÉ ×Ù ÎÅ Õ×ÅÒÅÎÙ, ËÁËÏÊ ×ÁÒÉÁÎÔ ×ÙÂÒÁÔØ,
342ÉÓÐÏÌØÚÕÊÔÅ ÔÏÔ, ËÏÔÏÒÙÊ ÄÁÎ ÐÏ ÕÍÏÌÞÁÎÉÀ.
343
344úÁÍÅÔØÔÅ ÔÁËÖÅ, ÞÔÏ Install.sh ×ÙÄÁÅÔ ÎÁ ÐÅÞÁÔØ ÉÎÆÏÒÍÁÃÉÀ ÌÀÂÙÈ
345ËÏÍÁÎÄ, ËÏÔÏÒÙÅ ÐÏÓÔÕÐÁÀÔ × ÷ÁÛÕ ÓÉÓÔÅÍÕ × ÆÏÒÍÅ
346\"--> Install.sh: [command]\".
347
348ðÏ×ÓÀÄÕ ÐÒÅÄÐÏÌÁÇÁÅÔÓÑ, ÞÔÏ ×ÙÐÏÌÎÅÎÎÁÑ ÷ÁÍÉ ÐÒÏÃÅÄÕÒÁ ÉÎÓÔÁÌÌÑÃÉÉ,
349ÕÓÔÁÎÏ×ÉÌÁ ÷ÅÂ-ÓÅÒ×ÅÒ × ÷ÁÛÕ ÓÉÓÔÅÍÕ.
350
351äÌÑ ÐÏÓÌÅÄÕÀÝÉÈ ÓÓÙÌÏË ×ÙÈÏÄ ÄÁÎÎÏÇÏ ÉÎÓÔÁÌÌÑÃÉÏÎÎÏÇÏ ÓËÒÉÐÔÁ ÂÕÄÅÔ
352ÚÁÐÉÓÁÎ × ÆÁÊÌÅ, ÎÁÚÙ×ÁÅÍÏÍ INSTALL_RECORD, × ÉÒÅËÔÏÒÉÉ, ËÏÔÏÒÕÀ ÷Ù
353×ÙÂÒÁÌÉ ÄÌÑ ÉÎÓÔÁÌÌÑÃÉÉ Greenstone.
354
355ðÒÏÄÏÌÖÉÔØ? [y]"
356
357 itext4="
358÷ ËÁËÕÀ ÄÉÒÅËÔÏÒÉÀ ÄÏÌÖÅÎ ÂÙÔØ ÕÓÔÁÎÏ×ÌÅÎ Greenstone? õÄÏÓÔÏ×ÅÒØÔÅÓØ,
359ÞÔÏ ÜÔÁ ÄÉÒÅËÔÏÒÉÑ ÎÁÈÏÄÉÔÓÑ ÎÁ ÕÞÁÓÔËÅ Ó ÄÏÓÔÁÔÏÞÎÙÍ Ó×ÏÂÏÄÎÙÍ
360ÐÒÏÓÔÒÁÎÓÔ×ÏÍ ÎÁ ÄÉÓËÅ ÄÌÑ ÉÎÓÔÁÌÑÃÉÏÎÎÙÈ ×ÁÒÉÁÎÔÏ×, ËÏÔÏÒÙÅ ÷Ù
361ÎÁÍÅÒÅ×ÁÅÔÅÓØ ×ÙÂÒÁÔØ."
362
363 itext5="
364 * éÎÓÔÁÌÌÑÃÉÑ ÂÉÎÁÒÎÏÇÏ Linux ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ 40 Mb."
365
366 itext6="
367 * ëÏÍÐÉÌÑÃÉÑ Greenstone ÉÚ ÉÓÈÏÄÎÏÊ ÐÒÏÇÒÁÍÍÙ ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ
368 155 Mb.
369 * ðÒÏÉÚ×ÏÌØÎÙÅ ÄÅÍÏÎÓÔÒÁÃÉÏÎÎÙÅ ËÏÌÌÅËÃÉÉ Greenstone ÍÏÇÕÔ
370 ÉÓÐÏÌØÚÏ×ÁÔØ ÄÏ 200 Mb (÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÚÎÁÔØ ÒÁÚÍÅÒ ËÁÖÄÏÊ
371 ÉÎÄÉ×ÉÄÕÁÌØÎÏÊ ËÏÌÌÅËÃÉÉ ÐÅÒÅÄ ÔÅÍ, ËÁË ÉÎÓÔÁÌÌÉÒÏ×ÁÔØ ÅÅ).
372 * ïÎÌÁÊÎÏ×ÁÑ ÄÏËÕÍÅÎÔÁÃÉÑ ÔÒÅÂÕÅÔ ÄÁÌØÎÅÊÛÉÈ 4 Mb.
373 * æÕÎËÃÉÑ ÄÏÓÔÕÐÎÏÓÔÉ Greenstone \"CD exporting\" ÔÒÅÂÕÅÔ ÅÝÅ 24 Mb.
374÷×ÅÄÉÔÅ ÄÉÒÅËÔÏÒÉÀ ÄÌÑ ÉÎÓÔÁÌÌÑÃÉÉ × ÎÅÅ Greenstone. äÉÒÅËÔÏÒÉÑ gsdl
375ÂÕÄÅÔ ÓÏÚÄÁÎÁ × ÜÔÏÊ ÄÉÒÅËÔÏÒÉÉ. [${gsdlhome}]"
376
377 itext7="
378ðÒÅÄÕÐÒÅÖÄÅÎÉÅ: äÉÒÅËÔÏÒÉÑ ${gsdlhome} ÎÅ ÓÕÝÅÓÔ×ÕÅÔ.
379óÏÚÄÁÔØ ÅÅ? [y]"
380
381 itext8="ïûéâëá: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÄÉÒÅËÔÏÒÉÀ $gsdlhome."
382
383 itext9="
384åÓÌÉ ÜÔÁ ÉÎÓÔÁÌÌÑÃÉÑ ÂÙÌÁ ÎÅÕÄÁÞÎÏÊ ÉÌÉ ÏÔÍÅÎÅÎÁ, ××ÅÄÉÔÅ
385ÄÅÉÎÓÔÁÌÌÑÃÉÏÎÎÙÊ ÓËÒÉÐÔ (${gsdlhome}/Uninstall.sh), ÞÔÏÂÙ ÏÞÉÓÔÉÔØ
386ÞÁÓÔÉÞÎÕÀ ÕÓÔÁÎÏ×ËÕ.
387ðÒÏÄÏÌÖÉÔØ? [y]"
388
389 itext10="
390éÎÓÔÁÌÌÑÃÉÑ ÓÔÒÕËÔÕÒÙ ÄÉÒÅËÔÏÒÉÉ Greenstone × ${gsdlhome}"
391
392 itext11="
393èÏÔÅÌÉ ÂÙ ÷Ù ÕÓÔÁÎÏ×ÉÔØ ÄÏËÕÍÅÎÔÁÃÉÀ Greenstone ÎÁ ÷ÁÛ ÖÅÓÔËÉÊ ÄÉÓË?
394äÏËÕÍÅÎÔÁÃÉÑ ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ 4 Mb ÐÒÏÓÔÒÁÎÓÔ×Á. åÓÌÉ ÷Ù ÎÅ
395ÈÏÔÉÔÅ ÕÓÔÁÎÁ×ÌÉ×ÁÔØ ÅÅ, Õ ÷ÁÓ ÏÓÔÁÅÔÓÑ ×ÏÚÍÏÖÎÏÓÔØ ÐÏÌÕÞÉÔØ ÄÏÓÔÕÐ
396Ë ÎÅÊ ÉÚ ÄÉÒÅËÔÏÒÉÉ ÄÏËÕÍÅÎÔÏ× CD-ROM) [y]"
397
398 itext12="
399èÏÔÅÌÉ ÂÙ ÷Ù ÕÓÔÁÎÏ×ÉÔØ ÐÏÄÄÅÒÖËÕ ÆÕÎËÃÉÊ Greenstone \"ÜËÓÐÏÒÔ
400ËÏÍÐÁËÔ-ÄÉÓËÁ\"? üÔÁ ÆÕÎËÃÉÑ ÐÏÚ×ÏÌÑÅÔ ÷ÁÍ ÜËÓÐÏÒÔÉÒÏ×ÁÔØ ËÏÌÌÅËÃÉÀ
401Greenstone × ÆÏÒÍÅ, ÐÏÄÈÏÄÑÝÅÊ ÄÌÑ Á×ÔÏÕÓÔÁÎÏ×ËÉ Windows CD-ROM. üÔÏÔ
402ÐÁËÅÔ ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ 23 íâ ÄÉÓËÏ×ÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á [n]"
403
404 itext18="õÓÔÁÎÏ×ËÁ ÒÁÚÒÅÛÅÎÉÊ..."
405
406 itext19="
407äÌÑ ÐÏÓÔÒÏÅÎÉÑ ËÏÌÌÅËÃÉÉ, ÄÏÓÔÕÐÎÏÊ ÄÌÑ ËÏÎÅÞÎÏÇÏ ÐÏÌØÚÏ×ÁÔÅÌÑ, cgi
408ÐÒÏÇÒÁÍÍÁ Greenstone ÄÏÌÖÎÙ ÉÍÅÔØ ×ÏÚÍÏÖÎÏÓÔØ ×ÐÉÓÁÔØÓÑ × ÄÉÒÅËÔÏÒÉÉ
409${gsdlhome}/collect É ${gsdlhome}/tmp. äÌÑ ÂÏÌØÛÉÎÓÔ×Á ÓÉÓÔÅÍ ÜÔÏ
410ÏÚÎÁÞÁÅÔ, ÞÔÏ ÏÎÉ ÄÏÌÖÎÙ ÂÙÔØ ÇÌÏÂÁÌØÎÏ ÐÅÒÅÚÁÐÉÓÙ×ÁÅÍÙ. óÄÅÌÁÔØ ÜÔÉ
411ÄÉÒÅËÔÏÒÉÉ ÇÌÏÂÁÌØÎÏ ÐÅÒÅÚÁÐÉÓÙ×ÁÅÍÙÍÉ? [y]"
412
413 itext20="
414÷Ù ÍÏÖÅÔÅ ÉÌÉ ÕÓÔÁÎÏ×ÉÔØ ÐÒÅÄËÏÍÐÉÌÉÒÕÅÍÙÅ, ÓÔÁÔÉÞÅÓËÉ Ó×ÑÚÁÎÎÙÅ
415[b] Ä×ÏÉÞÎÙÅ ËÏÄÙ linux (ÔÏÌØËÏ i386) ÉÌÉ ÕÓÔÁÎÏ×ÉÔØ É
416[c] ËÏÍÐÉÌÉÒÏ×ÁÔØ ÉÓÈÏÄÎÕÀ ÐÒÏÇÒÁÍÍÕ Greenstone"
417
418 itext21="÷×ÅÄÉÔÅ \"[b]\" ÉÌÉ \"c\""
419
420 itext22="éÎÓÔÁÌÌÑÃÉÑ Ä×ÏÉÞÎÙÈ ËÏÄÏ× linux"
421
422 itext23="éÎÓÔÁÌÌÑÃÉÑ ÉÓÈÏÄÎÏÊ ÐÒÏÇÒÁÍÍÙ"
423
424 itext24="ëÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÅ..."
425
426 itext25="ëÏÍÐÉÌÉÒÏ×ÁÎÉÅ..."
427
428 itext26="éÎÓÔÁÌÑÃÉÑ..."
429
430 itext27="ïûéâëá: ëÏÍÐÉÌÑÃÉÑ ÎÅ ÕÄÁÌÁÓØ"
431
432 itext28="
433Greenstone ÎÕÖÎÁ ÐÒÉÇÏÄÎÁÑ ÉÓÐÏÌÎÉÔÅÌØÎÁÑ ÄÉÒÅËÔÏÒÉÑ (× unix ÓÉÓÔÅÍÁÈ
434ÏÂÙÞÎÏ ÎÁÚÙ×ÁÅÍÁÑ cgi-bin), ÉÚ ËÏÔÏÒÏÊ ÏÎ ÚÁÐÕÓËÁÅÔÓÑ.
435üÔÏ ÍÏÖÅÔ ÂÙÔØ ÌÉÂÏ:
436 1. õÓÔÁÎÏ×ËÁ ÐÏ ÕÍÏÌÞÁÎÉÀ ÄÉÒÅËÔÏÒÉÉ Greenstone cgi-bin
437 (${gsdlhome}/cgi-bin). åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ÐÏ ÕÍÏÌÞÁÎÉÀ Greenstone,
438 ÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ ÓÄÅÌÁÔØ
439 ÜÔÕ ÄÉÒÅËÔÏÒÉÀ ËÁË cgi ÉÓÐÏÌÎÉÍÕÀ. äÌÑ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache ÷Ù
440 ÉÓÐÏÌØÚÕÅÔÅ ÄÉÒÅËÔÉ×Õ ScriptAlias, ÞÔÏÂÙ ×ÙÐÏÌÎÉÔØ ÜÔÏ (ÐÏÄÒÏÂÎÏÓÔÉ
441 Ï ÔÏÍ, ËÁË ËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ, ÂÕÄÕÔ ÄÁÎÙ × ËÏÎÃÅ ÜÔÏÊ
442 ÐÒÏÃÅÄÕÒÙ ÉÎÓÔÁÌÌÑÃÉÉ)."
443
444 itext29=" ïÂÒÁÔÉÔÅ ×ÎÉÍÁÎÉÅ, ÞÔÏ ÷Ù ÂÕÄÅÔÅ ×ÅÒÏÑÔÎÏ ÎÕÖÄÁÔØÓÑ × ÐÏÍÏÝÉ
445 ÷ÁÛÅÇÏ ÓÉÓÔÅÍÎÏÇÏ ÁÄÍÉÎÉÓÔÒÁÔÏÒÁ, ÞÔÏÂÙ ÒÅËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ
446 ÷ÅÂ-ÓÅÒ×ÅÒ"
447
448 itext30=" 2. óÕÝÅÓÔ×ÕÀÝÁÑ ÄÉÒÅËÔÏÒÉÑ cgi-bin. ïÂÙÞÎÏ ÜÔÁ ÄÉÒÅËÔÏÒÉÑ
449 ÓÏÚÄÁÅÔÓÑ ÐÒÉ ÉÎÓÔÁÌÌÑÃÉÉ ×ÁÛÅÇÏ ÷ÅÂ-ÓÅÒ×ÅÒÁ. ëÁË ÐÒÁ×ÉÌÏ, ÜÔÏ ÍÏÖÅÔ
450 ÂÙÔØ /home/httpd/cgi-bin, ÉÌÉ /usr/local/apache/cgi-bin, ÉÌÉ
451 /var/lib/apache/cgi-bin."
452
453 itext31=" íÎÏÇÉÅ ÓÉÓÔÅÍÙ ÔÁËÖÅ ÐÏÚ×ÏÌÑÀÔ ÉÎÄÉ×ÉÄÕÁÌØÎÙÍ ÐÏÌØÚÏ×ÁÔÅÌÑÍ
454 ÉÍÅÔØ ÉÈ ÓÏÂÓÔ×ÅÎÎÙÊ cgi-bin × /home/username/public_html/cgi-bin."
455
456 itext32="÷×ÅÄÉÔÅ \"[1]\" ÉÌÉ \"2\""
457
458 itext33="
459îÅ ÚÁÂÕÄØÔÅ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ ÏÂÒÁÔÉÔØ
460${gsdlhome}/cgi-bin × cgi-×ÙÐÏÌÎÉÍÕÀ ÄÉÒÅËÔÏÒÉÀ. îÅ ×ÏÌÎÕÊÔÅÓØ, ËÏÇÄÁ
461÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á × ËÏÎÃÅ ÐÒÏÃÅÄÕÒÙ ÉÎÓÔÁÌÌÑÃÉÉ."
462
463 itext34="
464÷×ÅÄÉÔÅ ÓÕÝÅÓÔ×ÕÀÝÕÀ cgi-×ÙÐÏÌÎÉÍÕÀ ÄÉÒÅËÔÏÒÉÀ [/usr/local/apache/cgi-bin]"
465
466 itext35="ðÒÅÄÕÐÒÅÖÄÅÎÉÅ: ${cgi_bin} ÄÉÒÅËÔÏÒÉÑ ÎÅ ÓÕÝÅÓÔ×ÕÅÔ.
467óÏÚÄÁÔØ ÅÅ? [y]"
468
469 itext36="îÅ ÚÁÂÕÄØÔÅ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁËÉÍ ÏÂÒÁÚÏÍ, ÞÔÏÂÙ
470ÓÄÅÌÁÔØ $cgi_bin × ËÁÞÅÓÔ×Å cgi ×ÙÐÏÌÎÉÍÏÊ ÄÉÒÅËÔÏÒÉÉ. îÅ ×ÏÌÎÕÊÔÅÓØ,
471ÅÓÌÉ × ËÏÎÃÅ ÉÎÓÔÁÌÌÑÃÉÉ ÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á."
472
473 itext37="éÓÐÏÌØÚÕÊÔÅ ÄÅÉÎÓÔÁÌÌÑÃÉÏÎÎÙÊ ÓËÒÉÐÔ (${gsdlhome}/Uninstall.sh)
474ÄÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÕÄÁÌÉÔØ ÞÁÓÔÉÞÎÕÀ ÕÓÔÁÎÏ×ËÕ."
475
476 itext38="ïûéâëá: ÎÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÄÉÒÅËÔÏÒÉÀ $cgi_bin"
477
478 itext39="
479îÅ×ÏÚÍÏÖÎÏ ÐÉÓÁÔØ × ÄÉÒÅËÔÏÒÉÉ $cgi_bin. ÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÓËÏÐÉÒÏ×ÁÔØ
480ÓÏÄÅÒÖÁÎÉÅ ${gsdlhome}/cgi-bin × $cgi_bin ÐÏÓÌÅ ÞÅÇÏ ÉÎÓÔÁÌÌÑÃÉÑ ÂÕÄÅÔ
481ÚÁËÏÎÞÅÎÁ. ÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á × ËÏÎÃÅ ÉÎÓÔÁÌÑÃÉÏÎÎÏÊ
482ÐÒÏÃÅÄÕÒÙ."
483
484 itext40="
485éÎÓÔÁÌÌÑÃÉÑ cgi-ÐÒÏÇÒÁÍÍÙ Greenstone × $cgi_bin"
486
487 itext41="
488ðÏÖÁÌÕÊÓÔÁ, ××ÅÄÉÔÅ ÷ÅÂ-ÁÄÒÅÓ ÄÉÒÅËÔÏÒÉÉ $cgi_bin. ïÂÙÞÎÏ ÜÔÏ ÍÏÖÅÔ
489ÂÙÔØ http://localhost/cgi-bin, ÉÌÉ http://127.0.0.1/cgi-bin, ÉÌÉ
490http://your-computer-name/cgi-bin ÉÌÉ http://nnn.nnn.nnn.nn/cgi-bin.
491[$web_cgi]."
492
493 itext42="
494
495þÔÏÂÙ Greenstone ÍÏÇ ÂÙÔØ ÚÁÐÕÝÅÎ, ÄÉÒÅËÔÏÒÉÑ $gsdlhome É ×ÓÅ ÅÅ
496ÓÏÄÅÒÖÉÍÏÅ ÄÏÌÖÎÙ ÂÙÔØ ÄÏÓÔÕÐÎÙ ÉÚ ÓÅÔÉ.
497þÔÏÂÙ ÓÄÅÌÁÔØ ÜÔÏ ÏÓÕÝÅÓÔ×ÉÍÙÍ, ÷Ù ÍÏÖÅÔÅ ÉÌÉ:
498 1. óËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ $gsdlhome Ñ×ÌÑÌÓÑ
499 Á×ÔÏÍÁÔÉÞÅÓËÉ ÄÏÓÔÕÐÎÙÍ ÉÚ ÓÅÔÉ."
500
501 itext43=" 2.ïÂÅÓÐÅÞÉÔØ ÓÕÝÅÓÔ×ÕÀÝÕÀ ÄÏÓÔÕÐÎÕÀ ÄÉÒÅËÔÏÒÉÀ, ÉÚ
502 ËÏÔÏÒÏÊ ÓÉÍ×ÏÌØÎÁÑ ÓÓÙÌËÁ (ln -s) ÂÕÄÅÔ ÓÄÅÌÁÎÁ Ë $gsdlhome.
503 ëÏÇÄÁ ×ÁÛ ÓÅÒ×ÅÒ ÂÙÌ ÕÓÔÁÎÏ×ÌÅÎ, ÄÉÒÅËÔÏÒÉÑ, ÄÏÓÔÕÐÎÁÑ ÉÚ ÓÅÔÉ,
504 ÂÕÄÅÔ ÓÏÚÄÁÎÁ (÷ÅÂ-ÓÅÒ×ÅÒ Apache ÉÓÐÏÌØÚÕÅÔ ÄÉÒÅËÔÉ×Õ
505 DocumentRoot ÄÌÑ ÏÐÒÅÄÅÌÅÎÉÑ ÜÔÏÊ ÄÉÒÅËÔÏÒÉÉ. ïÂÙÞÎÏ ÜÔÏÊ
506 ÄÉÒÅËÔÏÒÉÅÊ ÍÏÇÌÉ ÂÙ ÂÙÔØ /home/httpd/html, ÉÌÉ
507 /usr/local/apache/htdocs, ÉÌÉ /var/lib/apache/htdocs."
508
509 itext44=" íÎÏÇÉÅ ÓÉÓÔÅÍ ÔÁËÖÅ ÐÏÚ×ÏÌÑÀÔ ÉÎÄÉ×ÉÄÕÁÌØÎÙÍ
510 ÐÏÌØÚÏ×ÁÔÅÌÑÍ ÉÍÅÔØ ÉÈ ÓÏÂÓÔ×ÅÎÎÕÀ ÄÏÓÔÕÐÎÕÀ ÉÚ ÓÅÔÉ ÄÉÒÅËÔÏÒÉÀ
511 × /home/username/public_html."
512
513 itext45=" ïÂÒÁÔÉÔÅ ×ÎÉÍÁÎÉÅ ÎÁ ÔÏ, ÞÔÏ ×ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÂÕÄÅÔ
514 ÄÏÌÖÅÎ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÎ ÔÁË, ÞÔÏÂÙ ÐÏÚ×ÏÌÉÔØ ÓÉÍ×ÏÌØÎÙÅ ÓÓÙÌËÉ
515 ÉÚÎÕÔÒÉ ÜÔÏÊ ÄÉÒÅËÔÏÒÉÉ. äÌÑ ÓÅÒ×ÅÒÁ Apache ÜÔÏ ÏÚÎÁÞÁÅÔ, ÞÔÏ
516 ÄÁÎÎÁÑ ÄÉÒÅËÔÏÒÉÑ ÄÏÌÖÎÁ ÆÏÒÍÉÒÏ×ÁÔØÓÑ Ó ÐÏÍÏÝØÀ
517 SymLinksIfOwnerMatch ÉÌÉ ×ÁÒÉÁÎÔÁ FollowSymLinks (ÂÏÌØÛÉÎÓÔ×Ï
518 ÉÎÓÔÁÌÌÑÃÉÊ Apache ÆÏÒÍÉÒÕÀÔ ÜÔÏÔ ÐÕÔØ ÐÏ ÕÍÏÌÞÁÎÉÀ)."
519
520 itext46="
521îÅ ÚÁÂÕÄØÔÅ ËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ ÆÏÒÍÉÒÏ×ÁÔØ
522×ÁÛ webserver, ÞÔÏÂÙ $gsdlhome ÂÙÌ ÄÏÓÔÕÐÅÎ ÉÚ ÓÅÔÉ. ÷ÁÍ ÂÕÄÅÔ
523ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á × ËÏÎÃÅ ÄÁÎÎÏÊ ÉÎÓÔÁÌÌÑÃÉÏÎÎÏÊ ÐÒÏÃÅÄÕÒÙ."
524
525 itext47="÷×ÅÄÉÔÅ ÄÉÒÅËÔÏÒÉÀ, ËÏÔÏÒÁÑ Ñ×ÌÑÅÔÓÑ ÔÁËÖÅ ÄÏÓÔÕÐÎÏÊ ÉÚ ÓÅÔÉ [${public_html}]"
526
527 itext48="
528îÅ×ÏÚÍÏÖÎÏ ÐÉÓÁÔØ × ÄÉÒÅËÔÏÒÉÀ $public_html. ÷ÁÍ ÂÕÄÅÔ ÎÅÏÂÈÏÄÉÍÏ
529ÓÏÚÄÁÔØ Ó×ÑÚØ, ÎÁÚÙ×ÁÅÍÕÀ gsdl, ÏÔ $public_html Ë $gsdlhome ÐÏÓÌÅ
530ÔÏÇÏ, ËÁË ÜÔÁ ÉÎÓÔÁÌÌÑÃÉÑ ÚÁËÏÎÞÅÎÁ. ÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ
531ÓÎÏ×Á × ËÏÎÃÅ ÐÒÏÃÅÄÕÒÙ ÉÎÓÔÁÌÌÑÃÉÉ."
532
533 itext49="
534÷×ÅÄÉÔÅ ×ÅÂ-ÁÄÒÅÓ ÄÉÒÅËÔÏÒÉÉ $public_html. üÔÏ ÍÏÖÅÔ ÂÙÔØ
535ÏÔÎÏÓÉÔÅÌØÎÙÊ URL (ÎÁÐÒÉÍÅÒ, \"/gsdl\") ÉÌÉ ÖÅ ÐÏÌÎÙÊ URL
536(ÎÁÐÒÉÍÅÒ, \"http://${hostname}/gsdl\") [/gsdl]"
537
538 itext50="
539þÔÏÂÙ ÉÓÐÏÌØÚÏ×ÁÔØ ÐÏÓÔÒÏÅÎÉÅ ËÏÌÌÅËÃÉÉ ËÏÎÅÞÎÏÇÏ ÐÏÌØÚÏ×ÁÔÅÌÑ ÉÌÉ
540ÉÍÅÔØ Õ×ÅÒÅÎÎÙÊ ÄÏÓÔÕÐ Ë ÞÁÓÔÉ ÁÄÍÉÎÉÓÔÒÁÔÉ×ÎÙÈ ÓÔÒÁÎÉÃ, ÷ÁÍ
541ÎÅÏÂÈÏÄÉÍÏ ÉÍÅÔØ ÐÁÒÏÌØ. ðÏÌØÚÏ×ÁÔÅÌØ Ó ÉÍÅÎÅÍ \"admin\" ÂÕÄÅÔ
542ÓÏÚÄÁÎ ÄÌÑ ÷ÁÓ Ó ÐÁÒÏÌÅÍ, ËÏÔÏÒÙÊ ÷Ù ÎÁÚÎÁÞÉÔÅ (ÔÏ ÅÓÔØ ÄÌÑ ×ÈÏÄÁ
543× ÌÀÂÙÅ ÓÔÒÁÎÉÃÙ, ÔÒÅÂÕÀÝÉÅ ÁÕÔÅÎÔÉÆÉËÁÃÉÉ ÐÏÌØÚÏ×ÁÔÅÌÑ, ××ÅÄÉÔÅ
544ÉÍÑ ÐÏÌØÚÏ×ÁÔÅÌÑ \"admin\" É ÐÁÒÏÌØ, ËÏÔÏÒÙÊ ÷Ù ÎÁÚÎÁÞÉÌÉ).
545"
546
547 itext51="
548
549õÓÔÁÎÏ×ËÁ Greenstone ÚÁËÏÎÞÅÎÁ ÕÓÐÅÛÎÏ."
550
551 itext52=" * îÅ ÚÁÂÕÄØÔÅ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË,
552 ÞÔÏÂÙ $cgi_bin Ñ×ÌÑÌÁÓØ cgi-×ÙÐÏÌÎÉÍÏÊ ÄÉÒÅËÔÏÒÉÅÊ."
553
554 itext53=" äÌÑ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache ÜÔÏ ÏÚÎÁÞÁÅÔ ÄÏÂÁ×ÌÅÎÉÅ
555 ÓÌÅÄÕÀÝÅÊ ÄÉÒÅËÔÉ×Ù ScriptAlias Ë ÷ÁÛÅÍÕ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÍÕ
556 ÆÁÊÌÕ httpd.conf."
557
558 itext54=" * îÅ ÚÁÂÕÄØÔÅ ÐÅÒÅÍÅÓÔÉÔØ ÓÏÄÅÒÖÁÎÉÅ
559 ${gsdlhome}/cgi-bin × $cgi_bin.
560"
561
562 itext55=" * îÅ ÚÁÂÕÄØÔÅ ÔÁË ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ
563 ÔÁË, ÞÔÏÂÙ ÄÉÒÅËÔÏÒÉÑ $gsdlhome ÂÙÌÁ ÄÏÓÔÕÐÎÁ ÉÚ ÓÅÔÉ."
564
565 itext56=" äÌÑ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache ÜÔÏ ÏÚÎÁÞÁÅÔ ÄÏÂÁ×ÌÅÎÉÅ
566 ÄÉÒÅËÔÉ×Ù Alias Ë ×ÁÛÅÍÕ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÍÕ ÆÁÊÌÕ httpd.conf."
567
568 itext57=" * îÅ ÚÁÂÕÄØÔÅ ÓÏÚÄÁÔØ ÓÓÙÌËÕ, ÎÁÚÙ×ÁÅÍÕÀ gsdl, ÏÔ
569 $old_ph Ë ${gsdlhome}.
570"
571
572 itext58="÷ÙÈÏÄ ÜÔÏÇÏ ÓËÒÉÐÔÁ ÂÙÌ ÚÁÐÉÓÁÎ ÄÌÑ ÷ÁÓ ×
573${gsdlhome}/INSTALL_RECORD.
574÷Ù ÍÏÖÅÔÅ ÕÄÁÌÉÔØ Greenstone ÉÚ ÷ÁÛÅÊ ÓÉÓÔÅÍÙ × ÌÀÂÏÅ ×ÒÅÍÑ,
575××ÅÄÑ ÓËÒÉÐÔ ${gsdlhome}/Uninstall.sh.
576äÏÓÔÕÐ Ë Greenstone ÕËÁÚÁÎÉÅÍ ÷ÅÂ-ÂÒÁÕÚÅÒÁ × ${web_cgi}/library.
577"
578
579 itext59="
580üÔÁ ÉÎÓÔÁÌÌÑÃÉÑ ÔÒÅÂÕÅÔ GNU, ËÏÔÏÒÙÊ ÎÅ ÂÙÌ ÏÂÎÁÒÕÖÅÎ × ÷ÁÛÅÊ
581ÓÉÓÔÅÍÅ. ðÏÖÁÌÕÊÓÔÁ, ××ÅÄÉÔÅ ÐÕÔØ ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ GNU."
582
583 itextdoccols="
584äÅÍÏÎÓÔÒÁÃÉÏÎÎÁÑ ËÏÌÌÅËÃÉÑ Greenstone ÂÙÌÁ ÕÓÔÁÎÏ×ÌÅÎÁ. èÏÔÉÔÅ ÌÉ
585÷Ù ÕÓÔÁÎÏ×ÉÔØ ÌÀÂÙÅ ÄÒÕÇÉÅ ËÏÌÌÅËÃÉÉ ÉÚ ÉÎÓÔÁÌÑÃÉÏÎÎÏÇÏ CD-ROM? [y]"
586
587 itextdec_dls="
588-- Missing translation --"
589
590 itextdec_wrdpdf="
591-- Missing translation --"
592
593 itextdec_gsarch="
594-- Missing translation --"
595
596 itextdec_cltbib="
597-- Missing translation --"
598
599 itextdec_cltext="
600-- Missing translation --"
601
602 itextdec_marc="
603-- Missing translation --"
604
605 itextdec_oai="
606-- Missing translation --"
607
608 itextdec_image="
609-- Missing translation --"
610
611 itextdec_authen="
612-- Missing translation --"
613
614 itextdec_garish="
615-- Missing translation --"
616
617 itextdec_isis="
618-- Missing translation --"
619
620
621# ------------------------------------------------------------------------------
622# SPANISH STRINGS
623# ------------------------------------------------------------------------------
624elif [ "$ans" == "s" ] || [ "$ans" == "spanish" ]; then
625
626 itext0="Greenstone no ha sido instalado."
627
628 itext1="Install.sh deberá correrse desde el directorio en el que reside."
629
630 itext2="ERROR: No se pudo localizar "
631
632 itext3cd="Este guión instalará Greenstone en su sistema. Le recomendamos que
633lea el documento install.pdf que reside en el directorio de documentos
634de este CD-ROM antes de continuar con la instalación."
635
636 itext3web="-- Missing translation --"
637
638 itext3="
639Recuerde que cuando se le pida que ingrese la información, al oprimir
640\"ingresar\" usted seleccionará los ajustes por omisión (que aparecen
641entre corchetes [] al final de cada pregunta). Si no está seguro de
642cuál opción seleccionar utilice los ajustes por omisión.
643
644Recuerde asimismo que Install.sh imprime la información de cualquier
645comando que se ejecute en su sistema en la siguiente forma:
646\"--> Install.sh: [comando]\".
647
648Durante todo el proceso de instalación se asume que usted ya tiene un
649servidor Web instalado en su sistema.
650
651Como referencia para un uso posterior los resultados de este guión de
652instalación se registrarán en un archivo llamado INSTALL_RECORD en el
653directorio en el que usted decidió instalar Greenstone.
654
655¿Desea continuar? [y]"
656
657 itext4="
658¿En qué directorio se instalará Greenstone? Asegúrese de que este
659directorio esté en una partición con suficiente espacio libre en el
660disco para las opciones que usted pretende instalar."
661
662 itext5="
663 * La instalación de un binario Linux requiere aproximadamente 40 MB."
664
665 itext6="
666 * La compilación de Greenstone desde un código fuente requiere
667 aproximadamente 155 MB.
668 * También pueden usarse colecciones muestra opcionales hasta un total
669 de 200 MB (se le indicará el tamaño de cada colección individual
670 antes de instalarla).
671 * La documentación en línea requiere de otros 4 MB.
672 * La función \"exportar a un CD\" de Greenstone requerirá de otros 24 MB.
673Ingrese el directorio para instalar Greenstone. Se creará un directorio
674gsdl en este directorio. [${gsdlhome}]"
675
676 itext7="
677Advertencia: El directorio ${gsdlhome} no existe.
678¿Desea crearlo? [y]"
679
680 itext8="ERROR: no se pudo crear el directorio $gsdlhome."
681
682 itext9="
683Si no se puede realizar la instalación o ésta se cancela, corra el guión
684de desinstalación (${gsdlhome}/Uninstall.sh) para eliminar las partes
685instaladas.
686¿Desea continuar? [y]"
687
688 itext10="
689Instalación de la estructura de directorios Greenstone en ${gsdlhome}"
690
691 itext11="
692¿Le gustaría instalar la documentación de Greenstone en su disco duro?
693Los documentos ocuparán aproximadamente 4 MB de espacio. Si decide no
694instalarlos aún podrá tener acceso a ellos desde el directorio de
695docs del CD-ROM) [y]"
696
697 itext12="
698¿Le gustaría instalar el soporte para la función \"exportar a CD\" de
699Greenstone? Esta función le permite exportar una colección Greenstone
700en una forma que permita escribir en ella a un CD-ROM para Windows que
701se podrá instalar automáticamente. Este paquete utilizará
702aproximadamente 23 MB de espacio en el disco duro [n]"
703
704 itext18="Estableciendo los permisos..."
705
706 itext19="
707Con el fin de que el usuario final pueda crear y construir una
708colección, el programa cgi de Greenstone deberá ser capaz de escribir
709en los directorios ${gsdlhome}/collect y ${gsdlhome}/tmp. En la
710mayoría de los sistemas esto significa que deberá poderse escribir en
711ellos globalmente.
712¿Desea que se pueda escribir en estos directorios globalmente? [y]"
713
714 itext20="
715Usted puede instalar los [b]inarios de Linux vinculados estáticamente
716que se han compilado previamente (únicamente i386) o instalar y
717[c]ompilar el código fuente de Greenstone."
718
719 itext21="Escriba \"[b]\" o \"c\""
720
721 itext22="Instalación de los binarios de Linux"
722
723 itext23="Instalación del código fuente"
724
725 itext24="configurando..."
726
727 itext25="compilando..."
728
729 itext26="instalando..."
730
731 itext27="ERROR: No se pudo compilar."
732
733 itext28="
734
735Greenstone necesita un directorio ejecutable cgi que sea válido
736(normalmente llamado cgi-bin en los sistemas UNIX) desde el cual se
737pueda correr.
738Este puede ser:
739 1. El directorio cgi-bin por omisión de Greenstone
740 (${gsdlhome}/cgi-bin). Si usted utiliza esta opción entonces
741 necesitará configurar su servidor Web para que trate a este
742 directorio como un directorio ejecutable cgi. En el caso del
743 servidor Web Apache se utiliza la directiva ScriptAlias para poder
744 hacer esto (los detalles de la forma de configurar su servidor Web
745 aparecerán al final de este proceso de instalación)."
746
747 itext29=" Recuerde que probablemente necesitará ayuda de su administrador
748 de sistemas para reconfigurar su servidor Web."
749
750 itext30=" 2. Un directorio cgi-bin existente. Normalmente se crea un
751 directorio cgi-bin al momento de instalar su servidor Web. En
752 términos generales este puede ser /home/httpd/cgi-bin,
753 /usr/local/apache/cgi-bin o /var/lib/apache/cgi-bin."
754
755 itext31=" Muchos sistemas también le permiten a sus usuarios tener sus
756 propios directorios individuales cgi-bin en
757 /home/username/public_html/cgi-bin."
758
759 itext32="Escriba \"[1]\" o \"2\""
760
761 itext33="
762No olvide configurar su servidor Web para que trate a ${gsdlhome}/cgi-bin
763como un directorio ejecutable cgi. No se preocupe, esto se le recordará
764nuevamente al final del proceso de instalación."
765
766 itext34="
767Ingrese un directorio ejecutable cgi existente [/usr/local/apache/cgi-bin]"
768
769 itext35="Advertencia: El directorio ${cgi_bin} no existe.
770¿Desea crearlo? [y]"
771
772 itext36="No olvide configurar su servidor Web para que trate a $cgi_bin como
773un directorio ejecutable cgi. No se preocupe, esto se le recordará
774nuevamente al final del proceso de instalación."
775
776 itext37="Corra el guión de desinstalación (${gsdlhome}/Uninstall.sh) para
777eliminar las partes instaladas."
778
779 itext38="ERROR: El directorio $cgi_bin no se pudo crear."
780
781 itext39="
782No se puede escribir en el directorio $cgi_bin. Usted necesitará copiar
783los contenidos de ${gsdlhome}/cgi-bin en $cgi_bin después de que la
784instalación esté completa. Se le recordará esto nuevamente al final del
785proceso de instalación."
786
787 itext40="
788Instalación de los programas cgi de Greenstone en $cgi_bin"
789
790 itext41="
791Por favor ingrese la dirección Web del directorio $cgi_bin. En términos
792generales éste puede ser http://localhost/cgi-bin,
793http://127.0.0.1/cgi-bin, http://your-computer-name/cgi-bin o
794http://nnn.nnn.nnn.nn/cgi-bin. [$web_cgi]"
795
796 itext42="
797
798Para que Greenstone pueda funcionar, el directorio $gsdlhome y todos sus
799contenidos deberán ser accesibles desde la Web.
800Para lograr esto usted puede:
801 1. Configurar su servidor Web de tal manera que el mismo $gsdlhome sea
802 accesible desde la Web."
803
804
805 itext43=" 2. Proporcionar un directorio existente que sea accesible desde la
806 Web, a través del cual se creará un vínculo simbólico (ln -s) con
807 $gsdlhome. Cuando instaló su servidor seguramente se creó un
808 directorio accesible desde la Web (el servidor Apache utiliza la
809 directiva DocumentRoot para definir este directorio). En términos
810 generales este directorio podrá ser /home/httpd/html,
811 /usr/local/apache/htdocs o /var/lib/apache/htdocs."
812
813 itext44=" Muchos sistemas también le permiten a los usuarios tener sus
814 propios directorios individuales accesibles desde la Web
815 en /home/username/public_html."
816
817 itext45=" Recuerde que necesitará configurar su servidor Web para permitir
818 la creación de vínculos simbólicos desde el interior de este
819 directorio. En el caso del servidor Apache esto significa que
820 dicho directorio deberá configurarse con la opción
821 SymLinksIfOwnerMatch o FollowSymLinks (la mayoría de las
822 instalaciones Apache se configuran de esta manera por omisión)."
823
824 itext46="
825No olvide configurar su servidor Web para hacer que $gsdlhome sea
826accesible desde la Web. Se le recordará esto nuevamente al final del
827proceso de instalación."
828
829 itext47="Ingrese un directorio que también sea accesible desde la Web [${public_html}]"
830
831 itext48="
832No se puede escribir en el directorio $public_html. Usted necesita
833crear un vínculo llamado gsdl de $public_html a $gsdlhome después de
834terminar la instalación. Se le recordará esto nuevamente al final del
835proceso de instalación."
836
837 itext49="
838Ingrese la dirección Web del directorio $public_html. Ésta puede ser
839un url relativo (p. ej. \"/gsdl\") o un url completo (p. ej.
840\"http://${hostname}/gsdl\") [/gsdl]"
841
842 itext50="
843Con el fin de usar la función que le permite al usuario final crear una
844colección o para tener acceso a ciertas partes de las páginas de
845administración usted deberá contar con una contraseña. Se creará para
846usted un usuario con el nombre \"admin\" y la contraseña que usted
847elija (es decir, para ingresar a las páginas que requieran de
848autenticación de usuario ingrese el nombre del usuario \"admin\" y la
849contraseña que usted haya elegido)."
850
851 itext51="
852
853La instalación de Greenstone se realizó con éxito."
854
855 itext52=" * No olvide configurar su servidor Web para que trate a $cgi_bin
856 como un directorio ejecutable cgi."
857
858 itext53=" En el caso del servidor Apache esto significa añadir la siguiente
859 directiva ScriptAlias a su archivo de configuración httpd.conf."
860
861 itext54=" * No olvide mover los contenidos de ${gsdlhome}/cgi-bin a $cgi_bin.
862"
863
864 itext55=" * No olvide configurar su servidor Web para que trate a $gsdlhome
865 como un directorio accesible desde la Web."
866
867 itext56=" En el caso del servidor Apache esto significa añadir la siguiente
868 directiva Alias a su archivo de configuración httpd.conf."
869
870 itext57=" * No olvide crear un vínculo llamado gsdl de $old_ph a ${gsdlhome}.
871"
872
873 itext58="Los resultados de este guión han sido registrados para su uso
874posterior en ${gsdlhome}/INSTALL_RECORD.
875Usted podrá quitar el programa Greenstone de su sistema en cualquier
876momento que lo desee con solo ejecutar el guión
877${gsdlhome}/Uninstall.sh.
878Para tener acceso a Greenstone apunte el navegador hacia
879${web_cgi}/library."
880
881 itext59="Esta instalación requiere una utilería make GNU, el cual podría no
882encontrarse en su sistema. Por favor ingrese la ruta hacia la
883utilería make GNU."
884
885 itextdoccols="
886La colección de muestra Greenstone ha sido instalada. ¿Le gustaría instalar
887alguna otra colección del CD-ROM de instalación? [y]"
888
889 itextdec_dls="
890-- Missing translation --"
891
892 itextdec_wrdpdf="
893-- Missing translation --"
894
895 itextdec_gsarch="
896-- Missing translation --"
897
898 itextdec_cltbib="
899-- Missing translation --"
900
901 itextdec_cltext="
902-- Missing translation --"
903
904 itextdec_marc="
905-- Missing translation --"
906
907 itextdec_oai="
908-- Missing translation --"
909
910 itextdec_image="
911-- Missing translation --"
912
913 itextdec_authen="
914-- Missing translation --"
915
916 itextdec_garish="
917-- Missing translation --"
918
919 itextdec_isis="
920-- Missing translation --"
921
922
923# ------------------------------------------------------------------------------
924# ENGLISH STRINGS
925# ------------------------------------------------------------------------------
926else
927
928 itext0="Greenstone was not installed"
929
930 itext1="Install.sh must be run from the directory in which it resides"
931
932 itext2="ERROR: Could not locate "
933
934 itext3cd="This script will install Greenstone on your system. You may want
935to skim through the Install.pdf document that resides in the docs
936directory on this cd-rom before continuing with the installation."
937
938 itext3web="This script will install Greenstone on your system. You may
939want to download and skim through the Greenstone Installer's Guide
940(Install.pdf) before continuing with the installation"
941
942 itext3="
943Note that when prompted for input, hitting \"enter\" will select
944the default (given in square brackets [] at the end of each question).
945If you're unsure which option to select, use the default.
946
947Note also that Install.sh prints out information on any commands
948it runs on your system in the form \"--> Install.sh: [command]\".
949
950It is assumed throughout this installation procedure that you
951have a webserver installed on your system.
952
953For later reference the output of this install script will be
954recorded in a file called INSTALL_RECORD in the directory into
955which you choose to install Greenstone.
956
957Continue? [y]"
958
959 itext4="
960Which directory should Greenstone be installed to?
961Make sure that this directory is on a partition with sufficient
962free disk space for the installation options you intend selecting."
963
964 itext5="
965 * A linux binary installation requires approximately
966 40Mb."
967
968 itext6="
969 * Compiling Greenstone from source code requires
970 approximately 155Mb.
971 * Optional Greenstone demonstration collections may use up
972 to a further 200Mb (you'll be told the size of each individual
973 collection before you install it).
974 * Online documentation requires a further 4Mb.
975 * Enabling Greenstone's \"CD exporting\" function requires a
976 further 24Mb.
977Enter directory to install Greenstone into. A gsdl directory
978will be created in this directory. [${gsdlhome}]"
979
980 itext7="
981Warning: The ${gsdlhome} directory does not exist.
982Create it? [y]"
983
984 itext8="ERROR: failed to create $gsdlhome directory"
985
986 itext9="
987If this installation fails or is cancelled, run the uninstall
988script (${gsdlhome}/Uninstall.sh) to clean up the partial
989installation.
990Continue? [y]"
991
992 itext10="
993Installing Greenstone directory structure to ${gsdlhome}"
994
995 itext11="
996Would you like to install the Greenstone documentation to your
997hard drive? The docs will use about 4Mb of space. If you choose
998not to install them you can still access them from within the
999docs directory of the cd-rom) [y]"
1000
1001 itext12="
1002Would you like to install support for Greenstone's \"CD exporting\"
1003function? This function allows you to export a Greenstone collection
1004in a form suitable for writing to a self-installing Windows cd-rom.
1005This package will use approximately 23Mb of disk space [n]"
1006
1007 itext18="Setting permissions ..."
1008
1009 itext19="
1010In order for end-user collection building to be enabled the
1011Greenstone cgi program must be able to write to the
1012${gsdlhome}/collect and ${gsdlhome}/tmp directories.
1013On most systems this means they must be globally writable.
1014Make these directories globally writable? [y]"
1015
1016 itext20="
1017You may either install pre-compiled, statically linked linux [b]inaries
1018(i386 only) or install and [c]ompile the Greenstone source code"
1019
1020 itext21="Enter \"[b]\" or \"c\""
1021
1022 itext22="Installing linux binaries"
1023
1024 itext23="Installing source code"
1025
1026 itext24="configuring ..."
1027
1028 itext25="compiling ..."
1029
1030 itext26="installing ..."
1031
1032 itext27="ERROR: Compilation failed"
1033
1034 itext28="
1035
1036Greenstone needs a valid cgi executable directory (normally called
1037cgi-bin on unix systems) from which to run.
1038This may be either:
1039 1. The default Greenstone cgi-bin directory (${gsdlhome}/cgi-bin).
1040 If you use the Greenstone default you will need to configure
1041 your webserver to treat this directory as a cgi executable
1042 directory. For the Apache webserver you use the ScriptAlias
1043 directive to do this (details of how to configure your webserver
1044 will be displayed at the end of this installation procedure)."
1045
1046 itext29=" Note that you will probably need help from your system
1047 administrator to reconfigure your webserver."
1048
1049 itext30=" 2. An existing cgi-bin directory. Normally a cgi-bin directory
1050 is created when your webserver is installed. Typically, this
1051 might be /home/httpd/cgi-bin, or /usr/local/apache/cgi-bin, or
1052 /var/lib/apache/cgi-bin."
1053
1054 itext31=" Many systems also allow individual users to have their own
1055 cgi-bin in /home/username/public_html/cgi-bin."
1056
1057 itext32="Enter \"[1]\" or \"2\""
1058
1059 itext33="
1060Don't forget to configure your webserver to treat ${gsdlhome}/cgi-bin
1061as a cgi executable directory. Don't worry, you'll be
1062reminded of this again at the end of the installation
1063procedure"
1064
1065 itext34="
1066Enter existing cgi executable directory [/usr/local/apache/cgi-bin]"
1067
1068 itext35="Warning: The ${cgi_bin} directory does not exist.
1069Create it? [y]"
1070
1071 itext36="Don't forget to configure your webserver to treat $cgi_bin
1072as a cgi executable directory. Don't worry, you'll be
1073reminded of this again at the end of the installation
1074procedure"
1075
1076 itext37="Run the uninstall script (${gsdlhome}/Uninstall.sh)
1077to clean up the partial installation."
1078
1079 itext38="ERROR: failed to create $cgi_bin directory"
1080
1081 itext39="
1082Unable to write to $cgi_bin directory. You will need
1083to copy the contents of ${gsdlhome}/cgi-bin
1084to $cgi_bin after this installation is completed.
1085You'll be reminded of this again at the end of the
1086installation procedure."
1087
1088 itext40="
1089Installing Greenstone cgi programs in $cgi_bin"
1090
1091 itext41="
1092Please enter the web address of the $cgi_bin
1093directory. Typically this might be http://localhost/cgi-bin,
1094or http://127.0.0.1/cgi-bin, or http://your-computer-name/cgi-bin,
1095or http://nnn.nnn.nnn.nn/cgi-bin. [$web_cgi]"
1096
1097 itext42="
1098
1099In order for Greenstone to run, the $gsdlhome
1100directory and all it contains must be accessible from the web.
1101To make this happen you may either:
1102 1. Configure your webserver so that $gsdlhome
1103 is itself accessible from the web."
1104
1105 itext43=" 2. Provide an existing web accessible directory from which
1106 a symbolic link (ln -s) will be made to $gsdlhome.
1107 When your server was installed a web accessible directory
1108 will have been created (the Apache webserver uses the
1109 DocumentRoot directive to define this directory). Typically
1110 this directory might be /home/httpd/html, or /usr/local/apache/htdocs,
1111 or /var/lib/apache/htdocs."
1112
1113 itext44=" Many systems also allow individual users to have their own
1114 web accessible directory in /home/username/public_html."
1115
1116 itext45=" Note that your web server will need to be configured to allow
1117 symbolic links from within this directory. For the Apache
1118 server that means this directory must be configured with
1119 the SymLinksIfOwnerMatch or FollowSymLinks option (most Apache
1120 installations are configured this way by default)."
1121
1122 itext46="
1123Don't forget to configure your webserver to make $gsdlhome
1124accessible from the web. You'll be reminded of this again
1125at the end of this installation procedure."
1126
1127 itext47="Enter directory that is also accessible from the web [${public_html}]"
1128
1129 itext48="
1130Unable to write to $public_html directory. You will need
1131to create a link called gsdl from $public_html to
1132$gsdlhome after this installation is completed. You'll be
1133reminded of this again at the end of the installation
1134procedure."
1135
1136 itext49="
1137Enter the web address of the $public_html directory.
1138This may be a relative url (e.g. \"/gsdl\") or a
1139complete url (e.g. \"http://${hostname}/gsdl\") [/gsdl]"
1140
1141 itext50="
1142In order to use end-user collection building or to access certain
1143parts of the administration pages you must have a password.
1144A user with the username \"admin\" will be created for you with
1145the password you provide (i.e. to enter any pages requiring user
1146authentication enter the \"admin\" username and the password you
1147set here).
1148"
1149
1150 itext51="
1151
1152Greenstone installation completed successfully."
1153
1154 itext52=" * Don't forget to configure your webserver to treat
1155 $cgi_bin as a cgi executable directory."
1156
1157 itext53=" For the Apache webserver this means adding the following
1158 ScriptAlias directive to your httpd.conf configuration file."
1159
1160 itext54=" * Don't forget to move the contents of ${gsdlhome}/cgi-bin
1161 to $cgi_bin
1162"
1163
1164 itext55=" * Don't forget to configure your webserver to treat
1165 $gsdlhome as a web accessible directory."
1166
1167 itext56=" For the Apache webserver this means adding the following
1168 Alias directive to your httpd.conf configuration file."
1169
1170 itext57=" * Don't forget to create a link called gsdl from $old_ph
1171 to ${gsdlhome}.
1172"
1173
1174 itext58="The output of this script has been recorded for you at
1175${gsdlhome}/INSTALL_RECORD.
1176You may remove Greenstone from your system at any time by running
1177the ${gsdlhome}/Uninstall.sh script.
1178Access Greenstone by pointing a web browser at
1179${web_cgi}/library
1180"
1181
1182 itext59="
1183This installation requires GNU make which could not be detected
1184on your system. Please enter the path to gnu make"
1185
1186 itextdoccols="
1187The Greenstone demonstration collection has been installed. Would you
1188like to install any other collections from the installation cd-rom? [y]"
1189
1190 itextdec_dls="
1191Install the documented Development Library Subset collection (dls-e) - 11MB? [y]"
1192
1193 itextdec_wrdpdf="
1194Install the documented MSWord and PDF demonstration (wrdpdf-e) - 4MB? [y]"
1195
1196 itextdec_gsarch="
1197Install the documented Greenstone Archives collection (gsarch-e) - 9MB? [y]"
1198
1199 itextdec_cltbib="
1200Install the documented bibliography collection (cltbib-e) - 9MB? [y]"
1201
1202 itextdec_cltext="
1203Install the documented bibliography supplement (cltext-e) - 1MB? [y]"
1204
1205 itextdec_marc="
1206Install the documented MARC example (MARC-e) - 2MB? [y]"
1207
1208 itextdec_oai="
1209Install the documented OAI demo collection (oai-e) - 19MB? [y]"
1210
1211 itextdec_image="
1212Install the documented simple image collection (image-e) - 1MB? [y]"
1213
1214 itextdec_authen="
1215Install the documented formatting and authentication demo (authen-e) - 12MB? [y]"
1216
1217 itextdec_garish="
1218Install the documented garish version of demo collection (garish) - 12MB? [y]"
1219
1220 itextdec_isis="
1221Install the documented CDS/ISIS example collection (isis-e) - 2MB? [y]"
1222
1223fi
1224
1225
1226# ==============================================================================
1227# INSTALLATION CODE
1228# ==============================================================================
1229
1230cmd_cp="cp"
1231cmd_cpr="cp -r"
1232cmd_chmod="chmod"
1233cmd_mkdir="mkdir -p"
1234cmd_ln="ln -s"
1235cmd_mv="mv"
1236cmd_rm="rm -i"
1237cmd_rmr="rm -r"
1238
1239thisdir=`pwd`
1240cd ..
1241cd_dir=`pwd`
1242cd "$thisdir"
1243
1244
1245# script must be run from within cdrom/unix directory
1246if [ ! -f "${thisdir}/Install.sh" ]; then
1247 echo "$itext1"
1248 echo "$itext0"
1249 exit 1
1250fi
1251
1252# check that various important directories are on the cd
1253if [ ! -d "${cd_dir}/gsdl" ]; then
1254 echo
1255 echo "${itext2}${cd_dir}/gsdl"
1256 echo "$itext0"
1257 exit 1
1258fi
1259if [ ! -d "${cd_dir}/Unix/bin/linux" ]; then
1260 echo
1261 echo "${itext2}${cd_dir}/Unix/bin/linux"
1262 echo "$itext0"
1263 exit 1
1264fi
1265
1266# install to /usr/local by default if user is "root", otherwise
1267# default to users home directory
1268gsdlos=`uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
1269if [ "$gsdlos" = "linux" ]; then
1270 logname=`whoami`
1271else
1272 logname=""
1273fi
1274if [ "$logname" = "" ]; then
1275 logname=`logname`
1276fi
1277gsdlhome="/home/${logname}"
1278if [ "$logname" = "root" ]; then
1279 gsdlhome="/usr/local"
1280fi
1281
1282installpdf=$itext3cd
1283if [ $iscdrom = "no" ]; then
1284 installpdf=$itext3web
1285fi
1286
1287echo "$installpdf"
1288echo "$itext3"
1289printf "%s" "> "
1290read ans
1291log="${log}${itext3}
1292> $ans
1293"
1294if [ "$ans" != "" ] && [ "$ans" != "y" ]; then
1295 echo "$itext0"
1296 exit 0
1297fi
1298
1299# check we've got gnu make (we assume gnu make will always be used on linux)
1300make="make"
1301if [ "$gsdlos" != "linux" ]; then
1302 # if gmake exists, use it
1303 whichgmake=`which gmake 2> /dev/null`
1304 if [ -x "$whichgmake" ]; then
1305 make="gmake"
1306 else
1307 # try plain old "make"
1308 make_ver=`make -v 2> /dev/null | sed -n 's/^GNU.*/GNU/p'`
1309 if [ "$make_ver" != "GNU" ]; then
1310 echo "$itext59"
1311 log="${log}$itext59"
1312 printf "%s" "> "
1313 read ans
1314 make="$ans"
1315 fi
1316 fi
1317fi
1318
1319# get gsdlhome
1320msg="$itext4"
1321if [ "$gsdlos" = "linux" ]; then
1322msg="${msg}$itext5"
1323fi
1324msg="${msg}$itext6"
1325echo "$msg"
1326printf "%s" "> "
1327read ans
1328log="${log}${msg}
1329> $ans
1330"
1331if [ "$ans" != "" ]; then
1332 gsdlhome="$ans"
1333fi
1334
1335if [ ! -d "$gsdlhome" ]; then
1336 echo "$itext7"
1337 printf "%s" "> "
1338 read ans
1339 log="${log}${itext7}
1340> $ans
1341"
1342 if [ "$ans" = "" ]; then
1343 ans="y"
1344 fi
1345 if [ "$ans" = "y" ]; then
1346 msg="--> Install.sh: [$cmd_mkdir \"$gsdlhome\"]"
1347 echo "$msg"
1348 log="${log}${msg}
1349"
1350 $cmd_mkdir "$gsdlhome"
1351 if [ ! -d "$gsdlhome" ]; then
1352 echo "$itext8"
1353 echo "$itext0"
1354 exit 1
1355 fi
1356 else
1357 echo "$itext0"
1358 exit 0
1359 fi
1360fi
1361
1362# from now on $gsdlhome includes the "/gsdl"
1363gsdlhome="${gsdlhome}/gsdl"
1364
1365msg="--> Install.sh: [$cmd_mkdir \"${gsdlhome}\"]"
1366echo "$msg"
1367log="${log}${msg}
1368"
1369$cmd_mkdir "$gsdlhome"
1370if [ ! -d "$gsdlhome" ]; then
1371 echo "$itext8"
1372 echo "$itext0"
1373 exit 1
1374fi
1375# set permissions on gsdlhome directory
1376msg="--> Install.sh: [$cmd_chmod u+rwx \"${gsdlhome}\"]"
1377echo "$msg"
1378log="${log}${msg}
1379"
1380$cmd_chmod u+rwx "$gsdlhome"
1381
1382# create initial Uninstall.sh
1383cd "$gsdlhome"
1384echo "#!/bin/sh" > Uninstall.sh
1385echo "" >> Uninstall.sh
1386echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh
1387echo "read ans" >> Uninstall.sh
1388echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> Uninstall.sh
1389echo " $cmd_chmod -R u+rwx \"$gsdlhome\"" >> Uninstall.sh
1390echo " $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh
1391echo "fi" >> Uninstall.sh
1392$cmd_chmod u+x Uninstall.sh
1393cd "$thisdir"
1394
1395# create initial INSTALL_RECORD
1396echo "$log" >> "${gsdlhome}/INSTALL_RECORD"
1397
1398echo "$itext9"
1399echo "$itext9" >> "${gsdlhome}/INSTALL_RECORD"
1400printf "%s" "> "
1401read ans
1402echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1403if [ "$ans" != "" ] && [ "$ans" != "y" ]; then
1404 msg="$itext0"
1405 echo "$msg"
1406 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1407 exit 0
1408fi
1409
1410echo "$itext10"
1411echo "$itext10" >> "${gsdlhome}/INSTALL_RECORD"
1412
1413# copy gsdl directory across
1414msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/gsdl/\"* \"$gsdlhome\"]"
1415echo "$msg"
1416echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1417$cmd_cpr "${cd_dir}/gsdl/"* "$gsdlhome"
1418
1419# copy setup shell scripts across too
1420msg="--> Install.sh: [$cmd_cp \"${cd_dir}/src/Unix/setup.\"* \"$gsdlhome\"]"
1421echo "$msg"
1422echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1423$cmd_cp "${cd_dir}/src/Unix/setup."* "$gsdlhome"
1424
1425# make sure we have a tmp directory
1426if [ ! -d "$gsdlhome/tmp" ]; then
1427 msg="--> Install.sh: [$cmd_mkdir \"$gsdlhome/tmp\"]"
1428 echo "$msg"
1429 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1430 $cmd_mkdir "${gsdlhome}/tmp"
1431fi
1432
1433# make collect directory writable so we can install collections
1434msg="--> Install.sh: [$cmd_chmod u+rwx \"$gsdlhome/collect\"]"
1435echo "$msg"
1436echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1437$cmd_chmod u+rwx "$gsdlhome/collect"
1438
1439if [ $iscdrom = "yes" ]; then
1440 # do we want docs directory?
1441 echo "$itext11"
1442 echo "$itext11" >> "${gsdlhome}/INSTALL_RECORD"
1443 printf "%s" "> "
1444 read ans
1445 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1446 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1447 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/docs\" \"$gsdlhome\"]"
1448 echo "$msg"
1449 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1450 $cmd_cpr "${cd_dir}/docs" "$gsdlhome"
1451 fi
1452
1453 # do we want the "CD exporting" stuff?
1454 echo "$itext12"
1455 echo "$itext12" >> "${gsdlhome}/INSTALL_RECORD"
1456 printf "%s" "> "
1457 read ans
1458 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1459 if [ "$ans" = "Y" ] || [ "$ans" = "y" ]; then
1460 msg="--> Install.sh: [$cmd_chmod u+rw \"${gsdlhome}/bin\"]"
1461 echo "$msg"
1462 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1463 $cmd_chmod u+rw "${gsdlhome}/bin"
1464
1465 msg="--> Install.sh: [$cmd_mkdir \"${gsdlhome}/bin/windows\"]"
1466 echo "$msg"
1467 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1468 $cmd_mkdir "${gsdlhome}/bin/windows"
1469
1470 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/netscape\" \"${gsdlhome}/bin/windows\"]"
1471 echo "$msg"
1472 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1473 $cmd_cpr "${cd_dir}/Windows/bin/windows/netscape" "${gsdlhome}/bin/windows"
1474
1475 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/Win32s\" \"${gsdlhome}/bin/windows\"]"
1476 echo "$msg"
1477 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1478 $cmd_cpr "${cd_dir}/Windows/bin/windows/Win32s" "${gsdlhome}/bin/windows"
1479
1480 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/net16\" \"${gsdlhome}/bin/windows\"]"
1481 echo "$msg"
1482 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1483 $cmd_cpr "${cd_dir}/Windows/bin/windows/net16" "${gsdlhome}/bin/windows"
1484
1485 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/net32\" \"${gsdlhome}/bin/windows\"]"
1486 echo "$msg"
1487 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1488 $cmd_cpr "${cd_dir}/Windows/bin/windows/net32" "${gsdlhome}/bin/windows"
1489
1490 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/server.exe\" \"${gsdlhome}/bin/windows\"]"
1491 echo "$msg"
1492 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1493 $cmd_cp "${cd_dir}/Windows/bin/windows/server.exe" "${gsdlhome}/bin/windows"
1494
1495 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/gssetup.exe\" \"${gsdlhome}/bin/windows\"]"
1496 echo "$msg"
1497 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1498 $cmd_cp "${cd_dir}/Windows/bin/windows/gssetup.exe" "${gsdlhome}/bin/windows"
1499
1500 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/setpw.exe\" \"${gsdlhome}/bin/windows\"]"
1501 echo "$msg"
1502 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1503 $cmd_cp "${cd_dir}/Windows/bin/windows/setpw.exe" "${gsdlhome}/bin/windows"
1504
1505 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/Setup.exe\" \"${gsdlhome}/bin/windows\"]"
1506 echo "$msg"
1507 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1508 $cmd_cp "${cd_dir}/Windows/bin/windows/Setup.exe" "${gsdlhome}/bin/windows"
1509 fi
1510
1511
1512 # which collections do we want
1513 cd "${cd_dir}/collect"
1514 echo "$itextdoccols"
1515 echo "$itextdoccols" >> "${gsdlhome}/INSTALL_RECORD"
1516 printf "%s" "> "
1517 read ans
1518 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1519 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1520
1521 # dls-e
1522 echo "$itextdec_dls"
1523 echo "$itextdec_dls" >> "${gsdlhome}/INSTALL_RECORD"
1524 printf "%s" "> "
1525 read ans
1526 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1527 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1528
1529 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/dls-e\" \"${gsdlhome}/collect\"]"
1530 echo "$msg"
1531 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1532 $cmd_cpr "${cd_dir}/collect/dls-e" "${gsdlhome}/collect"
1533 fi
1534
1535 # wrdpdf-e
1536 echo "$itextdec_wrdpdf"
1537 echo "$itextdec_wrdpdf" >> "${gsdlhome}/INSTALL_RECORD"
1538 printf "%s" "> "
1539 read ans
1540 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1541 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1542
1543 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/wrdpdf-e\" \"${gsdlhome}/collect\"]"
1544 echo "$msg"
1545 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1546 $cmd_cpr "${cd_dir}/collect/wrdpdf-e" "${gsdlhome}/collect"
1547 fi
1548
1549 # gsarch-e
1550 echo "$itextdec_gsarch"
1551 echo "$itextdec_gsarch" >> "${gsdlhome}/INSTALL_RECORD"
1552 printf "%s" "> "
1553 read ans
1554 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1555 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1556
1557 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/gsarch-e\" \"${gsdlhome}/collect\"]"
1558 echo "$msg"
1559 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1560 $cmd_cpr "${cd_dir}/collect/gsarch-e" "${gsdlhome}/collect"
1561 fi
1562
1563 # cltbib-e
1564 echo "$itextdec_cltbib"
1565 echo "$itextdec_cltbib" >> "${gsdlhome}/INSTALL_RECORD"
1566 printf "%s" "> "
1567 read ans
1568 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1569 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1570
1571 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/cltbib-e\" \"${gsdlhome}/collect\"]"
1572 echo "$msg"
1573 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1574 $cmd_cpr "${cd_dir}/collect/cltbib-e" "${gsdlhome}/collect"
1575 fi
1576
1577 # cltext-e
1578 echo "$itextdec_cltext"
1579 echo "$itextdec_cltext" >> "${gsdlhome}/INSTALL_RECORD"
1580 printf "%s" "> "
1581 read ans
1582 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1583 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1584
1585 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/cltext-e\" \"${gsdlhome}/collect\"]"
1586 echo "$msg"
1587 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1588 $cmd_cpr "${cd_dir}/collect/cltext-e" "${gsdlhome}/collect"
1589 fi
1590
1591 # MARC-e
1592 echo "$itextdec_marc"
1593 echo "$itextdec_marc" >> "${gsdlhome}/INSTALL_RECORD"
1594 printf "%s" "> "
1595 read ans
1596 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1597 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1598
1599 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/MARC-e\" \"${gsdlhome}/collect\"]"
1600 echo "$msg"
1601 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1602 $cmd_cpr "${cd_dir}/collect/MARC-e" "${gsdlhome}/collect"
1603 fi
1604
1605 # oai-e
1606 echo "$itextdec_oai"
1607 echo "$itextdec_oai" >> "${gsdlhome}/INSTALL_RECORD"
1608 printf "%s" "> "
1609 read ans
1610 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1611 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1612
1613 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/oai-e\" \"${gsdlhome}/collect\"]"
1614 echo "$msg"
1615 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1616 $cmd_cpr "${cd_dir}/collect/oai-e" "${gsdlhome}/collect"
1617 fi
1618
1619 # image-e
1620 echo "$itextdec_image"
1621 echo "$itextdec_image" >> "${gsdlhome}/INSTALL_RECORD"
1622 printf "%s" "> "
1623 read ans
1624 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1625 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1626
1627 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/image-e\" \"${gsdlhome}/collect\"]"
1628 echo "$msg"
1629 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1630 $cmd_cpr "${cd_dir}/collect/image-e" "${gsdlhome}/collect"
1631 fi
1632
1633 # authen-e
1634 echo "$itextdec_authen"
1635 echo "$itextdec_authen" >> "${gsdlhome}/INSTALL_RECORD"
1636 printf "%s" "> "
1637 read ans
1638 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1639 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1640
1641 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/authen-e\" \"${gsdlhome}/collect\"]"
1642 echo "$msg"
1643 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1644 $cmd_cpr "${cd_dir}/collect/authen-e" "${gsdlhome}/collect"
1645 fi
1646
1647 # garish-e
1648 echo "$itextdec_garish"
1649 echo "$itextdec_garish" >> "${gsdlhome}/INSTALL_RECORD"
1650 printf "%s" "> "
1651 read ans
1652 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1653 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1654
1655 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/garish\" \"${gsdlhome}/collect\"]"
1656 echo "$msg"
1657 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1658 $cmd_cpr "${cd_dir}/collect/garish" "${gsdlhome}/collect"
1659 fi
1660
1661 # isis-e
1662 echo "$itextdec_isis"
1663 echo "$itextdec_isis" >> "${gsdlhome}/INSTALL_RECORD"
1664 printf "%s" "> "
1665 read ans
1666 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1667 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1668
1669 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/isis-e\" \"${gsdlhome}/collect\"]"
1670 echo "$msg"
1671 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1672 $cmd_cpr "${cd_dir}/collect/isis-e" "${gsdlhome}/collect"
1673 fi
1674 fi
1675fi
1676
1677# set permissions
1678msg="
1679$itext18
1680--> Install.sh: [$cmd_chmod -R u+rw \"$gsdlhome\"]
1681--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/bin/script/\"*]"
1682echo "$msg"
1683echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1684$cmd_chmod -R u+rw "$gsdlhome"
1685$cmd_chmod a+x "${gsdlhome}/bin/script/"*
1686
1687# certain files in gsdl/etc need to be globally writable
1688msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/error.txt\"]"
1689echo "$msg"
1690echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1691$cmd_chmod a+w "$gsdlhome/etc/error.txt"
1692msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/key.db\"]"
1693echo "$msg"
1694echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1695$cmd_chmod a+w "$gsdlhome/etc/key.db"
1696msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/users.db\"]"
1697echo "$msg"
1698echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1699$cmd_chmod a+w "$gsdlhome/etc/users.db"
1700msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/main.cfg\"]"
1701echo "$msg"
1702echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1703$cmd_chmod a+w "$gsdlhome/etc/main.cfg"
1704msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/history.db\"]"
1705echo "$msg"
1706echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1707$cmd_chmod a+w "$gsdlhome/etc/history.db"
1708msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/usage.txt\"]"
1709echo "$msg"
1710echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1711$cmd_chmod a+w "$gsdlhome/etc/usage.txt"
1712
1713
1714# should gsdl/collect and gsdl/tmp be globally writable?
1715echo "$itext19"
1716echo "$itext19" >> "${gsdlhome}/INSTALL_RECORD"
1717printf "%s" "> "
1718read ans
1719echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1720if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1721 msg="--> Install.sh: [$cmd_chmod -R a+w \"$gsdlhome/collect\"]"
1722 echo "$msg"
1723 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1724 $cmd_chmod -R a+w "$gsdlhome/collect"
1725 msg="--> Install.sh: [$cmd_chmod -R a+w \"$gsdlhome/tmp\"]"
1726 echo "$msg"
1727 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1728 $cmd_chmod -R a+w "$gsdlhome/tmp"
1729fi
1730
1731# binaries or source code?
1732compile="yes"
1733if [ "$gsdlos" = "linux" ]; then
1734 echo "$itext20"
1735 echo "$itext20" >> "${gsdlhome}/INSTALL_RECORD"
1736
1737 found=no
1738 while [ "$found" = "no" ]; do
1739 echo "$itext21"
1740 echo "$itext21" >> "${gsdlhome}/INSTALL_RECORD"
1741 printf "%s" "> "
1742 read ans
1743 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1744 if [ "$ans" = "" ] || [ "$ans" = "b" ]; then
1745 compile="no"
1746 # install binaries
1747 msg="
1748$itext22
1749--> Install.sh: [$cmd_cpr \"${cd_dir}/Unix/bin/linux\" \"${gsdlhome}/bin\"]"
1750 echo "$msg"
1751 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1752 $cmd_cpr "${cd_dir}/Unix/bin/linux" "${gsdlhome}/bin"
1753 msg="--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/bin/linux/\"*]"
1754 echo "$msg"
1755 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1756 $cmd_chmod a+x "${gsdlhome}/bin/linux/"*
1757 msg="--> Install.sh: [$cmd_chmod -R u+rw \"${gsdlhome}/bin/linux\"]"
1758 echo "$msg"
1759 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1760 $cmd_chmod -R u+rw "${gsdlhome}/bin/linux"
1761
1762 # move library executable to cgi-bin
1763 msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/bin/linux/library\" \"${gsdlhome}/cgi-bin\"]"
1764 echo "$msg"
1765 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1766 $cmd_mv "${gsdlhome}/bin/linux/library" "${gsdlhome}/cgi-bin"
1767
1768 # move XML.tgz to perllib/cpan and untar it (if we're using perl 5.8 or
1769 # greater we use a different tgz package since modules compiled for older
1770 # perls aren't binary compatible with newer ones)
1771 xml_tgz="XML.tgz"
1772 perl_version_major=`perl -v | sed -n 's/.*v\([0-9]*\).*/\1/p'`
1773 perl_version_minor=`perl -v | sed -n 's/.*v[0-9]*\.\([0-9]*\).*/\1/p'`
1774 if [ $perl_version_major -ge 5 ] && [ $perl_version_minor -ge 8 ]; then
1775 xml_tgz="XML-5.8.tgz"
1776 fi
1777 msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/bin/linux/${xml_tgz}\" \"${gsdlhome}/perllib/cpan\"]"
1778 echo "$msg"
1779 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1780 $cmd_mv "${gsdlhome}/bin/linux/${xml_tgz}" "${gsdlhome}/perllib/cpan"
1781 cd "${gsdlhome}/perllib/cpan"
1782 msg="--> Install.sh: [gzip -dc $xml_tgz | tar -xf -]"
1783 echo "$msg"
1784 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1785 gzip -dc $xml_tgz | tar -xf -
1786
1787 found="yes"
1788 elif [ "$ans" = "c" ]; then
1789 found="yes"
1790 fi
1791 done
1792fi
1793
1794if [ "$compile" = "yes" ]; then
1795 # install source
1796 msg="
1797$itext23
1798--> Install.sh: [$cmd_cpr \"${cd_dir}/src/lib\" \"$gsdlhome\"]"
1799 echo "$msg"
1800 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1801 $cmd_cpr "${cd_dir}/src/lib" "$gsdlhome"
1802 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/packages\" \"$gsdlhome\"]"
1803 echo "$msg"
1804 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1805 $cmd_cpr "${cd_dir}/src/packages" "$gsdlhome"
1806 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/src\" \"$gsdlhome\"]"
1807 echo "$msg"
1808 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1809 $cmd_cpr "${cd_dir}/src/src" "$gsdlhome"
1810 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/Unix/\"* \"$gsdlhome\"]"
1811 echo "$msg"
1812 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1813 $cmd_cpr "${cd_dir}/src/Unix/"* "$gsdlhome"
1814 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/src/Install.txt\" \"$gsdlhome\"]"
1815 echo "$msg"
1816 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1817 $cmd_cp "${cd_dir}/src/Install.txt" "$gsdlhome"
1818 msg="--> Install.sh: [$cmd_chmod -R u+rw \"$gsdlhome\"]"
1819 echo "$msg"
1820 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1821 $cmd_chmod -R u+rw "$gsdlhome"
1822 msg="--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/configure\"]"
1823 echo "$msg"
1824 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1825 $cmd_chmod a+x "${gsdlhome}/configure"
1826 msg="--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/packages/yaz/configure\"]"
1827 echo "$msg"
1828 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1829 $cmd_chmod a+x "${gsdlhome}/packages/yaz/configure"
1830
1831 # compile it
1832 msg="--> Install.sh: [cd $gsdlhome]"
1833 echo "$msg"
1834 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1835 cd "$gsdlhome"
1836 msg="$itext24
1837
1838--> Install.sh: [./configure]"
1839 echo "$msg"
1840 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1841 ./configure
1842 msg="$itext25
1843
1844--> Install.sh: [make]"
1845 echo "$msg"
1846 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1847 $make
1848 msg="$itext26
1849
1850--> Install.sh: [make install]"
1851 echo "$msg"
1852 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1853 $make install
1854 msg="--> Install.sh: [cd $thisdir]"
1855 echo "$msg"
1856 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1857 cd "$thisdir"
1858
1859 # check that things compiled ok
1860 if [ ! -f "${gsdlhome}/cgi-bin/library" ]; then
1861 msg="$itext27
1862$itext0
1863$itext37"
1864 echo "$msg"
1865 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1866 exit 1
1867 fi
1868fi
1869
1870
1871# try to find out hostname
1872if [ "$gsdlos" = "linux" ]; then
1873 hostname=`hostname -f`
1874 if [ "$hostname" = "" ]; then
1875 hostname=`hostname -i`
1876 fi
1877fi
1878if [ "$hostname" = "" ]; then
1879 hostname=`hostname`
1880fi
1881if [ "$hostname" = "" ]; then
1882 hostname="your-computer-name"
1883fi
1884
1885
1886# get cgi-bin directory
1887echo "$itext28"
1888echo "$itext28" >> "${gsdlhome}/INSTALL_RECORD"
1889if [ "$logname" != "root" ]; then
1890 echo "$itext29"
1891 echo "$itext29" >> "${gsdlhome}/INSTALL_RECORD"
1892fi
1893echo "$itext30"
1894echo "$itext30" >> "${gsdlhome}/INSTALL_RECORD"
1895if [ "$logname" != "root" ]; then
1896 echo "$itext31"
1897 echo "$itext31" >> "${gsdlhome}/INSTALL_RECORD"
1898fi
1899found=no
1900remind_cgi="no"
1901remind_cgi_nomove="no"
1902while [ "$found" = "no" ]; do
1903 echo "$itext32"
1904 echo "$itext32" >> "${gsdlhome}/INSTALL_RECORD"
1905 printf "%s" "> "
1906 read ans
1907 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1908 if [ "$ans" = "" ] || [ "$ans" = "1" ]; then
1909 found="option1"
1910 cgi_bin="${gsdlhome}/cgi-bin"
1911 # default gsdl cgi-bin, do nothing
1912
1913 echo "$itext33"
1914 echo "$itext33" >> "${gsdlhome}/INSTALL_RECORD"
1915 remind_cgi="yes"
1916 elif [ "$ans" = "2" ]; then
1917 found="option2"
1918 # external cgi-bin
1919
1920 echo "$itext34"
1921 echo "$itext34" >> "${gsdlhome}/INSTALL_RECORD"
1922 printf "%s" "> "
1923 read ans
1924 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1925 if [ "$ans" = "" ]; then
1926 cgi_bin="/usr/local/apache/cgi-bin"
1927 else
1928 cgi_bin="$ans"
1929 fi
1930
1931 if [ ! -d "$cgi_bin" ]; then
1932
1933 echo "$itext35"
1934 echo "$itext35" >> "${gsdlhome}/INSTALL_RECORD"
1935 printf "%s" "> "
1936 read ans
1937 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1938 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1939 msg="--> Install.sh: [$cmd_mkdir \"$cgi_bin\"]"
1940 echo "$msg"
1941 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1942 $cmd_mkdir "$cgi_bin"
1943 if [ -d "$cgi_bin" ]; then
1944 echo "$itext36"
1945 echo "$itext36" >> "${gsdlhome}/INSTALL_RECORD"
1946 remind_cgi="yes"
1947 else
1948 msg="$itext38
1949$itext0
1950$itext37"
1951 echo "$msg"
1952 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1953 exit 1
1954 fi
1955 fi
1956 fi
1957
1958 if [ ! -w "$cgi_bin" ]; then
1959 echo "$itext39"
1960 echo "$itext39" >> "${gsdlhome}/INSTALL_RECORD"
1961 remind_cgi_nomove="yes"
1962 else
1963 # install cgi-bin stuff (update the uninstall script first)
1964 cd "$gsdlhome"
1965 echo "#!/bin/sh" > Uninstall.sh
1966 echo "" >> Uninstall.sh
1967 echo "$cmd_rm \"${cgi_bin}/gsdlsite.cfg\"" >> Uninstall.sh
1968 echo "$cmd_rm \"${cgi_bin}/library\"" >> Uninstall.sh
1969 echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh
1970 echo "read ans" >> Uninstall.sh
1971 echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> Uninstall.sh
1972 echo " $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh
1973 echo "fi" >> Uninstall.sh
1974 $cmd_chmod u+x Uninstall.sh
1975 cd "$thisdir"
1976
1977 msg="$itext40
1978--> Install.sh: [$cmd_mv \"${gsdlhome}/cgi-bin/gsdlsite.cfg\" \"$cgi_bin\"]"
1979 echo "$msg"
1980 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1981 $cmd_mv "${gsdlhome}/cgi-bin/gsdlsite.cfg" "$cgi_bin"
1982 msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/cgi-bin/library\" \"$cgi_bin\"]"
1983 echo "$msg"
1984 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1985 $cmd_mv "${gsdlhome}/cgi-bin/library" "$cgi_bin"
1986 fi
1987 fi
1988done
1989
1990# web address of cgi-bin
1991web_cgi="http://${hostname}/cgi-bin"
1992if [ "$found" = "option1" ]; then
1993 web_cgi="http://${hostname}/gsdl/cgi-bin"
1994fi
1995
1996echo "$itext41"
1997echo "$itext41" >> "${gsdlhome}/INSTALL_RECORD"
1998printf "%s" "> "
1999read ans
2000echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
2001if [ "$ans" != "" ]; then
2002 web_cgi="$ans"
2003fi
2004
2005# get public_html directory
2006echo "$itext42"
2007echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2008if [ "$logname" != "root" ]; then
2009 echo "$itext29"
2010 echo "$itext29" >> "${gsdlhome}/INSTALL_RECORD"
2011fi
2012echo "$itext43"
2013echo "$itext43" >> "${gsdlhome}/INSTALL_RECORD"
2014if [ "$logname" != "root" ]; then
2015 echo "$itext44"
2016 echo "$itext44" >> "${gsdlhome}/INSTALL_RECORD"
2017fi
2018echo "$itext45"
2019echo "$itext45" >> "${gsdlhome}/INSTALL_RECORD"
2020found="no"
2021remind_ph="no"
2022remind_ph_nolink="no"
2023while [ "$found" = "no" ]; do
2024 echo "$itext32"
2025 echo "$itext32" >> "${gsdlhome}/INSTALL_RECORD"
2026 printf "%s" "> "
2027 read ans
2028 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
2029 if [ "$ans" = "" ] || [ "$ans" = "1" ]; then
2030 found="yes"
2031 public_html="$gsdlhome"
2032 # no link
2033 echo "$itext46"
2034 echo "$itext46" >> "${gsdlhome}/INSTALL_RECORD"
2035 remind_ph="yes"
2036 elif [ "$ans" = "2" ]; then
2037 found="yes"
2038 # external public_html
2039 echo
2040 public_html="/home/${logname}/public_html"
2041 if [ "$logname" = "root" ]; then
2042 public_html="/usr/local/apache/htdocs"
2043 fi
2044
2045 echo "$itext47"
2046 echo "$itext47" >> "${gsdlhome}/INSTALL_RECORD"
2047 printf "%s" "> "
2048 read ans
2049 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
2050 if [ "$ans" != "" ]; then
2051 public_html="$ans"
2052 fi
2053
2054 # create link to gsdl (and update Uninstall.sh)
2055 if [ -w "$public_html" ]; then
2056 cd "$gsdlhome"
2057 echo "#!/bin/sh" > Uninstall.sh
2058 echo "" >> Uninstall.sh
2059 echo "$cmd_rm \"$public_html/gsdl\"" >> Uninstall.sh
2060 echo "$cmd_rm \"${cgi_bin}/gsdlsite.cfg\"" >> Uninstall.sh
2061 echo "$cmd_rm \"${cgi_bin}/library\"" >> Uninstall.sh
2062 echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh
2063 echo "read ans" >> Uninstall.sh
2064 echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> Uninstall.sh
2065 echo " $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh
2066 echo "fi" >> Uninstall.sh
2067 $cmd_chmod u+x Uninstall.sh
2068 cd "$thisdir"
2069
2070 msg="--> Install.sh: [cd \"$public_html\"]"
2071 echo "$msg"
2072 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2073 cd "$public_html"
2074 msg="--> Install.sh: [$cmd_ln \"$gsdlhome\" gsdl]"
2075 echo "$msg"
2076 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2077 $cmd_ln "$gsdlhome" gsdl
2078 msg="--> Install.sh: [cd \"$thisdir\"]"
2079 echo "$msg"
2080 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2081 cd "$thisdir"
2082 else
2083 echo "$itext48"
2084 echo "$itext48" >> "${gsdlhome}/INSTALL_RECORD"
2085 old_ph=$public_html
2086 remind_ph_nolink="yes"
2087 fi
2088 public_html="${public_html}/gsdl"
2089 fi
2090done
2091
2092# get httpprefix
2093echo "$itext49"
2094echo "$itext49" >> "${gsdlhome}/INSTALL_RECORD"
2095printf "%s" ">"
2096httpprefix="/gsdl"
2097read ans
2098echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
2099if [ "$ans" != "" ]; then
2100 httpprefix="$ans"
2101fi
2102
2103# get initial password
2104echo "$itext50"
2105echo "$itext50" >> "${gsdlhome}/INSTALL_RECORD"
2106pw=`"${gsdlhome}/bin/${gsdlos}/getpw"`
2107tmp="[admin]
2108<comment>
2109<enabled>true
2110<groups>administrator,colbuilder
2111<password>${pw}
2112<username>admin
2113----------------------------------------------------------------------"
2114echo "$tmp" | ${gsdlhome}/bin/${gsdlos}/txt2db "${gsdlhome}/etc/users.db"
2115$cmd_chmod a+rw "${gsdlhome}/etc/users.db"
2116
2117# edit gsdlsite.cfg
2118cd "$cgi_bin"
2119sed "s|\(gsdlhome *\)[^ ]*|\1\"${gsdlhome}\"|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
2120sed "s|#*\(httpprefix *\)[^ ]*|\1${httpprefix}|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
2121sed "s|\(httpimg *\)[^ ]*|\1${httpprefix}/images|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
2122
2123# success
2124echo "$itext51"
2125echo "$itext51" >> "${gsdlhome}/INSTALL_RECORD"
2126if [ "$remind_cgi" = "yes" ]; then
2127 echo "$itext52"
2128 echo "$itext52" >> "${gsdlhome}/INSTALL_RECORD"
2129
2130 apache_web_cgi=`echo "$web_cgi" | sed "s|[^/]*//[^/]*||" | sed "s|/*$|/|"`
2131 cgi_bin_slash=`echo "$cgi_bin" | sed "s|/*$|/|"`
2132 cgi_bin_noslash=`echo "$cgi_bin" | sed "s|/*$||"`
2133
2134 msg="$itext53
2135
2136 ScriptAlias ${apache_web_cgi} \"${cgi_bin_slash}\"
2137 <Directory \"${cgi_bin_noslash}\">
2138 AllowOverride None
2139 Options None
2140 Order allow,deny
2141 Allow from all
2142 </Directory>
2143"
2144 echo "$msg"
2145 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2146fi
2147if [ "$remind_cgi_nomove" = "yes" ]; then
2148 echo "$itext54"
2149 echo "$itext54" >> "${gsdlhome}/INSTALL_RECORD"
2150fi
2151if [ "$remind_ph" = "yes" ]; then
2152 echo "$itext55"
2153 echo "$itext55" >> "${gsdlhome}/INSTALL_RECORD"
2154
2155 apache_httpprefix=`echo "$httpprefix" | sed "s|[^/]*//[^/]*||" | sed "s|/*$|/|"`
2156 public_html_slash=`echo "$public_html" | sed "s|/*$|/|"`
2157 public_html_noslash=`echo "$public_html" | sed "s|/*$||"`
2158
2159 msg="$itext56
2160
2161 Alias ${apache_httpprefix} \"${public_html_slash}\"
2162 <Directory \"${public_html_noslash}\">
2163 Options Indexes MultiViews FollowSymLinks
2164 AllowOverride None
2165 Order allow,deny
2166 Allow from all
2167 </Directory>
2168"
2169 echo "$msg"
2170 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2171fi
2172if [ "$remind_ph_nolink" = "yes" ]; then
2173 echo "$itext57"
2174 echo "$itext57" >> "${gsdlhome}/INSTALL_RECORD"
2175fi
2176echo "$itext58"
2177echo "$itext58" >> "${gsdlhome}/INSTALL_RECORD"
2178
2179exit 0
Note: See TracBrowser for help on using the repository browser.