Code

Changes between Version 15 and Version 16 of GeoDjangoUbuntuInstall


Ignore:
Timestamp:
08/17/08 18:26:05 (6 years ago)
Author:
fsgpr
Comment:

Completely rewrote Short Version Instructions

Legend:

Unmodified
Added
Removed
Modified
  • GeoDjangoUbuntuInstall

    v15 v16  
    1212 
    1313== Short Version == 
    14  * Install Django 1.0 or later 
    15  * Using apt-get or Synaptic, install apache2, python-psycopg2, postgresql, build-essential, libapache2-mod-python, postgresql-8.3-postgis 
    16  * Edit /etc/postgresql/8.3/main/pg_hba.conf to allow django connections 
    17  * Edit /etc/apache2/sites-available/default when creating your first GeoDjango app 
    18  * Download, compiles and install GDAL and GEOS libraries     
    19     * gdal-1.5.2.tar.gz from http://download.osgeo.org/gdal/ 
    20     * geos-3.0.0 from http://geos.refractions.net/downloads 
    21  * Create your PostGIS enabled PostgreSQL db 
    22  * Proceed with writing your first GeoDjango app 
    23   * Sample apps for !GeoDjango at: [http://code.google.com/p/geodjango-basic-apps/ geodjango-basic-apps] 
     14The following is a list of commands to enter into the Terminal to install GeoDjango on Ubuntu.  For more detailed explanations on the installation process see the GeoDjangoInstall wiki. 
     15{{{ 
     16 * #Download and Install the latest version of Django 
     17 * cd ~ 
     18 * wget http://www.djangoproject.com/download/1.0-beta-1/tarball/ 
     19 * tar xzvf Django-1.0-beta_1.tar.gz  
     20 * sudo python ~/Django-1.0-beta_1/setup.py install  #Enter password to give root privileges as prompted throughout the installation 
     21 * #Install Apache2, PsycoPg2, PostGreSQL, PostGIS, build-essential [to be able to compile libraries], and Mod_Python 
     22 * sudo apt-get install apache2 python-psycopg2 postgresql build-essential libapache2-mod-python postgresql-8.3-postgis #Press 'y' to confirm download 
     23 * wget http://download.osgeo.org/gdal/gdal-1.5.2.tar.gz #The version in the Repositories is currently not new enough for GeoDjango 
     24 * wget http://download.osgeo.org/geos/geos-3.0.0.tar.bz2  #The version in the Repositories is currently not new enough for GeoDjango 
     25 * tar xzvf gdal-1.5.2.tar.gz 
     26 * cd gdal-1.5.2 
     27 * ./configure --datadir=/usr/local/share/gdal 
     28 * make 
     29 * sudo make install 
     30 * cd ~ 
     31 * bzip2 -dc geos-3.0.0.tar.bz2 | tar -x 
     32 * cd geos-3.0.0 
     33 * ./configure 
     34 * make 
     35 * sudo make install        
     36 * sudo cp /usr/share/gcs.csv /usr/local/share/ 
     37 * sudo pico /etc/postgresql/8.3/main/pg_hba.conf #Edit to allow Django Connections, as per the regular Django Docs 
     38 * sudo pico /etc/apache2/sites-available/default #Edit to Create Django Locations, as per the regular Django Docs  
     39}}} 
     40 
     41Create your PostGIS enabled PostGreSQL db 
     42{{{ 
     43 * sudo su postgres 
     44 * createuser [username]    
     45 * psql  
     46     * alter user [username] with password '[password]'; 
     47     * \q 
     48 * createdb [dbname] 
     49 * createlang plpgsql [dbname] 
     50 * psql -d [dbname] -f /usr/share/postgresql-8.3-postgis/lwpostgis.sql 
     51 * psql -d [dbname] -f /usr/share/postgresql-8.3-postgis/spatial_ref_sys.sql 
     52}}} 
    2453 
    2554== Full Instructions ==