Page 1 of 14. 1 | P a g e. INSTALLING SMAP SERVER ON UBUNTU DESKTOP 16.04 Long Term Service TUTORIAL. Nchoolwe Progress
INSTALLING SMAP SERVER ON UBUNTU DESKTOP 16.04 Long Term Service TUTORIAL Nchoolwe Progress Sinampande1,2*, Paradzayi Tagwireyi 1 1Department of Geography and Environmental Science, University of Zimbabwe, Zimbabwe 2Scientific and Industrial Research Development Centre, Zimbabwe *Correspondence:
[email protected] Date 9 January 2018 Preamble This tutorial provides a step-by-step procedure on how to set up Smap Server on Linux Ubuntu Desktop 16.04 LTS. Requirements Minimum 10 GB of disk space on your computer 64 bit Server Java-8 Synaptic Package Manager
1) Open Terminal and Run these following Commands sudo apt-get upgrade sudo apt-get update
1|Page
2) Install Synaptic Package Manager, Run this command on terminal to install synaptic: sudo apt-get install synaptic
3) Open Synaptic package manager
2|Page
You will be prompted to type password to open synaptic
4) Search for Apache2 on Synaptic and install all the required packages
3|Page
5. Check Java version. Usually on Synaptic, Java automatically installs alongside Apache and Tomcat To check version of java type javac-version on the terminal and press enter 6. Search for Tomcat7 on synaptic and install all the required packages
7. Install PosgreSQL 9.5 and PostGIS 2.2 Download the Interactive installer by EnterpriseDB from here https://www.enterprisedb.com/downloads/postgres-postgresql-downloads#linux Choose version 9.5 and select your operating system then download
4|Page
The download will look like this, on your downloads folder
The following requires root privileges, type sudo su and press entet to run from root on terminal Close Synaptic Package Manager and Open Terminal then navigate to PostgreSQL download e.g for me it was in the download folder, so on my terminal I will type # cd /home/nchoolwe/Downloads/ press enter then, list by typing ls in the terminal e.g /home/nchoolwe/Downloads/# ls execute by typing ./(and the file name) then press enter
5|Page
The setup will start, you should get the following screen
Press next and choose PostgreSQL 9.5
6|Page
Make sure the Stack Builder option is ticked and click Finish
PostGIS will start Installing Follow the steps and put the postgreSQL password you set where it’s needed
7|Page
Choose Spatial Extensions and tick postGIS 2.2 then next
PostGIS will install
8|Page
Then click finish and Finish to end the Installation of PostgreSQL and PostGIS
This Installation comes with PgAdmin 3. On the Search Menu type PgAdmin 3 and open it
9|Page
You should be able to see your databases
10 | P a g e
8. NOW LETS INSTALL SMAP SERVER Download the latest TAR file from https://code.google.com/p/smap-suite/downloads/list
Extract the .TAR file and run the install.sh from the install folder on the Smap folder You can run the Insatll.sh by just dragging the file to the terminal but make sure you are on root and then press enter.
11 | P a g e
Press Enter to run and when prompted to press Y, do so!!!
Smap Server was designed to install all the packages including Apache Tomcat, PostgreSQL, PostGIS etc, but on Ubuntu Desktop I have been facing some problems as the Smaps packages fail to install on their own. On this Tutorial we have already installed some packages such as Tomcat Apache, PostgreSQL and PostGIS, therefore Smap will skip all these packages and add on the leftovers without any problems. After the Installation is complete, run the patchdb.sh and the Deploy.sh in the Deploy folder to make sure all packages are updated
12 | P a g e
Open browser and type localhost, Smap Server will open
Click login and put username and password as admin Specify users
13 | P a g e
We are done. For more information on SSL and other very important things about Smap, refer to the Original Manual by Neil on the Smap Consulting link https://www.smap.com.au/downloads.shtml Enjoy your Smap Server, the Smart way of data collection! The End
14 | P a g e