~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 11:38:50 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:788
fileservice_lib: Fixed and made consistent the error message if a file already
    exists, across all actions. (Previously 3 different messages).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Installation Procedure for IVLE
2
2
# ===============================
3
3
 
4
 
# Target Platform: Ubuntu 8.04
 
4
# Target Platform: Ubuntu 7.10
5
5
#
6
6
# IMPORTANT: This is NOT a shell script. It has interactive sections and
7
7
# things that need to be customized.
10
10
 
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.
15
15
#
16
16
# Author: Matt Giuca
17
17
# Date: 29/1/2008
18
18
 
 
19
sudo vim /etc/apt/sources.list
 
20
 
 
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:...)
 
25
 
 
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
 
30
# :wq
 
31
 
19
32
##########################################################################
20
33
# Apt packages
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
 
35
 
 
36
sudo apt-get update
 
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
 
44
 
 
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.
 
50
 
 
51
##########################################################################
 
52
# Python packages needed by IVLE or student code
 
53
##########################################################################
 
54
#
 
55
# See trunk/doc/dependencies.txt
 
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
 
 
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
 
63
 
 
64
cd python-cjson-1.0.5
 
65
./setup.py build
 
66
sudo ./setup.py install
 
67
cd ..
 
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
27
125
 
28
126
##########################################################################
29
127
# Configure postgres
30
128
##########################################################################
 
129
#
 
130
# Some of these instructions follow
 
131
#     https://help.ubuntu.com/community/PostgreSQL
 
132
# 1. install the base packages
31
133
 
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***>';
36
138
\q
37
139
 
41
143
#
42
144
# Check out the IVLE trunk
43
145
 
44
 
svn co https://ivle.svn.sourceforge.net/svnroot/ivle/trunk ivle_svn
45
 
cd ivle_svn
 
146
export IVLE_SVN=ivle_svn
 
147
svn co https://ivle.svn.sourceforge.net/svnroot/ivle/trunk $IVLE_SVN
 
148
cd $IVLE_SVN
46
149
 
47
150
# Create a postgres database
48
151
# (only need the first line if it was previously created and is now changed)
59
162
# Leave others default.
60
163
# Note: This will cause IVLE to get installed to /opt/ivle
61
164
 
62
 
sudo ./setup.py build
 
165
./setup.py build
63
166
sudo ./setup.py install
64
167
 
65
168
# Make the directory containing the svn auth.
73
176
sudo mkdir repositories sessions
74
177
sudo chown -R www-data:www-data repositories sessions
75
178
 
76
 
cd /home/informatics/ivle_svn
77
 
 
78
179
# Create a user
79
180
sudo ./makeuser.py [OPTIONS] <login> 'Firstname Lastname' <rolenm> -p <password>
80
181
# role = guest/student/tutor/lecturer/admin
81
182
 
82
183
# Configure the Apache HTTP server
83
 
sudo cp doc/setup/ivle-both.conf /etc/apache2/sites-available/ivle
 
184
sudo cp doc/setup/ivle-both.conf /etc/apache2/sites-available/ivle.conf
84
185
# MODIFY the first few lines so it is specific to your server.
85
186
# * Change ServerAdmin and ServerName (for error reporting).
86
187
# * Inside the first VirtualHost block, there are two ServerNames
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
94
 
 
95
 
# Replace the default with the IVLE site.
96
 
sudo a2dissite default
97
 
sudo a2ensite ivle
98
 
 
99
 
# Restart Apache.
100
 
sudo /etc/init.d/apache2 restart
 
194
vim /etc/apache2/sites-available/ivle.conf
 
195
 
 
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
101
199
 
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
106
 
sudo vim /etc/hosts
 
203
127.0.0.1       public.localhost
 
204
127.0.0.1       svn.localhost
 
205
 
 
206
# Restart the server
 
207
sudo apache2ctl -k restart
107
208
 
108
209
##########################################################################
109
210
# User management server: usrmgt-server
116
217
# the automatically created init.d script: doc/setup/usrmgt-server.init
117
218
 
118
219
# To run it at boot time:
119
 
sudo cp doc/setup/usrmgt-server.init /etc/init.d/usrmgt-server
 
220
sudo cp doc/setup/usrmgt-server.init /etc/init.d
120
221
sudo chown root:root /etc/init.d/usrmgt-server
121
222
sudo chmod 700 /etc/init.d/usrmgt-server  # so world can't read database magic
122
223
sudo update-rc.d usrmgt-server defaults 99  # create symlinks in /etc/rc*.d