Here you will install GeoServer, a server for map images and location data. We first presented this tutorial as part of a three-hour session on Working with Geographic Information Systems in Python during the 2009 Python Conference in Chicago, Illinois.
Walkthrough for Fedora¶
Set JAVA_HOME environment variable.
Unzip and run
unzip geoserver-1.7.3a-bin.zip cd geoserver-1.7.3/bin ./startup.sh
Go to http://localhost:8080/geoserver in your browser.
Install GeoServer to load at boot¶
Copy geoserver files to
su cp -R geoserver-1.7.3 /usr/local/geoserver
Add the following lines to the end of
export JAVA_HOME=/usr/lib/jvm/jre/ export GEOSERVER_HOME=/usr/local/geoserver/ /usr/local/geoserver/bin/startup.sh &
Some users have reported problems setting the JAVA_HOME environment variable. In particular, you may be getting the following error on trying to run the
The JAVA_HOME environment variable is not defined This environment variable is needed to run this program
In these cases you will need to find the location of the JRE (Java Runtime Environment). Make sure that the JRE contains the
su # Login as root updatedb # Update database locate jre # Locate the Java Runtime Library
The default setup for Fedora 11 64-bit has the following preset shortcuts, which may help you find the JRE on your system.
/usr/lib/jvm/java-1.6.0-openjdk-220.127.116.11.x86_64 /usr/lib/jvm/jre -> /etc/alternatives/jre /usr/lib/jvm/jre-1.6.0 -> /etc/alternatives/jre_1.6.0 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64 -> java-1.6.0-openjdk-18.104.22.168.x86_64/jre /usr/lib/jvm/jre-openjdk -> /etc/alternatives/jre_openjdk /etc/alternatives/jre -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64 /etc/alternatives/jre_1.6.0 -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64 /etc/alternatives/jre_openjdk -> /usr/lib/jvm/jre-1.6.0-openjdk.x86_64