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