Installation KNMI workstation¶
export C4I_DEV_HOME=/nobackup/users/$USER/c4i_dev
mkdir $C4I_DEV_HOME
cd $C4I_DEV_HOME
Install trustroot certificates¶
mkdir $C4I_DEV_HOME/certs
cd $C4I_DEV_HOME/certs
wget https://raw.githubusercontent.com/ESGF/esgf-dist/master/installer/certs/esg-truststore.ts
wget https://raw.githubusercontent.com/ESGF/esgf-dist/master/installer/certs/esg_trusted_certificates.tar
tar -xvf esg_trusted_certificates.tar
Install slcs.ceda.ac.uk trustroots in esg-truststore.ts
echo | openssl s_client -connect slcs.ceda.ac.uk:443 2>&1 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > slcs.ceda.ac.uk keytool -delete -alias slcs.ceda.ac.uk -keystore $C4I_DEV_HOME/certs/esg-truststore.ts -storepass changeit keytool -import -v -trustcacerts -alias slcs.ceda.ac.uk -file slcs.ceda.ac.uk -keystore $C4I_DEV_HOME/certs/esg-truststore.ts -storepass changeit -noprompt
Create self signed certificate for tomcat¶
keytool -genkey -alias tomcat -keyalg RSA
Install tomcat¶
mkdir $C4I_DEV_HOME/Servers
cd $C4I_DEV_HOME/Servers
wget http://ftp.nluug.nl/internet/apache/tomcat/tomcat-8/v8.0.30/bin/apache-tomcat-8.0.30.tar.gz
tar -xzvf apache-tomcat-8.0.30.tar.gz
Configure tomcat by changing the connectors in config file:
$C4I_DEV_HOME/Servers/apache-tomcat-8.0.30/conf/server.xml
<Connector connectionTimeout="20000" port="9080" protocol="HTTP/1.1" redirectPort="9443"/> <Connector SSLEnabled="true" acceptCount="100" clientAuth="want" disableUploadTimeout="true" enableLookups="true" maxThreads="25" port="9443" keystoreFile="/<yourhome>/.keystore" keystorePass="changeit" protocol="org.apache.coyote.http11.Http11NioProtocol" scheme="https" truststoreFile="/nobackup/users/plieger/c4i_dev/certs/esg-truststore.ts" truststorePass="changeit" ciphers="SSL_RSA_WITH_RC4_128_MD5,SSL_RSA_WITH_RC4_128_SHA,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_DSS_WITH_AES_128_CBC_SHA,SSL_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_DHE_RSA_WITH_AES_256_CBC_SHA,TLS_DHE_DSS_WITH_AES_256_CBC_SHA" secure="true" sslProtocol="TLS" />
Please edit the esg-truststore file, located at $C4I_DEV_HOME/certs/esg-truststore.ts
Install adagucserver¶
$ hg clone http://dev.knmi.nl/hg/adagucserver
$ cd $C4I_DEV_HOME/adagucserver
bash compile.sh
Install impactportal¶
$ cd $C4I_DEV_HOME
$ hg clone http://dev.knmi.nl/hg/impactportal
cd $C4I_DEV_HOME/impactportal/WebContent/WEB-INF/lib/
wget http://climate4impact.eu/installationfiles/impactportaljarfiles.tar.gz
tar -xzvf impactportaljarfiles.tar.gz
Configure eclipse¶
Start eclipse:
$ eclipse
Select as workspace the value you get with mkdir $C4I_DEV_HOME/eclipsews
File->Import->Existing projects into Workspace
Select root directory, and choose the location under $C4I_DEV_HOME/impactportal
Click Finish
Install a tomcat7 server in eclipse:
Window->Show View->Servers (usually under other)
In the server panel, click create new server
Select Apache Tomcat v8.0 Server
Click next
Click browse and select the previously installed tomcat server under $C4I_DEV_HOME/Servers/apache-tomcat-8.0.30
Select as installation directory the location under $C4I_DEV_HOME/Servers
Make sure that the Server library is found correctly:¶
In Project->Properties->Java Build Path->Libraries
Click Add library->Server Runtime->Apache Tomcat v8.0
Start impactportal¶
- Right click impactportal -> Run as -> Run on server
- Select tomcat and click finish
- Visit http://localhost:9080/impactportal/general/index.jsp in a browser
Install pyWPS¶
virtualenv --system-site-packages $C4I_DEV_HOME/wps/virtenv
- Clone PyWPS from github and install to $C4I_DEV_HOME/wps/pywps-master/
mkdir $C4I_DEV_HOME/wps/wpsoutputs
mkdir $C4I_DEV_HOME/wps/processes
mkdir $C4I_DEV_HOME/tmp
cd $C4I_DEV_HOME/wps/processes
hg clone http://dev.knmi.nl/hg/impactportalwpsscripts
Install ICCLIM
cd $C4I_DEV_HOME/wps
. $C4I_DEV_HOME/wps/virtenv/bin/activate
Install icclim in $C4I_DEV_HOME/wps according to http://icclim.readthedocs.org/en/latest/installation.html#installation-linux
Install CLIPC processes
cd $C4I_DEV_HOME/wps
hg clone /net/bhw485/nobackup/users/plieger/python/clipccombine
easy_install isodate