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

then:-

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 

JAVA_HOME=/usr/lib/jvm/java-7-oracle

restart tomcat7:-

sudo /etc/init.d/tomcat7 restart

Download GeoServer 2.4.0 archive from:-

http://sourceforge.net/projects/geoserver/files/GeoServer/2.4.0/geoserver-2.4.0-war.zip/download

Extract the .war file somewhere convenient then:-

gksudo nautilus  (password required)

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

/var/lib/tomcat7/webapps/

then restart apache2 again:-

/etc/init.d/apache2 restart

Now you should get your GeoServer login page:-

http://localhost:8080/geoserver
















with some nice demo data included to get you started.













My thanks to Hongru Hou for his original blog:-
http://hongru.hou.io/blog/2013/01/07/How-to-install-GeoServer-on-Ubuntu-12.04/

Comments

  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.

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

    ReplyDelete
  3. It is quite beneficial, although think about the facts when it reaches this target. http://freshapplenews.blogspot.com/2009/11/unofficial-apple-weblog-tuaw-10_23.html

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

    ReplyDelete
  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

    ReplyDelete
  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? https://www.theplaynews.com/

    ReplyDelete
  7. It is quite beneficial, although think about the facts when it reaches this target. fiverr seo

    ReplyDelete
  8. 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. sad poetry in Urdu

    ReplyDelete
  9. 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. check here

    ReplyDelete
  10. If you set out to make me think today; mission accomplished! I really like your writing style and how you express your ideas. Thank you. unique domain backlink

    ReplyDelete
  11. Hi there! Nice post! Please tell us when I will see a follow up! manually backlinks

    ReplyDelete
  12. In the event that you have a fast expansion in backlinks throughout a brief timeframe, Google may see this as spam, regardless of whether your endeavors are authentic. Webdesignlab

    ReplyDelete
  13. When you use a genuine service, you will be able to provide instructions, share materials and choose the formatting style. รับทำ seo

    ReplyDelete
  14. hello!! Very interesting discussion glad that I came across such informative post. Keep up the good work friend. Glad to be part of your net community. SEO

    ReplyDelete
  15. Great job here on. I read a lot of blog posts, but I never heard a topic like this. I Love this topic you made about the blogger's bucket list. Very resourceful. backlinks

    ReplyDelete
  16. Absence of correspondence can frequently gravely demolish the entire of the venture. Webdesign

    ReplyDelete
  17. I’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article... etcher.download

    ReplyDelete
  18. i never know the use of adobe shadow until i saw this post. thank you for this! this is very helpful. etcher download

    ReplyDelete
  19. Connecting to other profoundly positioned destinations helps your positioning.Webdesign bureau

    ReplyDelete
  20. Wow, this is fascinating reading. I am glad I found this and got to read it. Great job on this content. I liked it a lot. Thanks for the great and unique info. 200 dofollow blog comments

    ReplyDelete
  21. Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon! I will 800 dofollow blog comment backlinks high da 20 to 80

    ReplyDelete
  22. Excellent post. I was reviewing this blog continuously, and I am impressed! Extremely helpful information especially this page. Thank you and good luck. facebook ibmseo Page

    ReplyDelete
  23. Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing. houses for sale in burnley lancashire

    ReplyDelete

Post a Comment

Popular posts from this blog

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

Qgis-server...Installation on Ubuntu 16.04 LTS

Overlaying Raster and Vector datasets with different projection parameters in GRASS GIS