Skip to content
janosimas edited this page Jun 20, 2017 · 7 revisions

How to install in a Ubuntu system

Summary

TerraMA2 code

Clone TerraMA2 or download the latest release to your TERRAMA2-SRC folder

Dependencies

Terralib

Download Terralib 5.2.1, unpack the .tar.gz package and run the install.sh.

./install.sh

It will install the Terralib and it's dependencies to /opt/terralib.

VMime

Download VMime 0.9.2 to TERRAMA2-SRC/packages/debian-package/ and run the commands:

cd TERRAMA2-SRC/packages/debian-package/
./deb-vmime.sh
sudo dpkg -i terrama2-vmime_1.0.0_amd64.deb
sudo apt install -f

NodeJs

The NodeJs can be installed with the commands:

curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs

Other dependencies

Most dependencies can be installed from the Ubuntu repositories with the command:

  • Ubuntu 14.04
sudo apt-get install cmake build-essential libcurl3-dev libpython2.7-dev libquazip0-dev libproj-dev libgeos++-dev libxerces-c-dev screen postgresql-9.3-postgis-2.1
  • Ubuntu 16.04
sudo apt-get install cmake build-essential libcurl3-dev libpython2.7-dev libquazip-dev libproj-dev libgeos++-dev libxerces-c-dev screen postgresql-9.5-postgis-2.2

GMock (Optional)

ToDo

Compiling

To compile the TerraMA2 create a TERRAMA2-BUILD folder and execute the commands:

cd TERRAMA2-BUILD
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE:STRING="Release" -DCMAKE_INSTALL_PREFIX:PATH="/opt/terrama2/4.0.0/" -DCMAKE_PREFIX_PATH:PATH="/opt/terralib/5.2.1/;/opt/terralib/5.2.1/3rdparty" TERRAMA2-SRC/build/cmake
make -j 4
sudo make install

Configuring

PostgreSQL

Configure the postgres password with the commands:

sudo -u postgres psql
ALTER USER postgres WITH PASSWORD '<password>';
\q

TerraMA2 configure file

In the file TERRAMA2-SRC/webapp/config/config.terrama2 you should set:

  • The postgres user and password.
  • The defaultFilePath of the data folder.

Web application

To install the global dependencies:

sudo npm install -g bower
sudo npm install -g grunt

Web components

Intal the dependencies of some of the web components with the commands:

TERRAMA2-SRC/webcomponents
npm install
grunt

Administration interface

To install the dependencies of the administration interface:

cd TERRAMA2-SRC/webapp
npm install
bower install
grunt

Web monitor

To install the dependencies of the web monitor:

cd TERRAMA2-SRC/webmonitor
npm install
bower install

Executing

To execute the administration interface:

cd TERRAMA2-SRC/webapp
npm start

by default you can access at localhost:36000 with:

  • User : admin
  • Password : admin