Difference between revisions of "Setting up GeoNode 2 on 12.04 VM on CedeusGeoNode"

From stgo
Jump to: navigation, search
Line 33: Line 33:
 
*: modify setting in /etc/geonode/local_settings.py and restart apache
 
*: modify setting in /etc/geonode/local_settings.py and restart apache
 
*: => now the geonode webpage should be running!  
 
*: => now the geonode webpage should be running!  
ToDo: check to what DB are user and dataset metadata added? => requires to modify hba_conf settings
+
==>>> ToDo: check to what DB are user and dataset metadata added? => requires to modify hba_conf settings
 +
 
 +
* modify GeoNode styling:
 +
** change webpage colors and add cedeus logo
 +
**: create folders /etc/geonode/media/geonode/img/ and /etc/geonode/media/geonode/css/
 +
**: copy cedeus logo.png and cedeus base.css into its corresponding folder (may require chmod 777)
 +
**: perform <code>sudo geonode collectstatic -v0</code>
 +
** change welcome text for es/en/de
 +
**: blabla

Revision as of 14:38, 25 June 2014

>> return to Cedeus_Technical_Architecture


basic steps performed:

  • create a new VM with Ubuntu 12.04 - with openssh and mail installed
  • remove the cl locale of /etc/apt/sources.list
  • update and upgrade => important because of hardbleed bug
  • shutdown + remove the iso from the VM
  • copied the VM => basicUbuntu1204.zip

setting up GeoNode

  • a listing of necessary packages is here: http://docs.geonode.org/en/master/tutorials/admin/install/custom_install.html#custom-install
  • so we need to install
    • (i) apache2,
    • (ii) Java + Tomcat7,
    • (iii) postgresql (postgis only if we want to store the geodata locally),
    • (iv) python stuff for django
  • install apache2 sudo apt-get install apache2
  • install tomcat7 sudo apt-get install tomcat7
  • install python sudo apt-get install python-software-properties
  • to install postgresql is not really necessary, as postgres 9.1 will be also installed by geonode, and I am using for my data an external postgresql-postgis db. However, I want 9.3 so:
    see here about adding the repo: http://www.postgresql.org/download/linux/ubuntu/
    sudo apt-get update
    sudo apt-get install postgresql-9.3 pgadmin3 postgresql-contrib
    for doc see also: http://docs.geonode.org/en/master/tutorials/admin/install/install_postgresql.html#install-postgresql
  • install GeoNode:
    add the geonode repo key: sudo add-apt-repository ppa:geonode/release
    update the package list: sudo apt-get update
    install geonode:sudo apt-get install genode NB:this wil also install postgres9.1!
    sudo geonode-updateip 127.0.0.1
    geonode createsuperuser
    modify setting in /etc/geonode/local_settings.py and restart apache
    => now the geonode webpage should be running!

==>>> ToDo: check to what DB are user and dataset metadata added? => requires to modify hba_conf settings

  • modify GeoNode styling:
    • change webpage colors and add cedeus logo
      create folders /etc/geonode/media/geonode/img/ and /etc/geonode/media/geonode/css/
      copy cedeus logo.png and cedeus base.css into its corresponding folder (may require chmod 777)
      perform sudo geonode collectstatic -v0
    • change welcome text for es/en/de
      blabla