33
33
SECTIONS="main universe"
35
SYSTEMPACKAGES="python-cjson python-svn"
35
SYSTEMPACKAGES="python2.5 python-cjson python-svn"
36
36
STUDENTPACKAGES="python-numpy python-matplotlib python-scipy \
37
37
python-beautifulsoup python-lxml python-imaging \
38
python-simpletal python-nltk" # elementtree-1.3beta (needs tidy)
40
# FIXME: [nasty-hack] Override the default mirror to the local AARNET one.
41
# This should really be a local configuration option, but unfortunately
42
# setup.py is a bit of a mess and needs a clean up to support this. For the
43
# mean time we'll override it here.
44
MIRROR=http://mirror.aarnet.edu.au/pub/ubuntu/archive/
47
if [ "x$MIRROR" = "x" ]; then
48
MIRROR=http://archive.ubuntu.com/ubuntu/
38
python-simpletal python-nltk python-nltk-data" # elementtree-1.3beta
40
# FIXME: [hack] Override the default mirror to the local AARNET one. This
41
# should really be a local configuration option, but unfortunately setup.py is
42
# a bit of a mess and needs a clean up to support this. For the mean time we'll
45
if [ -z "$MIRROR" ]; then
46
MIRROR=http://mirror.aarnet.edu.au/pub/ubuntu/archive/
47
#MIRROR=http://archive.ubuntu.com/ubuntu/ # Default Mirror
50
49
echo "Using Mirror: $MIRROR"
51
# Do we have debootstrap?
52
if [ -x /usr/sbin/debootstrap ]; then
53
DEBOOTSTRAP="/usr/sbin/debootstrap"
56
if [ -z "$DEBOOTSTRAP" ]; then
57
echo "Error: Debootstrap not found. Is it installed?"
52
61
echo "Building minimal Jail..."
54
sudo debootstrap --components=`echo $SECTIONS | tr ' ' ','` \
62
sudo rm -rf --one-file-system $JAIL
63
sudo $DEBOOTSTRAP --components=`echo $SECTIONS | tr ' ' ','` \
55
64
--include=ubuntu-keyring \
56
65
--variant=minbase $RELEASE $JAIL $MIRROR