| 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 |
| | 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 |
| 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 |
| | 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 |