annotate doc/INSTALL_DE @ 7779:abf3cb9cb6c4

INSTALL_DE: remove obsolete client configuration.
author Tom Gottfried <tom@intevation.de>
date Tue, 04 Mar 2014 18:40:00 +0100
parents b972c7e1bfbe
children be4b37839015
rev   line source
7769
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
1 ===============================================================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
2 Installation Dive4Elements-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
3 ===============================================================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
4
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
5 Diese Anleitung geht davon aus, dass ein Benutzer 'd4euser' existiert, der
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
6 angemeldet ist und mit dem die Schritte der Installation durchgeführt werden.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
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
b972c7e1bfbe INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents: 7769
diff changeset
16 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
17 _ maven2 2.2.1-12
b972c7e1bfbe INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents: 7769
diff changeset
18 _ mercurial 2.2.2-3
b972c7e1bfbe INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents: 7769
diff changeset
19 _ 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
20 _ build-essential 11.5
7769
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
21
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
22 Erforderliche Pakete zum Installieren von D4E-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
23 ===================================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
24 $ su root
7776
b972c7e1bfbe INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents: 7769
diff changeset
25 $ apt-get install openjdk-7-jdk tomcat6 postgresql-9.1-postgis \
b972c7e1bfbe INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents: 7769
diff changeset
26 apache2 cgi-mapserver ttf-freefont
7769
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
27
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
28
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
29 Benutzer und Verzeichnis für die Serverkomponente anlegen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
30 =========================================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
31 $ useradd d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
32 $ cd /opt/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
33 $ mkdir d4e-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
34 $ chown d4e d4e-river/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
35
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
36
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
37 Benutzer und Gruppe für das Logging anlegen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
38 ===========================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
39 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
40 $ groupadd d4e_log
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
41 $ usermod -a -G d4e_log d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
42 $ usermod -a -G d4e_log tomcat6
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
43 $ usermod -a -G d4e_log www-data
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
44
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
45
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
46 Anlegen des Logging Verzeichnisses
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
47 ==================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
48 $ mkdir /var/log/d4e-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
49 $ chgrp d4e_log /var/log/d4e-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
50 $ chmod 775 /var/log/d4e-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
51 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
52
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
53
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
54 Entpacken des Dive4Elements-river Installer-Pakets
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
55 ==================================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
56 $ tar -xzf d4e-river.tar.gz
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
57 @TODO: eventuell anpassen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
58
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
59
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
60 Installation von D4E-river aus den Quellen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
61 ==========================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
62 Erfolgt die Installation von D4E-river aus den Binärpaketen, können die
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
63 folgenden Schritte übersprungen werden.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
64 Die weiteren Schritte sind ab dem Abschnitt 'Backenddatenbanken'
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
65 beschrieben.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
66
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
67
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
68 Pakete zum Bauen von D4E-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
69 ------------------------------
7776
b972c7e1bfbe INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents: 7769
diff changeset
70 $ apt-get install maven2 mercurial
7769
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
71
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
72
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
73 Pakete zum Bauen von WSPLGEN
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
74 ----------------------------
7776
b972c7e1bfbe INSTALL_DE: mention tested system and simplify dependency installation.
Tom Gottfried <tom@intevation.de>
parents: 7769
diff changeset
75 $ apt-get install subversion build-essential
7769
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
76
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
77
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
78 Installation der Intevationszertifikate für den Checkout von Wald.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
79 ------------------------------------------------------------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
80 Die Serverzertifikate von Intevation müssen für die Kommunikation mit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
81 wald.intevation.org installiert werden, da sonst ein checkout der
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
82 hg-Repositories nicht möglich ist.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
83 Siehe auch Anleitung im Intranet:
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
84 https://intranet.intevation.de/SSL-Zertifikate#system
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
85
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
86 $ apt-get install ca-certificates curl gnutls-bin
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
87 $ curl https://ssl.intevation.de/Intevation-Root-CA-2010.crt | \
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
88 certtool -i | awk '/^-----BEGIN CERTIFICATE-----$/ , 0' > \
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
89 /usr/local/share/ca-certificates/Intevation-Root-CA-2010.crt
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
90 $ update-ca-certificates
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
91
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
92 #. Mercurial beibringen die Zertifikate zu nutzen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
93 $ vi /etc/mercurial/hgrc
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
94
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
95 # Folgendes einfügen (siehe https://intranet.intevation.de/Mercurial#https)
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
96 [web]
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
97 cacerts = /etc/ssl/certs/ca-certificates.crt
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
98
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
99 $ exit (d4euser werden)
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
100
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
101
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
102 Checkout der D4E-Quellen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
103 ------------------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
104 $ mkdir d4e-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
105 $ cd d4e-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
106 $ hg clone https://scm.wald.intevation.org/hg/dive4elements/framework/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
107 $ hg clone https://scm.wald.intevation.org/hg/dive4elements/http-client/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
108 $ hg clone https://scm.wald.intevation.org/hg/dive4elements/river/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
109
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
110
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
111 Anpassen der Clientkonfiguration
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
112 --------------------------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
113 $ cd river/gwt-client/src/main/webapp/WEB-INF/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
114
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
115 #. Mapfishprint config.yaml anpassen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
116
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
117 $ vi config.yaml
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
118
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
119 Folgenden Eintrag im Abschnitt 'the list of allowed hosts' hinzufügen:
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
120
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
121 - !dnsMatch
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
122 host: menippe # Hier den Hostnamen verwenden auf dem der MapServer läuft.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
123 port: 8081 # Den entsprechenden Port eintragen.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
124
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
125
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
126 Anpassen der Serverkonfiguration
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
127 --------------------------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
128 $ cd ~/de4-river/river/artifacts/doc/conf/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
129
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
130 #. Pfad zu den DGMs anpassen:
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
131 $ vi conf.xml
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
132 <dgm-path>${artifacts.config.dir}/../dgm/</dgm-path>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
133
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
134 #. Einstellen der WMS Urls
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
135 # Anstatt mennippe:8081 den korrekten Host eintragen!
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
136 $ vi rivermap.xml
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
137 # Den Inhalt durch folgendes ersetzen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
138
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
139 <?xml version="1.0" encoding="UTF-8" ?>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
140 <!--// configuration fragment for static river WMS //-->
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
141 <rivermap>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
142 <mapserver>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
143 <server path="http://menippe:8081/cgi-bin/"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
144 <mapfile path="${artifacts.config.dir}/../rivers.map"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
145 <templates path="${artifacts.config.dir}/mapserver/"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
146 <map-template path="river-mapfile.vm"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
147 </mapserver>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
148
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
149 <velocity>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
150 <logfile path="${artifacts.config.dir}/../rivermap_velocity.log"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
151 </velocity>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
152
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
153 <river name="Beispielfluss">
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
154 <srid value="31467"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
155 <river-wms url="http://menippe:8081/cgi-bin/river-wms" layers="Beispielfluss"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
156 <background-wms url="http://osm.intevation.de/bfg/service?" layers="OSM-WMS-Dienst"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
157 </river>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
158 </rivermap>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
159
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
160 $ vi floodmap.xml
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
161 # Den Inhalt durch folgendes ersetzen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
162
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
163 <?xml version="1.0" encoding="UTF-8" ?>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
164 <floodmap>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
165 <shapefile-path value="${artifacts.config.dir}/../shapefiles"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
166 <mapserver>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
167 <server path="http://menippe:8081/cgi-bin/"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
168 <mapfile path="${artifacts.config.dir}/../flys.map"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
169 <templates path="${artifacts.config.dir}/mapserver/"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
170 <map-template path="mapfile.vm"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
171 </mapserver>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
172
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
173 <velocity>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
174 <logfile path="${artifacts.config.dir}/../velocity.log"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
175 </velocity>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
176
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
177 <river name="Beispielfluss">
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
178 <srid value="31467"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
179 <river-wms url="http://menippe:8081/cgi-bin/river-wms" layers="Beispielfluss"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
180 <background-wms url="http://osm.intevation.de/bfg/service?" layers="OSM-WMS-Dienst"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
181 </river>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
182 </floodmap>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
183
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
184
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
185 Konfigurieren des Logging
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
186 -------------------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
187 #. Pfade in den log4j.properties anpassen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
188
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
189 $ vi river/gwt-client/src/main/webapp/WEB-INF/log4j.properties
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
190
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
191 # Die Zeile
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
192
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
193 log4j.appender.FLYS.File=/tmp/flys-client.log
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
194
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
195 # ändern in:
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
196
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
197 log4j.appender.FLYS.File=/var/log/d4e-river/d4e-client.log
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
198
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
199 $ vi river/artifacts/doc/conf/log4j.properties
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
200
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
201 # Den Inhalt mit folgendem ersetzen:
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
202
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
203 # Set root logger level to DEBUG and its only appender to A1.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
204 log4j.rootLogger=DEBUG, A1
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
205
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
206 # A1 uses PatternLayout.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
207 log4j.appender.A1.layout=org.apache.log4j.PatternLayout
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
208 log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
209
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
210 log4j.appender.A1=org.apache.log4j.RollingFileAppender
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
211 log4j.appender.A1.File=/var/log/d4e-river/d4e-server.log
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
212 log4j.appender.A1.MaxFileSize=5000KB
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
213 log4j.appender.A1.MaxBackupIndex=3
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
214
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
215
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
216 Bauen der Server- und Clientkomponenten
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
217 ---------------------------------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
218 $ cd framework/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
219 $ mvn clean compile package install
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
220 $ cd ../http-client/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
221 $ mvn clean compile package install
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
222 $ cd ../river/backend/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
223 $ mvn clean compile package install
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
224 $ cd ../artifacts/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
225 $ mvn clean compile package dependency:copy-dependencies
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
226 $ cd ../gwt-client/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
227 $ curl -O http://openlayers.org/download/OpenLayers-2.11.tar.gz
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
228 $ tar xvfz OpenLayers-2.11.tar.gz
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
229 $ mv OpenLayers-2.11 src/main/webapp/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
230 $ mvn clean compile package
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
231 $ cd ../../
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
232
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
233
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
234 Kopieren der Serverkomponenten
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
235 ------------------------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
236 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
237 $ su d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
238 $ cd /opt/d4e-river/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
239 $ mkdir -p bin/lib
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
240 $ cp /home/d4euser/d4e-river/river/artifacts/target/river-artifacts-1.0-SNAPSHOT.jar bin/lib/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
241 $ cp /home/d4euser/d4e-river/river/artifacts/target/dependency/* bin/lib/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
242 $ mkdir conf
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
243 $ cp /home/d4euser/d4e-river/framework/artifact-database/doc/example-conf/log4j.properties conf/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
244 $ cp -R ../river/artifacts/doc/conf/* conf/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
245
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
246
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
247 Artefaktdatenbank erstellen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
248 ===========================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
249 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
250 $ su d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
251 $ cd /opt/d4e-river/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
252 $ /home/d4euser/d4e-river/river/contrib/make_flys_release/h2/createArtifacts.sh \
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
253 /home/d4euser/d4e-river/framework/artifact-database/doc/schema-h2.sql
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
254 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
255 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
256
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
257
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
258 Datenkorbdatenbank erstellen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
259 ============================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
260 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
261 $ su d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
262 $ cd /opt/d4e-river/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
263 $ /home/d4euser/d4e-river/river/contrib/make_flys_release/h2/createDatacage.sh \
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
264 /home/d4euser/d4e-river/river/artifacts/doc/conf/datacage.sql
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
265 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
266 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
267
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
268
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
269 Backenddatenbanken (Fachdatenbank und Seddb)
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
270 ============================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
271
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
272 Anlegen und befüllen der Datenbanken
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
273 ------------------------------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
274 #. Einspielen des Schemas für die Backenddatenbank
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
275 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
276 $ su postgres
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
277 $ cd /home/d4euser/d4e-river/river/backend/doc/schema/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
278 $ ./postgresql-setup.sh d4e . localhost
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
279
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
280 #. Einspielen der Daten in die erstellte DB
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
281 $ psql -d d4e -f /home/d4euser/d4e-river/d4e_demodata.dump.sql
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
282
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
283 #. Erstellen der Seddb
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
284 $ createuser -S -D -R sedb
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
285 $ createdb seddb
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
286 $ psql -d seddb -c "ALTER USER sedb WITH PASSWORD 'sedb';"
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
287 $ psql -d seddb -U sedb -h localhost -f /home/d4euser/d4e-river/seddb.dump.sql
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
288
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
289 #. wieder d4euser werden
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
290 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
291 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
292
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
293
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
294 Konfiguration der Datenbankverbindungen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
295 ---------------------------------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
296 #. Anpassen des Benutzers und des Datenbanknames
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
297 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
298 $ su d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
299 $ cd /opt/d4e-river/conf/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
300 $ sed -i s@flys@d4e@ backend-db.xml
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
301
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
302
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
303 Kopieren der DGMs
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
304 =================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
305 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
306 $ su d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
307 $ mkdir /opt/d4e-river/dgm
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
308 $ cp /home/d4euser/d4e-river/dgm/* /opt/d4e-river/dgm
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
309
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
310
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
311 Einrichten von WSPLGEN
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
312 ======================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
313
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
314 Bauen von WSPLGEN aus den Quellen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
315 ---------------------------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
316 Die Quellen und die Dokumentation von WSPLGEN sind zu finden unter
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
317
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
318 https://wald.intevation.org/projects/wsplgen/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
319
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
320 Das nach der Anleitung erstellte Binary muss in das 'bin' Verzeichnis des
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
321 D4E-river Servers kopiert werden.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
322
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
323 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
324 $ su d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
325 $ cp /path/to/wsplgen.exe /opt/d4e-river/bin
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
326
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
327
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
328 WSPLGEN Binary
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
329 --------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
330 WSPLGEN kann als ausführbare Datei heruntergeladen werden
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
331 (https://wald.intevation.org/projects/wsplgen/). Die Datei 'wsplgen.exe' muss
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
332 dann nur noch in das 'bin' Verzeichnis des D4E-river Servers kopiert werden.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
333
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
334 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
335 $ su d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
336 $ cp /path/to/wsplgen.exe /opt/d4e-river/bin
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
337
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
338
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
339 Einrichten des Mapserver und Apache
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
340 ===================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
341 #. Anlegen der cgi-Skripte für die WMS-Dienste
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
342
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
343 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
344 $ cd /usr/lib/cgi-bin/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
345 $ touch user-wms
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
346 $ vi user-wms
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
347 # folgendes einfügen:
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
348 #!/bin/sh
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
349 export MS_MAPFILE=/opt/d4e-river/flys.map
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
350 ./mapserv
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
351 $ touch river-wms
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
352 $ vi river-wms
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
353 # folgendes einfügen:
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
354 #!/bin/sh
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
355 export MS_MAPFILE=/home/d4e-river/rivers.map
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
356 ./mapserv
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
357 $ chmod 755 user-wms
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
358 $ chmod 755 river-wms
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
359 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
360
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
361 #. Der Apache ist vorkonfiguriert und braucht keine weitere Anpassung.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
362
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
363
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
364 Einrichtung der D4E-Benutzer und -Rollen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
365 ========================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
366 #. Authentifizierung über lokale Datei
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
367 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
368 $ cd /usr/share/tomcat6/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
369 $ touch flys_user_file
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
370 $ vi flys_user_file
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
371 # folgendes einfügen:
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
372 d4e_demo demo d4e_demo_all
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
373 d4e_demo1 demo
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
374 d4e_demo_extern demo d4e_demo_extern
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
375 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
376
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
377 Anlegen des Start-Skripts
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
378 ============================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
379 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
380 $ su d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
381 $ cp /home/d4euser/d4e-river/river/contrib/make_flys_release/bin/run.sh /opt/d4e-river/bin/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
382 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
383 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
384
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
385 Client in Tomcat Servlet-Container ablegen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
386 ==========================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
387 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
388 $ cp /home/d4euser/d4e-river/river/gwt-client/target/gwt-client-1.0-SNAPSHOT.war /var/lib/tomcat6/webapps/d4e-river.war
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
389 $ chown tomcat6 /var/lib/tomcat6/webapps/d4e-river.war
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
390 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
391
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
392 Starten der Serverkomponente
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
393 ============================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
394 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
395 $ su d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
396 $ cd /opt/d4e-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
397 $ bin/run.sh
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
398
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
399 Die Anwendung ist dann im Browser unter
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
400
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
401 http://servername:8080/d4e-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
402
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
403 erreichbar.

http://dive4elements.wald.intevation.org