Geoserver notes

This post is mainly for my notes. On a clean install of Ubuntu 14.04 server I went through the following.

1) Java

sudo apt-get update 

Then, check if Java is already installed:

java -version 

If it returns “The program java can be found in the following packages”, Java hasn’t been installed yet, so execute the following to install the standard runtime environment:

sudo apt-get install default-jre 

2) Geoserver

These installation notes are based on those found on the Geoserver website.

  • Select the Stable version of GeoServer to download.

Select Platform Independent Binary on the download page.

  • Download the archive and unpack to the directory where you would like the program to be located (assumed to be /usr/local/geoserver for these notes).
wget http://sourceforge.net/projects/geoserver/files/GeoServer/2.7.0/geoserver-2.7.0-bin.zip
sudo mv ~/geoserver-2.7.0-bin.zip .
sudo unzip geoserver-2.7.0-bin.zip
  • Add an environment variable to save the location of GeoServer by typing the following command:
echo "export GEOSERVER_HOME=/usr/local/geoserver" >> ~/.profile
. ~/.profile
  • Make yourself the owner of the geoserver folder using the following command replacing USER_NAME with your own username :
sudo chown -R USER_NAME /usr/local/geoserver/
  • Start GeoServer by changing into the directory geoserver/bin and executing the startup.shscript:
cd geoserver/bin
sh startup.sh

If you see the GeoServer logo, then GeoServer is successfully installed. If you get a message about Java then it may be that you need to run the following:

echo "export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.07" >> ~/.profile
. ~/.profile
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

A WordPress.com Website.

Up ↑

%d bloggers like this: