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 in 10 minutes
All that's required to add your favorite package into GISVM is to:
- 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.
- Notify the GISVM team to test your script, and reference your script from main.sh.
The script may be as simple as:
install_mapserver.sh
#!/bin/sh # Copyright (c) 2009 The Open Source Geospatial Foundation. # Licensed under the GNU LGPL. # # About: # ===== # This script will install mapserver # # Running: # ======= # sudo ./install_mapserver.sh apt-get install cgi-mapserver
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
- Temporary files (e.g., downloaded archives) go into /tmp. Please create a separate folder for your project.
- application are usually installed into /usr/lib
- things that get executed by the user such as startup scripts or links to them should go into /usr/bin
- startup/shutdown scripts for services (e.g., postgres, apache, tomcat) are stored in /etc/init.d
- sample data and documentation goes into /usr/local/share
- config files are stored in /etc
- user specific config files or working directories can go into /home/user. However, it will be appreciated if you can keep the amount of things in the user's home folder as small as possible. Symlinks into /usr/local can be useful here.