Mercurial > dive4elements > river
annotate doc/INSTALL_DE @ 8178:5bab2e57e965
Rev aa80f9ba56a9 was incomplete. Shame on me.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 03 Sep 2014 10:24:39 +0200 |
parents | 553829e7666a |
children | 522c46c53861 |
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 | |
7776
b972c7e1bfbe
INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents:
7769
diff
changeset
|
8 Die Installationsanleitung wurde mit Debian wheezy getestet. Die Versionen |
b972c7e1bfbe
INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents:
7769
diff
changeset
|
9 der im nächsten Schritt installierten Pakete waren zu diesem Zeitpunkt: |
b972c7e1bfbe
INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents:
7769
diff
changeset
|
10 _ openjdk-7-jdk 7u25-2.3.10-1~deb7u1 |
b972c7e1bfbe
INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents:
7769
diff
changeset
|
11 _ tomcat6 6.0.35-6+deb7u1 |
b972c7e1bfbe
INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents:
7769
diff
changeset
|
12 _ postgresql-9.1-postgis 1.5.3-2 |
b972c7e1bfbe
INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents:
7769
diff
changeset
|
13 _ apache2 2.2.22-13+deb7u1 |
b972c7e1bfbe
INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents:
7769
diff
changeset
|
14 _ cgi-mapserver 6.0.1-3.2+deb7u2 |
b972c7e1bfbe
INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents:
7769
diff
changeset
|
15 _ ttf-freefont 20120503-1 |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
16 _ libapache2-mod-jk 1.2.37-1 |
7776
b972c7e1bfbe
INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents:
7769
diff
changeset
|
17 Für die Installation aus den Quellen: |
b972c7e1bfbe
INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents:
7769
diff
changeset
|
18 _ maven2 2.2.1-12 |
b972c7e1bfbe
INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents:
7769
diff
changeset
|
19 _ mercurial 2.2.2-3 |
b972c7e1bfbe
INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents:
7769
diff
changeset
|
20 _ subversion 1.6.17dfsg-4+deb7u4 |
b972c7e1bfbe
INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents:
7769
diff
changeset
|
21 _ build-essential 11.5 |
7769 | 22 |
23 Erforderliche Pakete zum Installieren von D4E-river | |
24 =================================================== | |
25 $ su root | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
26 # apt-get install openjdk-7-jdk |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
27 # apt-get install tmux |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
28 # 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
|
29 apache2 cgi-mapserver ttf-freefont libapache2-mod-jk |
7769 | 30 |
31 | |
32 Benutzer und Verzeichnis für die Serverkomponente anlegen | |
33 ========================================================= | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
34 # useradd -d /home/d4e d4e |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
35 # cd /opt/ |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
36 # mkdir d4e-river |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
37 # chown d4e d4e-river/ |
7769 | 38 |
39 | |
40 Benutzer und Gruppe für das Logging anlegen | |
41 =========================================== | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
42 # groupadd d4e_log |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
43 # usermod -a -G d4e_log d4e |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
44 # usermod -a -G d4e_log tomcat6 |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
45 # usermod -a -G d4e_log www-data |
7769 | 46 |
47 | |
48 Anlegen des Logging Verzeichnisses | |
49 ================================== | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
50 # mkdir /var/log/d4e-river |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
51 # 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
|
52 # chmod 775 /var/log/d4e-river |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
53 # exit |
7769 | 54 |
55 | |
7786
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
56 Installation von D4E-river aus Binärpaket |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
57 ========================================= |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
58 |
7874
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
59 Herunterladen von |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
60 - d4e-river-3.1.2.tar.bz2 |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
61 - d4river-3.1.2.war |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
62 |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
63 Als root-User: |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
64 # cd /opt/ |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
65 # tar xvjf d4e-river-3.1.2.tar.bz2 |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
66 # chown -R d4e d4e-river |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
67 |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
68 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
|
69 Demo-Daten kopiert werden. (s.u.) |
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 # mv d4river-3.1.2.war /var/lib/tomcat6/webapps/d4e-river.war |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
72 |
553829e7666a
flys/issue1716: Adjusted installation from binaries.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7814
diff
changeset
|
73 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
|
74 Gleiches gilt für die MapServer-Installation. |
7769 | 75 |
76 Erfolgt die Installation von D4E-river aus den Binärpaketen, können die | |
77 folgenden Schritte übersprungen werden. | |
78 Die weiteren Schritte sind ab dem Abschnitt 'Backenddatenbanken' | |
79 beschrieben. | |
80 | |
81 | |
7786
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
82 Installation von D4E-river aus den Quellen |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
83 ========================================== |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
84 |
7769 | 85 Pakete zum Bauen von D4E-river |
86 ------------------------------ | |
7786
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
87 $ su root |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
88 # apt-get install maven2 mercurial |
7769 | 89 |
90 | |
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
|
91 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
|
92 ----------------------------------------------------------------- |
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 Installation der Serverzertifikate von Intevation |
b1dfc7934e9d
INSTALL_DE: we don't want links to internalt sites and to build WSPLGEN
Tom Gottfried <tom@intevation.de>
parents:
7784
diff
changeset
|
94 (siehe auch https://ssl.intevation.de) |
7769 | 95 |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
96 # 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
|
97 # curl https://ssl.intevation.de/Intevation-Root-CA-2010.crt | \ |
7769 | 98 certtool -i | awk '/^-----BEGIN CERTIFICATE-----$/ , 0' > \ |
99 /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
|
100 # update-ca-certificates |
7769 | 101 |
7786
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
102 #. Mercurial beibringen die Zertifikate zu nutzen: |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
103 # hierzu kann beispielsweise die Systemweite mercurial Konfiguration |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
104 # 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
|
105 $ nano /etc/mercurial/hgrc |
7769 | 106 |
107 # Folgendes einfügen (siehe https://intranet.intevation.de/Mercurial#https) | |
108 [web] | |
109 cacerts = /etc/ssl/certs/ca-certificates.crt | |
110 | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
111 # exit # d4euser werden |
7769 | 112 |
113 | |
114 Checkout der D4E-Quellen | |
115 ------------------------ | |
116 $ mkdir d4e-river | |
117 $ cd d4e-river | |
118 $ hg clone https://scm.wald.intevation.org/hg/dive4elements/framework/ | |
119 $ hg clone https://scm.wald.intevation.org/hg/dive4elements/http-client/ | |
120 $ hg clone https://scm.wald.intevation.org/hg/dive4elements/river/ | |
121 | |
122 | |
123 Anpassen der Clientkonfiguration | |
124 -------------------------------- | |
125 $ cd river/gwt-client/src/main/webapp/WEB-INF/ | |
126 | |
127 #. Mapfishprint config.yaml anpassen | |
128 | |
7786
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
129 $ nano config.yaml |
7769 | 130 |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
131 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
|
132 (darauf achten, dass die Einrückung mit den bestehenden Einträgen übereinstimmt): |
7769 | 133 |
134 - !dnsMatch | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
135 host: localhost # Hier den Hostnamen verwenden auf dem der MapServer läuft. |
7769 | 136 port: 8081 # Den entsprechenden Port eintragen. |
137 | |
138 | |
139 Anpassen der Serverkonfiguration | |
140 -------------------------------- | |
7786
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
141 $ cd ~/d4e-river/river/artifacts/doc/conf/ |
7769 | 142 |
143 #. Pfad zu den DGMs anpassen: | |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
144 $ nano conf.xml |
7786
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
145 <dgm-path>/opt/d4e-river/dgm/</dgm-path> |
7769 | 146 |
147 #. Einstellen der WMS Urls | |
7781
be4b37839015
INSTALL_DE: remove obsolete server configuration.
Tom Gottfried <tom@intevation.de>
parents:
7779
diff
changeset
|
148 # Anstatt yourhost:8081 in rivermap.xml und floodmap.xml den korrekten |
be4b37839015
INSTALL_DE: remove obsolete server configuration.
Tom Gottfried <tom@intevation.de>
parents:
7779
diff
changeset
|
149 # Host eintragen auf dem der MapServer läuft |
7769 | 150 |
151 | |
152 Konfigurieren des Logging | |
153 ------------------------- | |
7783
e55119cbdc19
Useful server-logging for demo installation.
Tom Gottfried <tom@intevation.de>
parents:
7782
diff
changeset
|
154 # Anpassungen des Loggings können für den Client in |
e55119cbdc19
Useful server-logging for demo installation.
Tom Gottfried <tom@intevation.de>
parents:
7782
diff
changeset
|
155 # 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
|
156 # 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
|
157 # vorgenommen werden |
7769 | 158 |
159 | |
160 Bauen der Server- und Clientkomponenten | |
161 --------------------------------------- | |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
162 $ cd ~/d4e-river/framework |
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
163 $ mvn install |
7769 | 164 $ cd ../http-client/ |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
165 $ mvn install |
7769 | 166 $ cd ../river/backend/ |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
167 $ mvn install |
7769 | 168 $ cd ../artifacts/ |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
169 $ mvn package dependency:copy-dependencies |
7769 | 170 $ cd ../gwt-client/ |
171 $ curl -O http://openlayers.org/download/OpenLayers-2.11.tar.gz | |
172 $ tar xvfz OpenLayers-2.11.tar.gz | |
173 $ 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
|
174 $ mvn package |
7769 | 175 |
176 | |
177 Kopieren der Serverkomponenten | |
178 ------------------------------ | |
179 $ su root | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
180 # su d4e |
7769 | 181 $ cd /opt/d4e-river/ |
182 $ mkdir -p bin/lib | |
183 $ cp /home/d4euser/d4e-river/river/artifacts/target/river-artifacts-1.0-SNAPSHOT.jar bin/lib/ | |
184 $ cp /home/d4euser/d4e-river/river/artifacts/target/dependency/* bin/lib/ | |
185 $ mkdir conf | |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
186 $ cp -R /home/d4euser/d4e-river/river/artifacts/doc/conf/* conf/ |
7769 | 187 |
188 | |
189 Artefaktdatenbank erstellen | |
190 =========================== | |
191 $ /home/d4euser/d4e-river/river/contrib/make_flys_release/h2/createArtifacts.sh \ | |
192 /home/d4euser/d4e-river/framework/artifact-database/doc/schema-h2.sql | |
193 | |
194 | |
195 Datenkorbdatenbank erstellen | |
196 ============================ | |
197 $ /home/d4euser/d4e-river/river/contrib/make_flys_release/h2/createDatacage.sh \ | |
198 /home/d4euser/d4e-river/river/artifacts/doc/conf/datacage.sql | |
199 $ exit | |
200 | |
201 | |
202 Backenddatenbanken (Fachdatenbank und Seddb) | |
203 ============================================ | |
204 | |
205 Anlegen und befüllen der Datenbanken | |
206 ------------------------------------ | |
207 #. 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
|
208 # su postgres |
7769 | 209 $ cd /home/d4euser/d4e-river/river/backend/doc/schema/ |
210 $ ./postgresql-setup.sh d4e . localhost | |
211 | |
212 #. 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
|
213 # 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
|
214 $ psql -d d4e -f /home/d4euser/d4e-river/demodaten/d4e_demodata.dump.sql |
7769 | 215 |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
216 #. Erstellen der SedDB |
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
217 $ createuser -S -D -R seddb |
7769 | 218 $ createdb seddb |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
219 $ 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
|
220 $ psql -U seddb -h localhost -f /home/d4euser/d4e-river/demodaten/seddb_demodata.dump.sql |
7769 | 221 |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
222 #. wieder root werden |
7769 | 223 $ exit |
224 | |
225 | |
226 Kopieren der DGMs | |
227 ================= | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
228 # su d4e |
7769 | 229 $ mkdir /opt/d4e-river/dgm |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
230 $ 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
|
231 $ exit |
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7788
diff
changeset
|
232 $ exit |
7769 | 233 |
234 | |
235 Einrichten von WSPLGEN | |
236 ====================== | |
237 WSPLGEN kann als ausführbare Datei heruntergeladen werden | |
7797
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7788
diff
changeset
|
238 (https://wald.intevation.org/projects/wsplgen/). Die Datei muss |
7769 | 239 dann nur noch in das 'bin' Verzeichnis des D4E-river Servers kopiert werden. |
240 | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
241 # su d4euser |
7797
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7788
diff
changeset
|
242 $ cd ~/d4e-river |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
243 |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
244 Für 64bit Systeme: |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
245 |
7797
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7788
diff
changeset
|
246 $ 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
|
247 $ gunzip wsplgen-linux-64bit-static.gz |
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7788
diff
changeset
|
248 $ echo "16d60047aa114d69e9435dbbe56b6981b4e1c445 wsplgen-linux-64bit-static" | \ |
f9637e6ecf6d
Use latest WSPLGEN binary.
Tom Gottfried <tom@intevation.de>
parents:
7788
diff
changeset
|
249 sha1sum -c |
7769 | 250 $ su root |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
251 # su d4e |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
252 $ 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
|
253 $ 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
|
254 $ exit |
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 Für 32bit Systeme: |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
257 |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
258 $ 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
|
259 $ gunzip wsplgen-linux-32bit-static.gz |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
260 $ echo "aafd2b770ff8293d452ad3eb3321f2ed04f3f371 wsplgen-linux-32bit-static" | \ |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
261 sha1sum -c |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
262 $ su root |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
263 # su d4e |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
264 $ 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
|
265 $ 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
|
266 $ exit |
7769 | 267 |
268 | |
269 Einrichten des Mapserver und Apache | |
270 =================================== | |
271 #. Anlegen der cgi-Skripte für die WMS-Dienste | |
272 | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
273 # cd /usr/lib/cgi-bin/ |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
274 # cat > user-wms <<EOF |
7802
a3db73ed95fc
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7797
diff
changeset
|
275 #!/bin/sh |
a3db73ed95fc
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7797
diff
changeset
|
276 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
|
277 exec ./mapserv |
7802
a3db73ed95fc
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7797
diff
changeset
|
278 EOF |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
279 # cat > river-wms <<EOF |
7802
a3db73ed95fc
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7797
diff
changeset
|
280 #!/bin/sh |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
281 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
|
282 exec ./mapserv |
7802
a3db73ed95fc
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7797
diff
changeset
|
283 EOF |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
284 # chmod 755 user-wms |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
285 # chmod 755 river-wms |
7769 | 286 |
7812
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
287 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
|
288 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
|
289 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
|
290 /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
|
291 notwendig: |
7769 | 292 |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
293 # 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
|
294 # a2ensite d4e-apache.conf |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
295 # a2enmod proxy_ajp |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
296 # 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
|
297 # service apache2 restart |
7812
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
298 |
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
299 In der Datei |
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
300 /var/lib/tomcat6/conf/server.xml |
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
301 muss die Zeile |
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
302 |
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
303 <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
|
304 |
195233a91e04
Added apache example config, updated install doku.
Raimund Renkert <rrenkert@intevation.de>
parents:
7803
diff
changeset
|
305 einkommentiert werden. |
7769 | 306 |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
307 # /etc/init.d/tomcat6 restart |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
308 |
7769 | 309 Einrichtung der D4E-Benutzer und -Rollen |
310 ======================================== | |
311 #. Authentifizierung über lokale Datei | |
7786
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
312 # Die Datei enthält durch Leerzeichen getrennt je Zeile |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
313 # Benutzer, Passwort und Gruppe |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
314 # cd /usr/share/tomcat6/ |
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
315 # cat > flys_user_file <<EOF |
7788
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
316 d4e_demo demo d4e_demo_all |
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
317 d4e_demo1 demo |
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
318 d4e_demo_extern demo d4e_demo_extern |
a18c97f9d752
INSTALL_DE: more small improvements and corrections.
Tom Gottfried <tom@intevation.de>
parents:
7786
diff
changeset
|
319 EOF |
7769 | 320 |
7786
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
321 # Die Konfiguration der je Gruppe freigeschalteten Module und Gewässer |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
322 # 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
|
323 |
61a9e7df0728
INSTALL_DE: small corrections and (hopefully) improvements.
Tom Gottfried <tom@intevation.de>
parents:
7785
diff
changeset
|
324 |
7769 | 325 Anlegen des Start-Skripts |
326 ============================ | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
327 # su d4e |
7769 | 328 $ cp /home/d4euser/d4e-river/river/contrib/make_flys_release/bin/run.sh /opt/d4e-river/bin/ |
329 $ exit | |
330 | |
331 Client in Tomcat Servlet-Container ablegen | |
332 ========================================== | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
333 # 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
|
334 /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
|
335 # chown tomcat6 /var/lib/tomcat6/webapps/d4e-river.war |
7769 | 336 |
337 Starten der Serverkomponente | |
338 ============================ | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
339 # su d4e |
7769 | 340 $ cd /opt/d4e-river |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
341 $ tmux new -s SERVER bin/run.sh |
7769 | 342 |
343 Die Anwendung ist dann im Browser unter | |
344 | |
7814
242e790fb4ee
More fixes for the Free Software installation.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
7812
diff
changeset
|
345 http://yourhost:8081/d4e-river |
7769 | 346 |
347 erreichbar. |