Friday, 10 July 2015

Install GeoServer on Ubuntu 15.04 (localhost)

It's quite easy to find installation instructions for most Ubuntu versions but it's nice to check they still apply to the most recent release (15.04 at the time writing). I tested this yesterday and it still works for me. My thanks to Hongru Hou (link at the end of the article for full details).

Install Apache2 (if not installed):-
sudo apt-get install apache2  

sudo apt-get update

Test Apache2 web server is working:-

sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 restart

Install Java 7 using the 'Webupd8team' repository:-

sudo add-apt-repository ppa:webupd8team/java


sudo apt-get install oracle-java7-installer

(takes about 10 minutes to download)

Install Tomcat7 (because it is GeoServer Web archive this replaces the missing Java Servlet of this edition)
sudo apt-get install tomcat7

then in order for tomcat7 to find JDK we need to open and amend one line:-

sudo vi /etc/default/tomcat7 


restart tomcat7:-

sudo /etc/init.d/tomcat7 restart

Download GeoServer 2.4.0 archive from:-

Extract the .war file somewhere convenient then:-

gksudo nautilus  (password required)

and manually copy/paste the .war file into:-


then restart apache2 again:-

/etc/init.d/apache2 restart

Now you should get your GeoServer login page:-


with some nice demo data included to get you started.

My thanks to Hongru Hou for his original blog:-


  1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai. or learn thru Java Online Training India . Nowadays Java has tons of job opportunities on various vertical industry.

  2. Thanks for the guide.
    I want a guide to install mate in ubuntu for better desktop environment.

  3. It is quite beneficial, although think about the facts when it reaches this target.

  4. Some truly wonderful work on behalf of the owner of this internet site , perfectly great articles . dofollow blog comment

  5. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. acheter des backlinks

  6. I high appreciate this post. It’s hard to find the good from the bad sometimes, but I think you’ve nailed it! would you mind updating your blog with more information?


Featured post

Qgis-server...Installing the QGIS Lizmap Plugin & Lizmap Web Client

This post follows on from my previous three (most recent first in list) linked below. There is no doubt that in just a short time from no...