Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Verify yum configuration for EPEL repository:

    <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="97c961b430eaf391-3c5ab5ef-4f4a4786-99b6a014-def14ade9a03f7677ed66435"><ac:plain-text-body><![CDATA[

    [mylocalhost]# yum repolist

    ]]></ac:plain-text-body></ac:structured-macro>

  • Install from EPEL repository (compiling netcdf and hdf5 is not needed in this case):

    <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="8299807d442aaf70-502e950c-4ecd499c-89179d31-1ab0bdc26111885a0f7cd53f"><ac:plain-text-body><![CDATA[

    [mylocalhost]# yum install gcc gcc-c++ mercurial libpng-devel zlib-devel libxml2-devel gd-devel netcdf-devel hdf5-devel proj-devel postgresql-devel udunits2-devel gdal-devel cairo-devel httpd postgresql-server

    ]]></ac:plain-text-body></ac:structured-macro>

...

  • get ADAGUC server source components from KNMI's Mercurial repository:

    <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="ff23911ba0565e1a-0e5f943e-49074dff-9c30a511-bf81b6b147fb6d1e96644196"><ac:plain-text-body><![CDATA[

    [mylocalhost]# hg clone http://dev.knmi.nl/hg/adagucserver /opt/adaguc/software

    ]]></ac:plain-text-body></ac:structured-macro>

  • start compile by executing compile.sh from /opt/adaguc/software directory. It could be necessary to set the executbale flag first:

    <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="de2e14d5151cbfa5-4c5c2c87-470e4459-815b85f3-65500122c8f62003203f7a07"><ac:plain-text-body><![CDATA[

    [mylocalhost]# chmod +x compile.sh

    ]]></ac:plain-text-body></ac:structured-macro>

    <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="459f2f19bd04200b-4170b660-40764612-ace7881f-8e307469889b9ab66d0d0033"><ac:plain-text-body><![CDATA[

    [mylocalhost]# ./compile.sh

    ]]></ac:plain-text-body></ac:structured-macro>

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f1610afdd7f95295-f13dd2da-4dd24efe-abaea931-eafce383d3df4d9b898e95e9"><ac:plain-text-body><![CDATA[

[mylocalhost]# yum install mod_php

]]></ac:plain-text-body></ac:structured-macro>

...

  • Install PostgreSQL

    <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="e1833789bf2a76a0-47d10671-4f1146cc-ad7b89f4-6cbc3ed20bdc1eb273fe23f1"><ac:plain-text-body><![CDATA[

    [mylocalhost]# yum install postgresql.x86_64

    ]]></ac:plain-text-body></ac:structured-macro>

  • Initialise database
    (PostgreSQL data directory : /var/lib/pgsql/data)

    <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="67fe1d744f206f44-661489d9-4b0e47d0-965d9c93-490c25bd637e27561e6fb31b"><ac:plain-text-body><![CDATA[

    [mylocalhost]# service postgresql initdb

    ]]></ac:plain-text-body></ac:structured-macro>

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="9846610648e5cd8a-f9fced56-466e478f-878d9a8c-14a400c25649fc248e641603"><ac:plain-text-body><![CDATA[

[mylocalhost]# service postgresql reload

]]></ac:plain-text-body></ac:structured-macro>

  • Enable PostgreSQL service startup at boot time

    <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="9f39d84cc51b89ec-aaf054c7-46004dbc-a9a6bbe6-d8b45e8839fdff28eed35bac"><ac:plain-text-body><![CDATA[

    [mylocalhost]# chkconfig postgresql on

    ]]></ac:plain-text-body></ac:structured-macro>

  • Create ADAGUC database

    <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="bc69222367b9eaef-d66eab0e-4ef34d21-bec79de4-cfb484d4507edf5f2dba0b58"><ac:plain-text-body><![CDATA[

    [mylocalhost]# su - postgres

    ]]></ac:plain-text-body></ac:structured-macro>

    Start psql client:

    <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="68e92c02e0f69890-0fb1bbe9-438444ea-824eaac6-eb23ec4dfa167047ad3e19f9"><ac:plain-text-body><![CDATA[

    [mylocalhost]# psql

    ]]></ac:plain-text-body></ac:structured-macro>

    and execute these SQL statements:
    Code Block
    create user adaguc password 'adaguc';
    create database mydemo with owner=adaguc;
    grant connect on database mydemo to adaguc;
    grant all on database mydemo to adaguc;
    

...

  • get ADAGUC viewer components from KNMI's Mercurial repository:

    <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c19e2030a85c227c-b2d2f59e-41084904-8f0797e5-8397e0a5f7f2854f55605424"><ac:plain-text-body><![CDATA[

    [mylocalhost]# hg clone http://dev.knmi.nl/hg/adagucviewer /opt/adaguc

    ]]></ac:plain-text-body></ac:structured-macro>

...