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