36
36
sudo apt-get update
37
37
sudo apt-get install subversion
38
38
sudo apt-get install gcc libc6 libc6-dev make
39
sudo apt-get install apache2 libapache2-mod-python
40
sudo apt-get install python2.5-dev python-svn python-webpy python-numpy python-matplotlib
41
sudo apt-get install postgresql python-pygresql
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
43
45
# Note: I had a lot of trouble with the python-svn package.
44
46
# After playing around a bit it started working.
60
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
63
126
##########################################################################
64
127
# Configure postgres
65
128
##########################################################################
103
166
sudo ./setup.py install
168
# Make the directory containing the svn auth.
169
# Make sure it is owned by www-data.
170
sudo mkdir /opt/ivle/svn
171
sudo chown -R www-data:www-data /opt/ivle/svn
173
# Make the "repositories" and "sessions" directories in the home.
174
# Make sure they are owned by www-data.
176
sudo mkdir repositories sessions
177
sudo chown -R www-data:www-data repositories sessions
106
180
sudo ./makeuser.py [OPTIONS] <login> 'Firstname Lastname' <rolenm> -p <password>
107
181
# role = guest/student/tutor/lecturer/admin
109
183
# Configure the Apache HTTP server
110
sudo cp doc/setup/ivle.conf /etc/apache2/sites-available
184
sudo cp doc/setup/ivle-both.conf /etc/apache2/sites-available/ivle.conf
111
185
# MODIFY the first few lines so it is specific to your server.
186
# * Change ServerAdmin and ServerName (for error reporting).
187
# * Inside the first VirtualHost block, there are two ServerNames
188
# (localhost and public.localhost). You must change these to the domains
189
# for regular IVLE and published-browsing IVLE respectively.
190
# * Inside the second VirtualHost block, there is one ServerName
191
# (svn.localhost). You must change this to the domain for svn access.
192
# * Change all paths beginning with /opt/ivle or /home/informatics to the
193
# locations you have installed things in.
112
194
vim /etc/apache2/sites-available/ivle.conf
114
196
# Replace the existing config link with the ivle one
115
197
cd /etc/apache2/sites-enabled/
116
198
sudo ln -fs /etc/apache2/sites-available/ivle.conf 000-default
118
# Make the directory corresponding to the directory for saved session
119
# objects in the apache config ivle.conf. Make sure it is owned by www-data,
120
# or at least readable and writable by it.
122
sudo mkdir /home/informatics/sessions
123
sudo chown www-data:www-data /home/informatics/sessions
200
# Make sure the 3 domains given in Apache conf all lookup to your server.
201
# (By default these are localhost, public.localhost and svn.localhost).
202
# For testing purposes, this can be done by editing /etc/hosts, for example:
203
127.0.0.1 public.localhost
204
127.0.0.1 svn.localhost
125
206
# Restart the server
126
207
sudo apache2ctl -k restart
209
##########################################################################
210
# User management server: usrmgt-server
211
##########################################################################
212
# To start the user management server:
214
sudo ./usrmgt-server <port> <usrmgt-password>
215
# usrmgt-password is the password entered in setup.py config (usrmgt_magic)
216
# Note that the port number and usrmgt password are recorded in
217
# the automatically created init.d script: doc/setup/usrmgt-server.init
219
# To run it at boot time:
220
sudo cp doc/setup/usrmgt-server.init /etc/init.d
221
sudo chown root:root /etc/init.d/usrmgt-server
222
sudo chmod 700 /etc/init.d/usrmgt-server # so world can't read database magic
223
sudo update-rc.d usrmgt-server defaults 99 # create symlinks in /etc/rc*.d
225
##########################################################################
226
# Setting up phpBB Forum in IVLE
227
##########################################################################
228
# This should all be run from the SVN directory
230
# Create a postgres database
231
# (only need the first line if it was previously created and is now changed)
232
sudo -u postgres dropdb ivle_forum
233
sudo -u postgres createdb ivle_forum
234
sudo -u postgres psql -d ivle_forum < userdb/forum_schema.sql
235
sudo -u postgres psql -d ivle_forum < userdb/forum_data.sql
237
#Change to the installed IVLE directory
239
# Fix permissions for install
241
# At very minimum you apache user must be able to write to
242
# cache/ files/ store/ images/avatars/upload config.php
243
sudo chown -R www-data:www-data .
129
245
##########################################################################
130
246
# Installing Pound reverse proxy (optional)