Difference between revisions of "Setting up geonode"

From stgo
Jump to: navigation, search
Line 15: Line 15:
 
#Import data
 
#Import data
 
Read the [http://docs.geonode.org/#for-administrators admin docs] and also OSGeo Live DVD [http://live.osgeo.org/en/quickstart/geonode_quickstart.html Quickstart tutorial]
 
Read the [http://docs.geonode.org/#for-administrators admin docs] and also OSGeo Live DVD [http://live.osgeo.org/en/quickstart/geonode_quickstart.html Quickstart tutorial]
 +
 +
== Notes ==
 +
 +
* To check if postgres exists, use <code>which psql</code> which should return the path. Then with the path I did <code>/usr/bin/psql --version
 +
</code> to retrieve the version installed.
 +
* So, Postgres 9.1 was installed, but when I executed "psql" I got this: </code>psql: FATAL:  role "ssteinig" does not exist</code>
 +
* Hence, I first had to creating my account as a user using <code>sudo -u postgres createuser -s $USER</code> (got this from [http://stackoverflow.com/questions/2172569/how-do-i-login-and-authenticate-to-postgresql-after-a-fresh-install here]).
 +
* Now I could create a db using <code>createdb mygeodb</code>, and connect via commandline with <code>psql -d mygeodb</code>
 +
* Finally I spatially enabled the db with <code>CREATE EXTENSION postgis;</code>  and <code>CREATE EXTENSION postgis_topology;</code>
 +
 +
...tbc

Revision as of 13:43, 3 December 2013

>> return Cedeus IDE


Fast install text from GeoNode.org Quickstart:

  1. Install from PPA in Ubuntu 12.04 -> see http://docs.geonode.org/en/latest/intro/install.html
    • sudo add-apt-repository ppa:geonode/release. Note, if add-apt does not work (command not found) then do first sudo apt-get update && sudo apt-get install python-software-properties
    • sudo apt-get update
    • sudo apt-get install geonode
    • => this didn't really work for me as GeoNode needs postgis, etc. so I:
  2. Set the IP address and create a superuser
    • sudo geonode-updateip 127.0.0.1
    • geonode createsuperuser
  3. Import data

Read the admin docs and also OSGeo Live DVD Quickstart tutorial

Notes

  • To check if postgres exists, use which psql which should return the path. Then with the path I did /usr/bin/psql --version

to retrieve the version installed.

  • So, Postgres 9.1 was installed, but when I executed "psql" I got this: </code>psql: FATAL: role "ssteinig" does not exist</code>
  • Hence, I first had to creating my account as a user using sudo -u postgres createuser -s $USER (got this from here).
  • Now I could create a db using createdb mygeodb, and connect via commandline with psql -d mygeodb
  • Finally I spatially enabled the db with CREATE EXTENSION postgis; and CREATE EXTENSION postgis_topology;

...tbc