Recently one of my little side pursuits has been playing with OpenStreetMap. I had tinkered with it a little bit some time ago, and decided to revisit it.


Recently one of my little side pursuits has been playing with OpenStreetMap. I had tinkered with it a little bit some time ago, and decided to revisit it.
I recently inherited some older machines and, to support some ongoing in-house experimentation I've been involved in, set them up as quick-and-dirty servers to help serve up geospatial data services - the approach I took was to build what are essentially minimal machines running linux in command-line mode, and then load GeoServer on them to serve the data - As I haven't blogged in a while, a friend suggested that posting a quick description of the mechanics of this might be a good thing to share for folks who haven't dipped their toes into Linux much.
As a disclaimer, I do not claim to profess guruhood when it comes to Linux or the other packages, this is not necessarily warranted to be a "hardened-and-tweaked" system for production, it's just some very quick and dirty steps toward standing up a headless Linux-based GeoServer instance. Note that this uses the default Jetty install - some folks prefer to run it under Tomcat, which is a different path.
So, I started out with the "minimal install CD" for Ubuntu 9.04, available here:
https://help.ubuntu.com/community/Installation/MinimalCD
Select a package appropriate for the CPU you are using - in my case, I chose Ubuntu 9.04 for 32-bit PC.
Burn the ISO and follow the prompts to install from the text-based installer as command-line interface (CLI). I essentially went with the defaults. You will want to have the machine connected to the internet so that it can identify and set up the network connection and grab any files needed during install.
Once you've installed a minimal version of Linux, you will be ready to configure and install the other goodies.
sudo apt-get install openssh-server
sudo
tells it to use superuser privileges and permissions, and will ask for the root password used when you installed Linux. apt-get install
uses the Advanced Package Tool to search for, retrieve and install software packages for Linux - this makes installation of much standard software in Linux easy.ifconfig
command, which will give results something like this:sudo apt-get install sun-java6-jdk
sudo update-java-alternatives -s java-6-sun
sudo nano /etc/environment
JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.14/
sudo apt-get install unzip
will provide that capability. Next, you can download GeoServer.cd /usr/share
wget
-
sudo wget http://downloads.sourceforge.net/geoserver/geoserver-1.7.6-bin.zip
sudo unzip geoserver-1.7.6-bin.zip
chown
will change ownership, using -R
makes it recursive through subfolders and files:sudo chown -R geoserver_username geoserver-1.7.6
would change all files and directories to be owned by the user specified (geoserver_username
as a placeholder).ls
and navigate directories using cd
.GEOSERVER_HOME="/usr/share/geoserver-1.7.6"
- again, you could do this using nano
to edit /etc/environment
- and there are also plenty of other ways to do this. You could also define other parts of GeoServer, such as GEOSERVER_DATA_DIR
at this point as well - consult the GeoServer docs for details there... http://docs.geoserver.org/1.7.x/en/user/cd
to the /bin
directory under your geoserver install, e.g. cd /usr/share/geoserver-1.7.6/bin"
and launch the startup script sh startup.sh
and voila... You will see some program output scroll by,[main] INFO org.mortbay.log - Started SelectChannelConnector@0.0.0.0:8080
- this should tell you that the GeoServer Jetty container is up and listening for connections on 8080.http://192.168.2.125:8080/geoserver/
and after an initial "loading" screen you should get the GeoServer web interface:
Here's another exiting bit of news - my firm is teamed with CGI Federal on USEPA's Software Engineering & Specialized Scientific Support (SES3) Contract, and we just got word that our team has won EPA's Central Data Exchange (CDX) task. This is very exciting news, CDX and the Exchange Network serve the community via facilitating exchange of a wide variety of environmental data between federal, state, tribal and other partnerships - it is a partnership that has proven itself to be tremendously effective and a great model for other types of data exchanges as well.
What I am particularly excited about is in leveraging the infrastructure that has already been built toward more robustly supporting geodata services, and ultimately toward enhanced reporting, metrics, analytical capabilities, and other capabilities to support feds, states, tribes and others in informed decisionmaking toward environmental policy and stewardship.As such - we also anticipate we will be looking to grow as a company, and will be looking to hire additional technical gurus with capabilities in data exchange, data management and data flows, particularly if you have prior capabilities and knowledge of EPA's Exchange Network and CDX, and/or geospatial technology.
If you are interested, drop me a line at dsmith (at) synergist.tech.com
The last several weeks have been quite hectic - busy on a number of fronts, which is a thankful thing, given the economy has slowed down a bit - but here is something quick that I wanted to share - I was awarded "Most Valuable Professional" (MVP) status by Microsoft for some of my ongoing work in Virtual Earth. Hierarchically, there isn't exactly a "VE MVP" program, but VE falls within Microsoft's broader Live Platform.
Some late night discussion with @GeoBabbler (Bill Dollins) and others last night led to this little flight of fancy... Bill was wondering if there were still any old copies of ArcView 1.0 around. Being a GIS geezer and a bit of a technology packrat, it turns out I still had a copy. Scary. As @FantomPlanet suggested, I reckon I have a bit of a Museum of GIS Antiquity going on - I believe I actually still have ancient copies of MapInfo, Atlas, GeoMedia, AutoCAD Map 1.0 and others floating around, plus quite a bit of hand-coded stuff from the days when COTS GIS was not even widely available.