This post is mainly for my notes. On a clean install of Ubuntu 14.04 server I went through the following.
sudo apt-get update
Then, check if Java is already installed:
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
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).
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
- In a web browser, navigate to http://localhost:8080/geoserver.
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
Leave a Reply