May 14 2008

Ubuntu as a GIS workstation (updated for Hardy Heron)

Published by perrygeo at 10:36 am under Linux

As a followup to my previous post on turning Ubuntu Gutsy into a GIS workstation, Here are the revised instructions for Ubuntu 8.04 (The Hardy Heron).

Note that there are a few additonal apps and changes in here:

  • Postgis
  • Mapnik
  • New version of QGIS installed via repository
  • OpenStreetMap tools (JOSM and osm2pgsql)
  • Geotiff utilities
  • Some nice python spatial libs (shapely, owslib, geopy and pyproj)

Run the following as root on your new Hardy installation, answer a few configuration questions and you’ll be ready to go.

echo 'deb http://ppa.launchpad.net/qgis/ubuntu hardy main' >> /etc/apt/sources.list

apt-get update

apt-get -y --force-yes install grass mapserver-bin \
gdal-bin cgi-mapserver python-qt4 python-sip4 python-gdal \
python-mapscript gmt gmt-coastline-data r-recommended gpsbabel \
shapelib qgis qgis-plugin-grass python-setuptools \
python-mapnik mapnik-plugins mapnik-utils osm2pgsql josm postgresql-8.3-postgis \
python-dev build-essential libgdal-dev geotiff-bin sun-java6-jre

easy_install shapely geopy owslib pyproj

EDIT: If you’re looking for more up to date packages for geos, gdal, etc, try adding deb http://les-ejk.cz/ubuntu/ hardy multiverse to your /etc/apt/sources.list

6 Responses to “Ubuntu as a GIS workstation (updated for Hardy Heron)”

  1. […] The link is here. […]

  2. SamTuxon 15 May 2008 at 11:40 am

    Thanks Matt for the new repositories and your Blog, especially the Python Software for Spatial applications.

  3. skwashon 30 May 2008 at 12:07 pm

    I just installed via these repositories. It looks like the debs don’t reference all dependancies. I had to install python-sip4 and python-qt4 to get qgis to stop complaining about not being able to run python. ( apt-get install python-qt4 python-sip4 ) Just an FYI for anyone else who may run into this.

  4. Markon 18 Jun 2008 at 3:09 pm

    I had to change libgdal-dev into libgdal1-dev to make it work. Also I removed ‘–force-yes’ as I wouldn’t know why this is necessary.
    Thanks for the post.

  5. Michalon 06 Jul 2008 at 5:57 am

    I would not recommend adding that additional repository. Gdal 1.5 will not work properly with grass 6.3 and Qgis.

  6. Cliff Dyeron 14 Nov 2008 at 8:33 am

    Got it working on intrepid, now that there’s a qgis available. Just changed the first line to:

    echo ‘deb http://ppa.launchpad.net/qgis/ubuntu intrepid main’ >> /etc/apt/sources.list

    I might have had to make the libgdal change mentioned above. I can’t recall.

Trackback URI | Comments RSS

Leave a Reply