Mercurial > dive4elements > river
annotate doc/INSTALL_DE @ 8755:30b1ddadf275
(issue1801) Unify reference gauge finding code
The basic way as described in the method comment of the
determineRefGauge method is now used in the WINFOArtifact,
MainValuesService and RiverUtils.getGauge method.
RiverUtils.getGauge previously just returned the first
gauge found. While this is now a behavior change I believe
that it is always more correct then the undeterministic
behavior of the previous implmenentation.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 24 Jun 2015 14:07:26 +0200 |
parents | f39c080b3903 |
children | a4b9a08c2181 |
rev | line source |
---|---|
7769 | 1 =============================================================================== |
2 Installation Dive4Elements-river | |
3 =============================================================================== | |
4 | |
5 Diese Anleitung geht davon aus, dass ein Benutzer 'd4euser' existiert, der | |
6 angemeldet ist und mit dem die Schritte der Installation durchgeführt werden. | |
7 | |
8743
f39c080b3903
Install doc: update to latest changes in binary packages.
Tom Gottfried <tom@intevation.de>
parents:
8522
diff
changeset
|
8 Die Installationsanleitung wurde mit Debian wheezy getestet. |
7769 | 9 |
10 Erforderliche Pakete zum Installieren von D4E-river | |
11 =================================================== | |
12 $ su root | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
13 # apt-get install openjdk-7-jdk |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
14 # apt-get install tmux |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
15 # apt-get install tomcat6 postgresql-9.1-postgis \ |
7812
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
16 apache2 cgi-mapserver ttf-freefont libapache2-mod-jk |
7769 | 17 |
18 | |
19 Benutzer und Verzeichnis für die Serverkomponente anlegen | |
20 ========================================================= | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
21 # useradd -d /home/d4e d4e |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
22 # cd /opt/ |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
23 # mkdir d4e-river |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
24 # chown d4e d4e-river/ |
7769 | 25 |
26 | |
27 Benutzer und Gruppe für das Logging anlegen | |
28 =========================================== | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
29 # groupadd d4e_log |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
30 # usermod -a -G d4e_log d4e |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
31 # usermod -a -G d4e_log tomcat6 |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
32 # usermod -a -G d4e_log www-data |
7769 | 33 |
34 | |
35 Anlegen des Logging Verzeichnisses | |
36 ================================== | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
37 # mkdir /var/log/d4e-river |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
38 # chgrp d4e_log /var/log/d4e-river |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
39 # chmod 775 /var/log/d4e-river |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
40 # exit |
7769 | 41 |
42 | |
7786
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
43 Installation von D4E-river aus Binärpaket |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
44 ========================================= |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
45 |
7874
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
46 Herunterladen von |
8743
f39c080b3903
Install doc: update to latest changes in binary packages.
Tom Gottfried <tom@intevation.de>
parents:
8522
diff
changeset
|
47 - d4e-river-VERSION.tar.bz2 |
f39c080b3903
Install doc: update to latest changes in binary packages.
Tom Gottfried <tom@intevation.de>
parents:
8522
diff
changeset
|
48 - d4river-VERSION.war |
f39c080b3903
Install doc: update to latest changes in binary packages.
Tom Gottfried <tom@intevation.de>
parents:
8522
diff
changeset
|
49 VERSION ist hier und im Folgenden durch die entsprechende |
f39c080b3903
Install doc: update to latest changes in binary packages.
Tom Gottfried <tom@intevation.de>
parents:
8522
diff
changeset
|
50 Versionsbezeichnung im Paketnamen zu ersetzen. |
7874
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
51 |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
52 Als root-User: |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
53 # cd /opt/ |
8743
f39c080b3903
Install doc: update to latest changes in binary packages.
Tom Gottfried <tom@intevation.de>
parents:
8522
diff
changeset
|
54 # mkdir d4e-river |
f39c080b3903
Install doc: update to latest changes in binary packages.
Tom Gottfried <tom@intevation.de>
parents:
8522
diff
changeset
|
55 # cd d4e-river |
f39c080b3903
Install doc: update to latest changes in binary packages.
Tom Gottfried <tom@intevation.de>
parents:
8522
diff
changeset
|
56 # tar xvjf d4e-river-VERSION.tar.bz2 |
7874
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
57 # chown -R d4e d4e-river |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
58 |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
59 In das Verzeichnis /opt/d4e-river/dgm/ müssen noch die DGMs der |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
60 Demo-Daten kopiert werden. (s.u.) |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
61 |
8743
f39c080b3903
Install doc: update to latest changes in binary packages.
Tom Gottfried <tom@intevation.de>
parents:
8522
diff
changeset
|
62 # mv d4river-VERSION.war /var/lib/tomcat6/webapps/d4e-river.war |
7874
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
63 |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
64 Der Tomcat muss wie unten dokumentiert konfiguriert werden. |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
65 Gleiches gilt für die MapServer-Installation. |
7769 | 66 |
67 Erfolgt die Installation von D4E-river aus den Binärpaketen, können die | |
68 folgenden Schritte übersprungen werden. | |
69 Die weiteren Schritte sind ab dem Abschnitt 'Backenddatenbanken' | |
70 beschrieben. | |
71 | |
72 | |
7786
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
73 Installation von D4E-river aus den Quellen |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
74 ========================================== |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
75 |
7769 | 76 Pakete zum Bauen von D4E-river |
77 ------------------------------ | |
7786
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
78 $ su root |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
79 # apt-get install maven2 mercurial |
7769 | 80 |
81 | |
7785
b1dfc7934e9d
INSTALL_DE: we don't want links to internalt sites and to build WSPLGEN
Tom Gottfried <tom@intevation.de>
parents:
7784
diff
changeset
|
82 Installation der Intevationszertifikate für den Checkout von Wald |
b1dfc7934e9d
INSTALL_DE: we don't want links to internalt sites and to build WSPLGEN
Tom Gottfried <tom@intevation.de>
parents:
7784
diff
changeset
|
83 ----------------------------------------------------------------- |
8511
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
7874
diff
changeset
|
84 Installation der Serverzertifikate von Intevation |
7785
b1dfc7934e9d
INSTALL_DE: we don't want links to internalt sites and to build WSPLGEN
Tom Gottfried <tom@intevation.de>
parents:
7784
diff
changeset
|
85 (siehe auch https://ssl.intevation.de) |
7769 | 86 |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
87 # apt-get install ca-certificates curl gnutls-bin |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
88 # curl https://ssl.intevation.de/Intevation-Root-CA-2010.crt | \ |
7769 | 89 certtool -i | awk '/^-----BEGIN CERTIFICATE-----$/ , 0' > \ |
90 /usr/local/share/ca-certificates/Intevation-Root-CA-2010.crt | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
91 # update-ca-certificates |
7769 | 92 |
7786
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
93 #. Mercurial beibringen die Zertifikate zu nutzen: |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
94 # hierzu kann beispielsweise die Systemweite mercurial Konfiguration |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
95 # editiert werden, z.B. mit dem Editor nano: |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
96 $ nano /etc/mercurial/hgrc |
7769 | 97 |
98 # Folgendes einfügen (siehe https://intranet.intevation.de/Mercurial#https) | |
99 [web] | |
100 cacerts = /etc/ssl/certs/ca-certificates.crt | |
101 | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
102 # exit # d4euser werden |
7769 | 103 |
104 | |
105 Checkout der D4E-Quellen | |
106 ------------------------ | |
107 $ mkdir d4e-river | |
108 $ cd d4e-river | |
109 $ hg clone https://scm.wald.intevation.org/hg/dive4elements/framework/ | |
110 $ hg clone https://scm.wald.intevation.org/hg/dive4elements/http-client/ | |
111 $ hg clone https://scm.wald.intevation.org/hg/dive4elements/river/ | |
112 | |
113 | |
114 Anpassen der Clientkonfiguration | |
115 -------------------------------- | |
116 $ cd river/gwt-client/src/main/webapp/WEB-INF/ | |
117 | |
118 #. Mapfishprint config.yaml anpassen | |
119 | |
7786
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
120 $ nano config.yaml |
7769 | 121 |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
122 Folgenden Eintrag im Abschnitt 'the list of allowed hosts' hinzufügen |
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
123 (darauf achten, dass die Einrückung mit den bestehenden Einträgen übereinstimmt): |
7769 | 124 |
125 - !dnsMatch | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
126 host: localhost # Hier den Hostnamen verwenden auf dem der MapServer läuft. |
7769 | 127 port: 8081 # Den entsprechenden Port eintragen. |
128 | |
129 | |
130 Konfigurieren des Logging | |
131 ------------------------- | |
8511
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
7874
diff
changeset
|
132 # Anpassungen des Loggings können für den Client in |
7783
e55119cbdc19
Useful server-logging for demo installation.
Tom Gottfried <tom@intevation.de>
parents:
7782
diff
changeset
|
133 # river/gwt-client/src/main/webapp/WEB-INF/log4j.properties |
e55119cbdc19
Useful server-logging for demo installation.
Tom Gottfried <tom@intevation.de>
parents:
7782
diff
changeset
|
134 # und für den Server in river/artifacts/doc/conf/log4j.properties |
e55119cbdc19
Useful server-logging for demo installation.
Tom Gottfried <tom@intevation.de>
parents:
7782
diff
changeset
|
135 # vorgenommen werden |
7769 | 136 |
137 | |
138 Bauen der Server- und Clientkomponenten | |
139 --------------------------------------- | |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
140 $ cd ~/d4e-river/framework |
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
141 $ mvn install |
7769 | 142 $ cd ../http-client/ |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
143 $ mvn install |
7769 | 144 $ cd ../river/backend/ |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
145 $ mvn install |
7769 | 146 $ cd ../artifacts/ |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
147 $ mvn package dependency:copy-dependencies |
7769 | 148 $ cd ../gwt-client/ |
149 $ curl -O http://openlayers.org/download/OpenLayers-2.11.tar.gz | |
150 $ tar xvfz OpenLayers-2.11.tar.gz | |
151 $ mv OpenLayers-2.11 src/main/webapp/ | |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
152 $ mvn package |
7769 | 153 |
154 | |
155 Kopieren der Serverkomponenten | |
156 ------------------------------ | |
157 $ su root | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
158 # su d4e |
7769 | 159 $ cd /opt/d4e-river/ |
160 $ mkdir -p bin/lib | |
161 $ cp /home/d4euser/d4e-river/river/artifacts/target/river-artifacts-1.0-SNAPSHOT.jar bin/lib/ | |
162 $ cp /home/d4euser/d4e-river/river/artifacts/target/dependency/* bin/lib/ | |
163 $ mkdir conf | |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
164 $ cp -R /home/d4euser/d4e-river/river/artifacts/doc/conf/* conf/ |
7769 | 165 |
166 | |
167 Artefaktdatenbank erstellen | |
168 =========================== | |
169 $ /home/d4euser/d4e-river/river/contrib/make_flys_release/h2/createArtifacts.sh \ | |
170 /home/d4euser/d4e-river/framework/artifact-database/doc/schema-h2.sql | |
171 | |
172 | |
173 Datenkorbdatenbank erstellen | |
174 ============================ | |
175 $ /home/d4euser/d4e-river/river/contrib/make_flys_release/h2/createDatacage.sh \ | |
176 /home/d4euser/d4e-river/river/artifacts/doc/conf/datacage.sql | |
177 $ exit | |
178 | |
179 | |
180 Backenddatenbanken (Fachdatenbank und Seddb) | |
181 ============================================ | |
182 | |
183 Anlegen und befüllen der Datenbanken | |
184 ------------------------------------ | |
185 #. Einspielen des Schemas für die Backenddatenbank | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
186 # su postgres |
7769 | 187 $ cd /home/d4euser/d4e-river/river/backend/doc/schema/ |
188 $ ./postgresql-setup.sh d4e . localhost | |
189 | |
8743
f39c080b3903
Install doc: update to latest changes in binary packages.
Tom Gottfried <tom@intevation.de>
parents:
8522
diff
changeset
|
190 #. bzw. bei Installation aus den Binaries: |
f39c080b3903
Install doc: update to latest changes in binary packages.
Tom Gottfried <tom@intevation.de>
parents:
8522
diff
changeset
|
191 # su postgres |
f39c080b3903
Install doc: update to latest changes in binary packages.
Tom Gottfried <tom@intevation.de>
parents:
8522
diff
changeset
|
192 $ cd /opt/d4e-river/schema |
f39c080b3903
Install doc: update to latest changes in binary packages.
Tom Gottfried <tom@intevation.de>
parents:
8522
diff
changeset
|
193 $ ./postgresql-setup.sh d4e . localhost |
f39c080b3903
Install doc: update to latest changes in binary packages.
Tom Gottfried <tom@intevation.de>
parents:
8522
diff
changeset
|
194 |
7769 | 195 #. Einspielen der Daten in die erstellte DB |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
196 # Demodaten von www.dive4elements.org herunterladen und entpacken |
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
197 $ psql -d d4e -f /home/d4euser/d4e-river/demodaten/d4e_demodata.dump.sql |
7769 | 198 |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
199 #. Erstellen der SedDB |
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
200 $ createuser -S -D -R seddb |
7769 | 201 $ createdb seddb |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
202 $ psql -c "ALTER USER seddb WITH PASSWORD 'seddb';" |
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
203 $ psql -U seddb -h localhost -f /home/d4euser/d4e-river/demodaten/seddb_demodata.dump.sql |
7769 | 204 |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
205 #. wieder root werden |
7769 | 206 $ exit |
207 | |
208 | |
209 Kopieren der DGMs | |
210 ================= | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
211 # su d4e |
7769 | 212 $ mkdir /opt/d4e-river/dgm |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
213 $ cp /home/d4euser/d4e-river/demodaten/dem* /opt/d4e-river/dgm |
7797
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7788
diff
changeset
|
214 $ exit |
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7788
diff
changeset
|
215 $ exit |
7769 | 216 |
217 | |
218 Einrichten von WSPLGEN | |
219 ====================== | |
220 WSPLGEN kann als ausführbare Datei heruntergeladen werden | |
7797
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7788
diff
changeset
|
221 (https://wald.intevation.org/projects/wsplgen/). Die Datei muss |
7769 | 222 dann nur noch in das 'bin' Verzeichnis des D4E-river Servers kopiert werden. |
223 | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
224 # su d4euser |
7797
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7788
diff
changeset
|
225 $ cd ~/d4e-river |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
226 |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
227 Für 64bit Systeme: |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
228 |
7797
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7788
diff
changeset
|
229 $ wget https://wald.intevation.org/frs/download.php/1496/wsplgen-linux-64bit-static.gz |
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7788
diff
changeset
|
230 $ gunzip wsplgen-linux-64bit-static.gz |
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7788
diff
changeset
|
231 $ echo "16d60047aa114d69e9435dbbe56b6981b4e1c445 wsplgen-linux-64bit-static" | \ |
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7788
diff
changeset
|
232 sha1sum -c |
7769 | 233 $ su root |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
234 # su d4e |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
235 $ cp /home/d4euser/d4e-river/wsplgen-linux-64bit-static /opt/d4e-river/bin/wsplgen |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
236 $ chmod +x /opt/d4e-river/bin/wsplgen |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
237 $ exit |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
238 |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
239 Für 32bit Systeme: |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
240 |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
241 $ wget https://wald.intevation.org/frs/download.php/1498/wsplgen-linux-32bit-static.gz |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
242 $ gunzip wsplgen-linux-32bit-static.gz |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
243 $ echo "aafd2b770ff8293d452ad3eb3321f2ed04f3f371 wsplgen-linux-32bit-static" | \ |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
244 sha1sum -c |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
245 $ su root |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
246 # su d4e |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
247 $ cp /home/d4euser/d4e-river/wsplgen-linux-32bit-static /opt/d4e-river/bin/wsplgen |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
248 $ chmod +x /opt/d4e-river/bin/wsplgen |
7802
a3db73ed95fc
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7797
diff
changeset
|
249 $ exit |
7769 | 250 |
251 | |
252 Einrichten des Mapserver und Apache | |
253 =================================== | |
254 #. Anlegen der cgi-Skripte für die WMS-Dienste | |
255 | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
256 # cd /usr/lib/cgi-bin/ |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
257 # cat > user-wms <<EOF |
7802
a3db73ed95fc
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7797
diff
changeset
|
258 #!/bin/sh |
a3db73ed95fc
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7797
diff
changeset
|
259 export MS_MAPFILE=/opt/d4e-river/flys.map |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
260 exec ./mapserv |
7802
a3db73ed95fc
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7797
diff
changeset
|
261 EOF |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
262 # cat > river-wms <<EOF |
7802
a3db73ed95fc
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7797
diff
changeset
|
263 #!/bin/sh |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
264 export MS_MAPFILE=/opt/d4e-river/rivers.map |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
265 exec ./mapserv |
7802
a3db73ed95fc
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7797
diff
changeset
|
266 EOF |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
267 # chmod 755 user-wms |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
268 # chmod 755 river-wms |
7769 | 269 |
7812
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
270 Der Apache wird für den Mapserver, sowie als Proxy für den im Tomcat |
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
271 laufenden d4e-river Client eingerichtet. Eine Beispielkonfiguration befindet |
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
272 sich in doc/d4e-apache.conf. Diese kann in den Ordner |
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
273 /etc/apache2/sites-available/ kopiert werden. Folgende Schritte sind zusätzlich |
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
274 notwendig: |
7769 | 275 |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
276 # cp /home/d4euser/d4e-river/river/doc/d4e-apache.conf /etc/apache2/sites-available/ |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
277 # a2ensite d4e-apache.conf |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
278 # a2enmod proxy_ajp |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
279 # sed -i s/80/8081/ /etc/apache2/ports.conf |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
280 # service apache2 restart |
7812
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
281 |
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
282 In der Datei |
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
283 /var/lib/tomcat6/conf/server.xml |
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
284 muss die Zeile |
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
285 |
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
286 <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> |
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
287 |
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
288 einkommentiert werden. |
7769 | 289 |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
290 # /etc/init.d/tomcat6 restart |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
291 |
7769 | 292 Einrichtung der D4E-Benutzer und -Rollen |
293 ======================================== | |
294 #. Authentifizierung über lokale Datei | |
8511
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
7874
diff
changeset
|
295 # Die Datei enthält durch Leerzeichen getrennt je Zeile |
7786
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
296 # Benutzer, Passwort und Gruppe |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
297 # cd /usr/share/tomcat6/ |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
298 # cat > flys_user_file <<EOF |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
299 d4e_demo demo d4e_demo_all |
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
300 d4e_demo1 demo |
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
301 d4e_demo_extern demo d4e_demo_extern |
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
302 EOF |
7769 | 303 |
8511
522c46c53861
Put artifact server run-script in it's final place.
"Tom Gottfried <tom@intevation.de>"
parents:
7874
diff
changeset
|
304 # Die Konfiguration der je Gruppe freigeschalteten Module und Gewässer |
7786
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
305 # befindet sich in river/gwt-client/src/main/webapp/WEB-INF/features.xml |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
306 |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
307 |
7769 | 308 Client in Tomcat Servlet-Container ablegen |
309 ========================================== | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
310 # cp /home/d4euser/d4e-river/river/gwt-client/target/gwt-client-1.0-SNAPSHOT.war \ |
7802
a3db73ed95fc
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7797
diff
changeset
|
311 /var/lib/tomcat6/webapps/d4e-river.war |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
312 # chown tomcat6 /var/lib/tomcat6/webapps/d4e-river.war |
7769 | 313 |
314 Starten der Serverkomponente | |
315 ============================ | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
316 # su d4e |
7769 | 317 $ cd /opt/d4e-river |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
318 $ tmux new -s SERVER bin/run.sh |
7769 | 319 |
320 Die Anwendung ist dann im Browser unter | |
321 | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
322 http://yourhost:8081/d4e-river |
7769 | 323 |
324 erreichbar. |