11
11
# While other install guides in this package are generic, this one is very
12
12
# specific to our intended configuration. It will be very helpful if trying to
13
# set up IVLE on Ubuntu 8.04 or higher; less helpful for other platforms.
13
# set up IVLE on Ubuntu 7.06 or higher; less helpful for other platforms.
14
14
# This refers to ivle.conf, also included.
16
16
# Author: Matt Giuca
19
sudo vim /etc/apt/sources.list
21
# Gutsy by default had the CD-ROM packages selected, and the Internet packages
22
# commented out. (A comment in the apt sources list said it was because it
23
# failed to verify - IMPORTANT?? Probably not.)
24
# Comment out line 4 (deb cdrom:...)
26
# Uncomment ALL the lines for main, restricted and universe
27
# (deb http:...gutsy main restricted, deb-src ... main restricted
28
# deb http:...gutsy universe)
29
# Universe is important for pysvn (python-svn) later on
19
32
##########################################################################
21
34
##########################################################################
22
sudo apt-get install subversion build-essential debootstrap \
23
apache2 libapache2-mod-python libapache2-svn \
24
python2.5-dev python-svn python-webpy python-cjson \
25
postgresql python-pygresql php5 php5-pgsql \
26
python-docutils python-epydoc python-ldap
37
sudo apt-get install subversion
38
sudo apt-get install gcc libc6 libc6-dev make
39
sudo apt-get install apache2 libapache2-mod-python libapache2-svn
40
sudo apt-get install python2.5-dev python-svn python-webpy
41
sudo apt-get install python-numpy python-matplotlib
42
sudo apt-get install postgresql python-pygresql python-ldap
43
sudo apt-get install php5 php5-pgsql
45
# Note: I had a lot of trouble with the python-svn package.
46
# After playing around a bit it started working.
47
# python -c 'import pysvn'
48
# to test if it worked.
49
# Do Not install python-svn-dbg.
51
##########################################################################
52
# Python packages needed by IVLE or student code
53
##########################################################################
55
# See trunk/doc/dependencies.txt
58
# Note: apt-get install python-cjson puts it in an unexpected place.
59
# Setup doesn't handle this correctly, so just install by hand:
61
wget 'http://pypi.python.org/packages/source/p/python-cjson/python-cjson-1.0.5.tar.gz'
62
tar -zxvf python-cjson-1.0.5.tar.gz
66
sudo ./setup.py install
70
# NLTK for student code
71
wget 'http://prdownloads.sourceforge.net/nltk/nltk-0.9.2.tar.gz'
72
tar -xzvf nltk-0.9.2.tar.gz
73
wget 'http://prdownloads.sourceforge.net/nltk/nltk-data-0.9.2.zip'
74
unzip nltk-data-0.9.2.zip
77
sudo python setup.py install
79
sudo mkdir /usr/share/nltk
80
sudo mv data /usr/share/nltk/
81
sudo chmod -R g+r /usr/share/nltk/data
83
# Beautiful Soup for student code
85
sudo apt-get install python-beautifulsoup
87
wget 'http://www.crummy.com/software/BeautifulSoup/download/BeautifulSoup.tar.gz'
88
tar -xzvf BeautifulSoup.tar.gz
91
sudo python setup.py install
94
# LXML for student code
95
sudo apt-get install python-lxml
97
# Python Imaging Library for student code
98
sudo apt-get install python-imaging
100
# Elementtree 1.3a for student code
101
# Needs libtidy for 'TidyHTML' parts
102
sudo apt-get install libtidy-0.99-0
104
svn co http://svn.effbot.org/public/tags/elementtree-1.3a3-20070912/ elementtree1.3
106
sudo python setup.py install
109
# SimpleTAL for student code
110
sudo apt-get install python-simpletal
112
# SciPy for student code
113
sudo apt-get install python-scipy
115
# Documentation packages needed for tutorial system: Docutils, Epydoc
116
# wget each of these, untar them, and then do: sudo python ./setup.py install
118
http://docutils.sourceforge.net/docutils-snapshot.tgz
119
http://downloads.sourceforge.net/epydoc/epydoc-3.0.1.tar.gz?use_mirror=optusnet
122
# (Note: epydoc doesn't work on Fiesty using apt-get)
124
sudo apt-get install python-docutils python-epydoc
28
126
##########################################################################
29
127
# Configure postgres
30
128
##########################################################################
130
# Some of these instructions follow
131
# https://help.ubuntu.com/community/PostgreSQL
132
# 1. install the base packages
32
134
# Set the postgres user's postgres password
33
135
sudo -u postgres psql template1
34
# At the prompt type (substituting <***password***> with a real one).
136
# At the prompt type (substituting <***password***> with a real one.
35
137
ALTER USER postgres WITH ENCRYPTED PASSWORD '<***password***>';
90
191
# (svn.localhost). You must change this to the domain for svn access.
91
192
# * Change all paths beginning with /opt/ivle or /home/informatics to the
92
193
# locations you have installed things in.
93
sudo vim /etc/apache2/sites-available/ivle
95
# Replace the default with the IVLE site.
96
sudo a2dissite default
100
sudo /etc/init.d/apache2 restart
194
vim /etc/apache2/sites-available/ivle.conf
196
# Replace the existing config link with the ivle one
197
cd /etc/apache2/sites-enabled/
198
sudo ln -fs /etc/apache2/sites-available/ivle.conf 000-default
102
200
# Make sure the 3 domains given in Apache conf all lookup to your server.
103
201
# (By default these are localhost, public.localhost and svn.localhost).
104
202
# For testing purposes, this can be done by editing /etc/hosts, for example:
105
# 127.0.0.1 svn.localhost public.localhost
203
127.0.0.1 public.localhost
204
127.0.0.1 svn.localhost
207
sudo apache2ctl -k restart
108
209
##########################################################################
109
210
# User management server: usrmgt-server