annotate doc/INSTALL_DE @ 7769:887795bbe854

Added german INSTALL.
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 03 Mar 2014 11:46:09 +0100
parents
children b972c7e1bfbe
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
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
8 @TODO: auf Debian wheezy hinweisen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
9
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
10
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
11 Erforderliche Pakete zum Installieren von D4E-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
12 ===================================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
13 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
14 $ apt-get install openjdk-7-jdk # installiert openjdk-7 7u25-2.3.10-1
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
15 $ apt-get install tomcat6 # installiert tomcat 6.0.35-6
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
16 $ apt-get install postgresql # installiert PostgreSQL 9.1
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
17 $ apt-get install postgis # installiert PostGIS 1.5.3 gemeinsame Dateien
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
18 $ apt-get install postgresql-9.1-postgis # installiert Postgis
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
19 $ apt-get install apache2 # installiert Apache 2.2.22-13
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
20 $ apt-get install cgi-mapserver # installiert cgi-mapserver 6.0.1
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
21 $ apt-get install ttf-freefont
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
22
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 Benutzer und Verzeichnis für die Serverkomponente anlegen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
25 =========================================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
26 $ useradd d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
27 $ cd /opt/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
28 $ mkdir d4e-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
29 $ chown d4e d4e-river/
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
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
32 Benutzer und Gruppe für das Logging anlegen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
33 ===========================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
34 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
35 $ groupadd d4e_log
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
36 $ usermod -a -G d4e_log d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
37 $ usermod -a -G d4e_log tomcat6
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
38 $ usermod -a -G d4e_log www-data
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
39
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
40
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
41 Anlegen des Logging Verzeichnisses
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
42 ==================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
43 $ mkdir /var/log/d4e-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
44 $ chgrp d4e_log /var/log/d4e-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
45 $ chmod 775 /var/log/d4e-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
46 $ exit
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
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
49 Entpacken des Dive4Elements-river Installer-Pakets
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
50 ==================================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
51 $ tar -xzf d4e-river.tar.gz
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
52 @TODO: eventuell anpassen
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
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
55 Installation von D4E-river aus den Quellen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
56 ==========================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
57 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
58 folgenden Schritte übersprungen werden.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
59 Die weiteren Schritte sind ab dem Abschnitt 'Backenddatenbanken'
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
60 beschrieben.
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
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
63 Pakete zum Bauen von D4E-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
64 ------------------------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
65 $ apt-get install maven2 # installiert maven 2.2.1-12
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
66 $ apt-get install mercurial # installiert mercurial 2.2.2-3
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
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
69 Pakete zum Bauen von WSPLGEN
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
70 ----------------------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
71 $ apt-get install subversion # installiert subversion 1.6.17dfsg-4+deb7u4
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
72 $ apt-get install build-essential # Zum bauen von wsplgen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
73
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
74
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
75 Installation der Intevationszertifikate für den Checkout von Wald.
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 Die Serverzertifikate von Intevation müssen für die Kommunikation mit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
78 wald.intevation.org installiert werden, da sonst ein checkout der
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
79 hg-Repositories nicht möglich ist.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
80 Siehe auch Anleitung im Intranet:
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
81 https://intranet.intevation.de/SSL-Zertifikate#system
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
82
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
83 $ apt-get install ca-certificates curl gnutls-bin
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
84 $ curl https://ssl.intevation.de/Intevation-Root-CA-2010.crt | \
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
85 certtool -i | awk '/^-----BEGIN CERTIFICATE-----$/ , 0' > \
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
86 /usr/local/share/ca-certificates/Intevation-Root-CA-2010.crt
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
87 $ update-ca-certificates
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
88
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
89 #. Mercurial beibringen die Zertifikate zu nutzen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
90 $ vi /etc/mercurial/hgrc
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 # Folgendes einfügen (siehe https://intranet.intevation.de/Mercurial#https)
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
93 [web]
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
94 cacerts = /etc/ssl/certs/ca-certificates.crt
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
95
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
96 $ exit (d4euser werden)
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
97
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 Checkout der D4E-Quellen
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 $ mkdir d4e-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
102 $ cd d4e-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
103 $ hg clone https://scm.wald.intevation.org/hg/dive4elements/framework/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
104 $ hg clone https://scm.wald.intevation.org/hg/dive4elements/http-client/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
105 $ hg clone https://scm.wald.intevation.org/hg/dive4elements/river/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
106
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
107
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
108 Anpassen der Clientkonfiguration
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 #. Rollen und Berechtigungen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
111
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
112 $ cd river/gwt-client/src/main/webapp/WEB-INF/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
113 $ vi features.xml
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 Den Inhalt mit folgendem ersetzen:
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 <?xml version="1.0" encoding="UTF-8"?>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
118 <ftr:features xmlns:ftr="http://www.intevation.de/2012/flys/features">
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
119 <ftr:role name="d4e_demo_all">
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
120 <ftr:feature>module:winfo</ftr:feature>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
121 <ftr:feature>module:minfo</ftr:feature>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
122 <ftr:feature>module:new_map</ftr:feature>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
123 <ftr:feature>module:new_chart</ftr:feature>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
124 <ftr:feature>module:fixanalysis</ftr:feature>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
125 <ftr:feature>river:Beispielfluss</ftr:feature>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
126 </ftr:role>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
127 <ftr:role name="d4e_demo_extern">
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
128 <ftr:feature>module:winfo</ftr:feature>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
129 <ftr:feature>module:minfo</ftr:feature>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
130 <ftr:feature>river:Beispielfluss</ftr:feature>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
131 </ftr:role>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
132 </ftr:features>
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 #. Ändern der Authentifizierung von GGinA auf plain (lokal)
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
135
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
136 $ vi web.xml
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
137
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
138 Ändern der Konfiguration von:
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
139
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
140 <context-param>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
141 <param-name>authentication</param-name>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
142 <param-value>GGinA</param-value>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
143 </context-param>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
144
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
145 in:
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
146
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
147 <context-param>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
148 <param-name>authentication</param-name>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
149 <param-value>plain</param-value>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
150 </context-param>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
151
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
152 #. Die Print-URL anpassen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
153
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
154 $ vi web.xml
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
155
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
156 <!-- Servlet to bridge between MapFish Print and FLYS3 -->
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
157 <servlet>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
158 <servlet-name>MapPrintService</servlet-name>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
159 <servlet-class>org.dive4elements.river.client.server.MapPrintServiceImpl</servlet-class>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
160 <init-param>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
161 <param-name>config</param-name>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
162 <param-value>WEB-INF/config.yaml</param-value>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
163 </init-param>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
164 <init-param>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
165 <param-name>print-url</param-name>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
166 <!-- Hier die URL zu dem Tomcat6 Container angeben. -->
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
167 <param-value>http://localhost:8080/d4e/flys/mapfish-print</param-value>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
168 </init-param>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
169 </servlet>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
170
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
171 #. Mapfishprint config.yaml anpassen
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 $ vi config.yaml
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
174
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
175 Folgenden Eintrag im Abschnitt 'the list of allowed hosts' hinzufügen:
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 - !dnsMatch
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
178 host: menippe # Hier den Hostnamen verwenden auf dem der MapServer läuft.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
179 port: 8081 # Den entsprechenden Port eintragen.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
180
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
181
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
182 Anpassen der Serverkonfiguration
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 $ cd ~/de4-river/river/artifacts/doc/conf/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
185
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
186 #. Pfad zu den DGMs anpassen:
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
187 $ vi conf.xml
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
188 <dgm-path>${artifacts.config.dir}/../dgm/</dgm-path>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
189
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
190 #. Einstellen der WMS Urls
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
191 # Anstatt mennippe:8081 den korrekten Host eintragen!
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
192 $ vi rivermap.xml
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
193 # Den Inhalt durch folgendes ersetzen
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 <?xml version="1.0" encoding="UTF-8" ?>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
196 <!--// configuration fragment for static river WMS //-->
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
197 <rivermap>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
198 <mapserver>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
199 <server path="http://menippe:8081/cgi-bin/"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
200 <mapfile path="${artifacts.config.dir}/../rivers.map"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
201 <templates path="${artifacts.config.dir}/mapserver/"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
202 <map-template path="river-mapfile.vm"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
203 </mapserver>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
204
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
205 <velocity>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
206 <logfile path="${artifacts.config.dir}/../rivermap_velocity.log"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
207 </velocity>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
208
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
209 <river name="Beispielfluss">
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
210 <srid value="31467"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
211 <river-wms url="http://menippe:8081/cgi-bin/river-wms" layers="Beispielfluss"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
212 <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
213 </river>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
214 </rivermap>
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 $ vi floodmap.xml
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
217 # Den Inhalt durch folgendes ersetzen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
218
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
219 <?xml version="1.0" encoding="UTF-8" ?>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
220 <floodmap>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
221 <shapefile-path value="${artifacts.config.dir}/../shapefiles"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
222 <mapserver>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
223 <server path="http://menippe:8081/cgi-bin/"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
224 <mapfile path="${artifacts.config.dir}/../flys.map"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
225 <templates path="${artifacts.config.dir}/mapserver/"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
226 <map-template path="mapfile.vm"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
227 </mapserver>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
228
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
229 <velocity>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
230 <logfile path="${artifacts.config.dir}/../velocity.log"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
231 </velocity>
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 <river name="Beispielfluss">
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
234 <srid value="31467"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
235 <river-wms url="http://menippe:8081/cgi-bin/river-wms" layers="Beispielfluss"/>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
236 <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
237 </river>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
238 </floodmap>
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
239
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
240
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
241 Konfigurieren des Logging
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
242 -------------------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
243 #. Pfade in den log4j.properties anpassen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
244
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
245 $ vi river/gwt-client/src/main/webapp/WEB-INF/log4j.properties
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 # Die Zeile
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 log4j.appender.FLYS.File=/tmp/flys-client.log
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
250
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
251 # ändern in:
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
252
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
253 log4j.appender.FLYS.File=/var/log/d4e-river/d4e-client.log
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
254
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
255 $ vi river/artifacts/doc/conf/log4j.properties
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 # Den Inhalt mit folgendem ersetzen:
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
258
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
259 # Set root logger level to DEBUG and its only appender to A1.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
260 log4j.rootLogger=DEBUG, A1
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
261
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
262 # A1 uses PatternLayout.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
263 log4j.appender.A1.layout=org.apache.log4j.PatternLayout
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
264 log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
265
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
266 log4j.appender.A1=org.apache.log4j.RollingFileAppender
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
267 log4j.appender.A1.File=/var/log/d4e-river/d4e-server.log
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
268 log4j.appender.A1.MaxFileSize=5000KB
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
269 log4j.appender.A1.MaxBackupIndex=3
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 Bauen der Server- und Clientkomponenten
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 $ cd framework/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
275 $ mvn clean compile package install
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
276 $ cd ../http-client/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
277 $ mvn clean compile package install
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
278 $ cd ../river/backend/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
279 $ mvn clean compile package install
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
280 $ cd ../artifacts/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
281 $ mvn clean compile package dependency:copy-dependencies
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
282 $ cd ../gwt-client/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
283 $ curl -O http://openlayers.org/download/OpenLayers-2.11.tar.gz
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
284 $ tar xvfz OpenLayers-2.11.tar.gz
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
285 $ mv OpenLayers-2.11 src/main/webapp/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
286 $ mvn clean compile package
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
287 $ cd ../../
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
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
290 Kopieren der Serverkomponenten
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
291 ------------------------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
292 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
293 $ su d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
294 $ cd /opt/d4e-river/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
295 $ mkdir -p bin/lib
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
296 $ 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
297 $ cp /home/d4euser/d4e-river/river/artifacts/target/dependency/* bin/lib/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
298 $ mkdir conf
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
299 $ 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
300 $ cp -R ../river/artifacts/doc/conf/* conf/
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 Artefaktdatenbank erstellen
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 $ cd /opt/d4e-river/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
308 $ /home/d4euser/d4e-river/river/contrib/make_flys_release/h2/createArtifacts.sh \
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
309 /home/d4euser/d4e-river/framework/artifact-database/doc/schema-h2.sql
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
310 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
311 $ exit
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 Datenkorbdatenbank erstellen
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 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
317 $ su d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
318 $ cd /opt/d4e-river/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
319 $ /home/d4euser/d4e-river/river/contrib/make_flys_release/h2/createDatacage.sh \
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
320 /home/d4euser/d4e-river/river/artifacts/doc/conf/datacage.sql
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
321 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
322 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
323
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
324
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
325 Backenddatenbanken (Fachdatenbank und Seddb)
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 Anlegen und befüllen der Datenbanken
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 #. Einspielen des Schemas für die Backenddatenbank
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
331 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
332 $ su postgres
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
333 $ cd /home/d4euser/d4e-river/river/backend/doc/schema/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
334 $ ./postgresql-setup.sh d4e . localhost
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
335
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
336 #. Einspielen der Daten in die erstellte DB
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
337 $ psql -d d4e -f /home/d4euser/d4e-river/d4e_demodata.dump.sql
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 #. Erstellen der Seddb
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
340 $ createuser -S -D -R sedb
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
341 $ createdb seddb
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
342 $ psql -d seddb -c "ALTER USER sedb WITH PASSWORD 'sedb';"
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
343 $ 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
344
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
345 #. wieder d4euser werden
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
346 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
347 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
348
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
349
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
350 Konfiguration der Datenbankverbindungen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
351 ---------------------------------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
352 #. Anpassen des Benutzers und des Datenbanknames
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
353 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
354 $ su d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
355 $ cd /opt/d4e-river/conf/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
356 $ sed -i s@flys@d4e@ backend-db.xml
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
357
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
358
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
359 Kopieren der DGMs
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 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
362 $ su d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
363 $ mkdir /opt/d4e-river/dgm
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
364 $ cp /home/d4euser/d4e-river/dgm/* /opt/d4e-river/dgm
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
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
367 Einrichten von WSPLGEN
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
368 ======================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
369
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
370 Bauen von WSPLGEN aus den Quellen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
371 ---------------------------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
372 Die Quellen und die Dokumentation von WSPLGEN sind zu finden unter
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
373
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
374 https://wald.intevation.org/projects/wsplgen/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
375
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
376 Das nach der Anleitung erstellte Binary muss in das 'bin' Verzeichnis des
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
377 D4E-river Servers kopiert werden.
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 /path/to/wsplgen.exe /opt/d4e-river/bin
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
382
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
383
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
384 WSPLGEN Binary
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
385 --------------
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
386 WSPLGEN kann als ausführbare Datei heruntergeladen werden
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
387 (https://wald.intevation.org/projects/wsplgen/). Die Datei 'wsplgen.exe' muss
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
388 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
389
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
390 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
391 $ su d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
392 $ cp /path/to/wsplgen.exe /opt/d4e-river/bin
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
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
395 Einrichten des Mapserver und Apache
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
396 ===================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
397 #. Anlegen der cgi-Skripte für die WMS-Dienste
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 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
400 $ cd /usr/lib/cgi-bin/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
401 $ touch user-wms
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
402 $ vi user-wms
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
403 # folgendes einfügen:
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
404 #!/bin/sh
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
405 export MS_MAPFILE=/opt/d4e-river/flys.map
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
406 ./mapserv
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
407 $ touch river-wms
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
408 $ vi river-wms
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
409 # folgendes einfügen:
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
410 #!/bin/sh
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
411 export MS_MAPFILE=/home/d4e-river/rivers.map
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
412 ./mapserv
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
413 $ chmod 755 user-wms
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
414 $ chmod 755 river-wms
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
415 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
416
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
417 #. Der Apache ist vorkonfiguriert und braucht keine weitere Anpassung.
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
418
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
419
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
420 Einrichtung der D4E-Benutzer und -Rollen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
421 ========================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
422 #. Authentifizierung über lokale Datei
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
423 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
424 $ cd /usr/share/tomcat6/
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
425 $ touch flys_user_file
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
426 $ vi flys_user_file
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
427 # folgendes einfügen:
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
428 d4e_demo demo d4e_demo_all
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
429 d4e_demo1 demo
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
430 d4e_demo_extern demo d4e_demo_extern
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
431 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
432
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
433 Anlegen des Start-Skripts
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
434 ============================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
435 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
436 $ su d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
437 $ 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
438 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
439 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
440
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
441 Client in Tomcat Servlet-Container ablegen
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
442 ==========================================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
443 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
444 $ 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
445 $ chown tomcat6 /var/lib/tomcat6/webapps/d4e-river.war
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
446 $ exit
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
447
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
448 Starten der Serverkomponente
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
449 ============================
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
450 $ su root
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
451 $ su d4e
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
452 $ cd /opt/d4e-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
453 $ bin/run.sh
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
454
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
455 Die Anwendung ist dann im Browser unter
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
456
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
457 http://servername:8080/d4e-river
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
458
887795bbe854 Added german INSTALL.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff changeset
459 erreichbar.

http://dive4elements.wald.intevation.org