Difference between revisions of "Setting up geonode"
From stgo
Line 5: | Line 5: | ||
#Install from PPA in Ubuntu 12.04 -> see http://docs.geonode.org/en/latest/intro/install.html | #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 <code>sudo apt-get update && sudo apt-get install python-software-properties</code> | + | #* <code>sudo add-apt-repository ppa:geonode/release</code> . Note, if add-apt does not work (command not found) then do first <code>sudo apt-get update && sudo apt-get install python-software-properties</code> |
− | #* sudo apt-get update | + | #* <code>sudo apt-get update</code> |
− | #* sudo apt-get install geonode | + | #* <code>sudo apt-get install geonode</code> (before I could run this I had do to do <code>sudo apt-get install libtomcat7-java</code> so that Tomcat6 will be removed and then I could install tomcat7 - which was needed to for GeoServer - used by GeoNode) |
− | + | ||
− | + | ||
#Set the IP address and create a superuser | #Set the IP address and create a superuser | ||
#* sudo geonode-updateip 127.0.0.1 | #* sudo geonode-updateip 127.0.0.1 | ||
Line 16: | Line 14: | ||
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 == | + | == Notes on installing PostGIS == |
− | + | install from source: see: http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS20Ubuntu1204src | |
* 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 | * 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. | </code> to retrieve the version installed. | ||
Line 24: | Line 22: | ||
* Now I could create a db using <code>createdb mygeodb</code>, and connect via commandline with <code>psql -d mygeodb</code> | * 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> | * Finally I spatially enabled the db with <code>CREATE EXTENSION postgis;</code> and <code>CREATE EXTENSION postgis_topology;</code> | ||
− | + | * then add a Postgres/postgis port forwarding rule for port 5432 | |
− | + |
Revision as of 16:51, 3 December 2013
>> return Cedeus IDE
Fast install text from GeoNode.org Quickstart:
- 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 firstsudo apt-get update && sudo apt-get install python-software-properties
-
sudo apt-get update
-
sudo apt-get install geonode
(before I could run this I had do to dosudo apt-get install libtomcat7-java
so that Tomcat6 will be removed and then I could install tomcat7 - which was needed to for GeoServer - used by GeoNode)
-
- Set the IP address and create a superuser
- sudo geonode-updateip 127.0.0.1
- geonode createsuperuser
- Import data
Read the admin docs and also OSGeo Live DVD Quickstart tutorial
Notes on installing PostGIS
install from source: see: http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS20Ubuntu1204src
- 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 withpsql -d mygeodb
- Finally I spatially enabled the db with
CREATE EXTENSION postgis;
andCREATE EXTENSION postgis_topology;
- then add a Postgres/postgis port forwarding rule for port 5432