Setting up geonode
From stgo
>> 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 (also described here: http://docs.geonode.org/en/latest/deploy/production.html)
- sudo geonode-updateip 127.0.0.1 (Use the real IP if you have one)
- geonode createsuperuser.
- set GeoServer ProxyURL as described in the geonode install instructions. Use user admin with geoserver.
- If starting up Apache results in the following message: "Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName.", Then do this
- 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:
psql: FATAL: role "ssteinig" does not exist
- 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;
- However, for
CREATE EXTENSION postgis;
I got the following error: "ERROR: could not open extension control file "/usr/share/postgresql/9.1/extension/postgis.control": No such file or directory". - This may be solved using the install instructions from here: http://wiki.postgresql.org/wiki/Apt
- However, I followed now what is written here: http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS21UbuntuPGSQL93Apt
- the stuff described below did not work either, I think:
- echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" | sudo tee /etc/apt/sources.list.d/postgis.list
- sudo apt-get update
- sudo apt-get install postgresql-9.3 pgadmin3
- and then...., I got again an error: update-alternatives: error: alternative pg_basebackup.1.gz can't be slave of psql.1.gz: it is a slave of postmaster.1.gz, which send me to this page: http://www.postgresql.org/message-id/20130508192711.GA9243@msgid.df7cb.de
- However, for
- then add a Postgres/postgis port forwarding rule for port 5432
accessing geonode postgres
- create user:
sudo su - postgres
- and:
createuser -d -E -i -l -P -r -s sstein
- to access via terminal use
psql -U sstein -d geonode -h localhost