May 14 2008
Ubuntu as a GIS workstation (updated for Hardy Heron)
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
[…] The link is here. […]
Thanks Matt for the new repositories and your Blog, especially the Python Software for Spatial applications.
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.
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.
I would not recommend adding that additional repository. Gdal 1.5 will not work properly with grass 6.3 and Qgis.
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.