source: trunk/gsdl/Install.sh@ 7089

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

Added in the writing of the VERSION file for future updating of Greenstone.

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