Moving the GeoSandbox to Full OpenSource
For now, I’m just going to do a short outline of what it took to get a basic Ubuntu/Apache/OpenGeo Suite operating on my home server. Once I get a better handle on how Ubuntu and Apache work I’ll add some posts about that.
Starting with a clean install of Ubuntu 10.10
Download and install Ubuntu 10.10 Desktop
I downloaded Ubuntuu 10.10 Desktop Edition from their website:
Yes, I could have used the Server edition, but Coming from a Windows world, It’s easier for me to work with some kind of GUI than to go 100% command line. After downloading the .iso, I burned it to a CD, installed it on a clean hard drive, and then installed all updates.
Turn Ubuntu Desktop into an Apache Server
Install LAMP with a single command
In case you didn’t know, LAMP stands for “Linux Apache MySQL PHP”. This may or may not be more than I need for my purposes, but a one-line install looked like the easiest way to go, so:
Then I opened a terminal window and entered:
sudo apt-get install lamp-server^
Add in the ability to serve maps
Install OpenGeo Suite
This was the most difficult part for me to figure out. Instructions can be found here:
Being somewhat new to Ubuntu, I missed what the first step under “Repository Setup” meant (sudo to root). Once I figured that out, things went smoothly. The steps are:
In terminal, sudo to root:
Import the OpenGeo gpg key:
wget -qO- http://apt.opengeo.org/gpg.key | apt-key add -
Add the OpenGeo repository:
echo "deb http://apt.opengeo.org/ubuntu lucid main" >> /etc/apt/sources.list
Update the package list:
Search for OpenGeo packages:
apt-cache search opengeo
Install the OpenGeo Suite package:
apt-get install opengeo-suite
See if everything works
The last step was to see if everything was working properly, which it was.
Test the Apache2 default website:
on the host computer – http://localhost – It works!
and via a remote computer (substitute your server’s domain here) – http://184.108.40.206/ – It works!
Test the OpenGeo Suite:
Open the dashboard – http://localhost:8080/dashboard/
Save the default map and exit Geoexplorer
Test GeoServer by loading a GeoExplorer map:
Open the default map on a remote computer (again, substitute your server’s domain here) – http://220.127.116.11:8080/geoexplorer/viewer#maps/1
In my case, everything worked as expected. After this, I continued trying to set up a custom website to serve my GeoServer maps, but ran into a few problems. I’ll be switching the GeoSandbox back and forth between the Windows and Apache server as I continue my climb up the learning curve, so don’t be surprised if some of the links appear to be broken on occasion.