~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to doc/setup/install_proc.txt

  • Committer: mattgiuca
  • Date: 2008-06-23 09:45:03 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:785
fileservice_lib/__init__.py: X-IVLE-Action-Error HTTP response header is now
    URI-encoded. This allows multi-line error messages without producing
    invalid HTTP.
www/media/browser/browser.js: URI-decodes the X-IVLE-Action-Error response
    header, so it displays normally.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
42
44
 
43
45
# Note: I had a lot of trouble with the python-svn package.
44
46
# After playing around a bit it started working.
52
54
#
53
55
# See trunk/doc/dependencies.txt
54
56
 
 
57
# CJSON
 
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:
 
60
 
55
61
wget 'http://pypi.python.org/packages/source/p/python-cjson/python-cjson-1.0.5.tar.gz'
56
62
tar -zxvf python-cjson-1.0.5.tar.gz
57
63
 
60
66
sudo ./setup.py install
61
67
cd ..
62
68
 
 
69
 
 
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
 
75
 
 
76
cd nltk-0.9.2
 
77
sudo python setup.py install
 
78
cd ..
 
79
sudo mkdir /usr/share/nltk
 
80
sudo mv data /usr/share/nltk/
 
81
sudo chmod -R g+r /usr/share/nltk/data
 
82
 
 
83
# Beautiful Soup for student code
 
84
# via apt-get
 
85
sudo apt-get install python-beautifulsoup
 
86
# or
 
87
wget 'http://www.crummy.com/software/BeautifulSoup/download/BeautifulSoup.tar.gz'
 
88
tar -xzvf BeautifulSoup.tar.gz
 
89
 
 
90
cd BeautifulSoup*
 
91
sudo python setup.py install
 
92
cd ..
 
93
 
 
94
# LXML for student code
 
95
sudo apt-get install python-lxml
 
96
 
 
97
# Python Imaging Library for student code
 
98
sudo apt-get install python-imaging
 
99
 
 
100
# Elementtree 1.3a for student code
 
101
# Needs libtidy for 'TidyHTML' parts
 
102
sudo apt-get install libtidy-0.99-0 
 
103
 
 
104
svn co http://svn.effbot.org/public/tags/elementtree-1.3a3-20070912/ elementtree1.3
 
105
cd elementtree1.3
 
106
sudo python setup.py install
 
107
cd ..
 
108
 
 
109
# SimpleTAL for student code
 
110
sudo apt-get install python-simpletal
 
111
 
 
112
# SciPy for student code
 
113
sudo apt-get install python-scipy
 
114
 
 
115
# Documentation packages needed for tutorial system: Docutils, Epydoc
 
116
# wget each of these, untar them, and then do: sudo python ./setup.py install
 
117
 
 
118
http://docutils.sourceforge.net/docutils-snapshot.tgz
 
119
http://downloads.sourceforge.net/epydoc/epydoc-3.0.1.tar.gz?use_mirror=optusnet
 
120
 
 
121
# Or using apt-get
 
122
# (Note: epydoc doesn't work on Fiesty using apt-get)
 
123
 
 
124
sudo apt-get install python-docutils python-epydoc
 
125
 
63
126
##########################################################################
64
127
# Configure postgres
65
128
##########################################################################
102
165
./setup.py build
103
166
sudo ./setup.py install
104
167
 
 
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
 
172
 
 
173
# Make the "repositories" and "sessions" directories in the home.
 
174
# Make sure they are owned by www-data.
 
175
cd /home/informatics
 
176
sudo mkdir repositories sessions
 
177
sudo chown -R www-data:www-data repositories sessions
 
178
 
105
179
# Create a user
106
180
sudo ./makeuser.py [OPTIONS] <login> 'Firstname Lastname' <rolenm> -p <password>
107
181
# role = guest/student/tutor/lecturer/admin
108
182
 
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
113
195
 
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
117
199
 
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.
121
 
 
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
124
205
 
125
206
# Restart the server
126
207
sudo apache2ctl -k restart
127
208
 
 
209
##########################################################################
 
210
# User management server: usrmgt-server
 
211
##########################################################################
 
212
# To start the user management server:
 
213
cd /opt/ivle/scripts
 
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
 
218
 
 
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
 
224
 
 
225
##########################################################################
 
226
# Setting up phpBB Forum in IVLE
 
227
##########################################################################
 
228
# This should all be run from the SVN directory
 
229
 
 
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
 
236
 
 
237
#Change to the installed IVLE directory
 
238
cd /opt/ivle
 
239
# Fix permissions for install
 
240
cd www/php/phpBB3
 
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 .
128
244
 
129
245
##########################################################################
130
246
# Installing Pound reverse proxy (optional)