Live GIS Build
About
GISVM is an Xubuntu based Virtual Machine which has been installed with a suite of the best Open Source Geospatial software. It is also used to build Arramagong, the Linux based Live DVD.
How to add your project or data to GISVM / Arramagong
All that's required to add your favorite package into GISVM is to:
- Optional: Subscribe to the Live Demo email list to discuss issues.
- Optional: Install the latest Arramamgong / GIS virtual machine to download into. (Alternatively, you may be able to get away with just using an Xubuntu or Ubuntu installation you may already have.)
- Download the latest Arramagong / GISVM virtual machine from: http://download.osgeo.org/livedvd
- On 1 Sept 2009, this is Arramagong_GISVM_FOSS4G2009_alpha, which is 2.3 Gig, compressed with 7 Zip, and needs to be downloaded in 4 parts, then added back together using 7 Zip.
- On linux: assuming all 4 files are stored in the same folder, use a console to go to that folder and type:
7z x Arramagong_GISVM_FOSS4G2009_alpha1.7z.001
- This will extract all four files automaticaly. You get 2 files named
gisvm20090828x.vmdk
andgisvm20090828x.vmx
- On linux: assuming all 4 files are stored in the same folder, use a console to go to that folder and type:
- Install into a Virtual Machine. We recommend using VMWare, but VirtualBox works also.
- VirutalBox - Open the Virtual Disk Manager and add a harddisk, point it to the vmdk file and save. Now create a new machine and when prompted select the existing vmdk as the disk. It shouldn't ask you for anything else other than ram allocation, name and OS type.
- Install into a Virtual Machine. We recommend using VMWare, but VirtualBox works also.
- write a shell script which installs and configures your stable package into the current GISVM virtual machine (which will usually be the same as installing on Xubuntu or Ubuntu).
- add the script to subversion, in https://svn.osgeo.org/osgeo/livedvd/gisvm/trunk/bin/
- If you do not have write permission there feel free to send the script to the OSGeo live-demo mailing list as an attachment and we'll see that it makes it in.
- TBD: Explain how to get subversion access.
- Notify the GISVM team to test your script, and will ensure to reference your script from main.sh.
Example scripts
You can see example scripts at: https://svn.osgeo.org/osgeo/livedvd/gisvm/trunk/bin/
The script may be as simple as:
install_mapserver.sh, which just "apt-get install mapserver"
Projects that haven't been packaged yet are slightly more complicated:
The Udig package is a good example: install_udig.sh
- 3rd Party Repositories - Create an <app>.list file with your repository in sources.list.d/ in the svn, in your script copy the file to the local machine like
wget https://svn.osgeo.org/osgeo/livedvd/gisvm/trunk/sources.list.d/qgis.list --output-document=/etc/apt/sources.list.d/qgis.list
don't forget to add the repository key like so
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1024R/68436DDF
Build Drivers
Which version?
The criteria used to select applications for GISVM is as follows:
- Priority goes to Ubuntu packaged software first, then Debian packaged software! This facilitates easy and reliable maintenance and update. Users will benefit from it. Programmers are encouraged to move their software into DebianGIS or UbuntuGIS repositories.
- Stable, always! GISVM users are mainly starters. So they obviously are better with stable software. They have enough problems already and will gladly be happier without software bugs.
For people who want the latest version, they can create an alternative upgrade script.
Low Memory
Both Virtual Machines, and a LiveDVD images are likely to be constrained by limited memory. So to reduce memory usage. Disk image size is not of major concern, as we can just distribute less data.
The following principles should be followed.
- Do not start applications upon power up. (Ie, don't start deamons, allow users to start them instead).
- Set up examples which, by default, don't depend on other applications. Less applications open, means less memory. Ie, Have GeoServer access a shapefile instead of PostGIS.
- Try to avoid scenarios which write data to disk, as disk space in the Live DVD is stored in RAM, and is not cleared afterward.
Directory Structure
- /tmp Temporary files (e.g., downloaded archives) go into /tmp. Please create a separate folder for your project.
- /usr/lib application are usually installed into /usr/lib
- /usr/bin things that get executed by the user such as startup scripts or links to them should go into /usr/bin
- /etc/init.d startup/shutdown scripts for services (e.g., postgres, apache, tomcat) are stored in /etc/init.d
- /usr/local/share sample data and documentation goes into /usr/local/share
- /etc config files are stored in /etc
- /home/user user specific config files or working directories can go into /home/user/. However, keep files in /home/user as small as possible as this folder is loaded into memory in the Live DVD. Symlinks into /usr/local can be useful here.