~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-07-07 12:01:03 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:820
lib: Added new package pulldown_subj, a collection of modules designed to
    pull student subject enrolments from the server.
    Note that the actual code to do this is not included (since that is
    specific to the organisation running IVLE) - just a pluggable interface
    and an example plugin module.
configure.py: Added new config option: subject_pulldown_modules, which allows
    you to specify which modules are plugged in here.
    (Actually that was added accidentally in a previous commit; but this
    revision fixes some comments).

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
19
19
##########################################################################
20
20
# Apt packages
21
21
##########################################################################
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
 
22
 
 
23
sudo apt-get install subversion
 
24
sudo apt-get install gcc libc6 libc6-dev make debootstrap
 
25
sudo apt-get install apache2 libapache2-mod-python libapache2-svn
 
26
sudo apt-get install python2.5-dev python-svn python-webpy
 
27
sudo apt-get install postgresql python-pygresql python-ldap
 
28
sudo apt-get install php5 php5-pgsql
 
29
sudo apt-get install python-cjson
 
30
sudo apt-get install python-docutils python-epydoc
27
31
 
28
32
##########################################################################
29
33
# Configure postgres
30
34
##########################################################################
 
35
#
 
36
# Some of these instructions follow
 
37
#     https://help.ubuntu.com/community/PostgreSQL
 
38
# 1. install the base packages
31
39
 
32
40
# Set the postgres user's postgres password
33
41
sudo -u postgres psql template1
34
 
# At the prompt type (substituting <***password***> with a real one).
 
42
# At the prompt type (substituting <***password***> with a real one.
35
43
ALTER USER postgres WITH ENCRYPTED PASSWORD '<***password***>';
36
44
\q
37
45
 
41
49
#
42
50
# Check out the IVLE trunk
43
51
 
44
 
svn co https://ivle.svn.sourceforge.net/svnroot/ivle/trunk ivle_svn
45
 
cd ivle_svn
 
52
export IVLE_SVN=ivle_svn
 
53
svn co https://ivle.svn.sourceforge.net/svnroot/ivle/trunk $IVLE_SVN
 
54
cd $IVLE_SVN
46
55
 
47
56
# Create a postgres database
48
57
# (only need the first line if it was previously created and is now changed)
59
68
# Leave others default.
60
69
# Note: This will cause IVLE to get installed to /opt/ivle
61
70
 
62
 
sudo ./setup.py build
 
71
./setup.py build
63
72
sudo ./setup.py install
64
73
 
65
74
# Make the directory containing the svn auth.
73
82
sudo mkdir repositories sessions
74
83
sudo chown -R www-data:www-data repositories sessions
75
84
 
76
 
cd /home/informatics/ivle_svn
77
 
 
78
85
# Create a user
79
86
sudo ./makeuser.py [OPTIONS] <login> 'Firstname Lastname' <rolenm> -p <password>
80
87
# role = guest/student/tutor/lecturer/admin
81
88
 
82
89
# Configure the Apache HTTP server
83
 
sudo cp doc/setup/ivle-both.conf /etc/apache2/sites-available/ivle
 
90
sudo cp doc/setup/ivle-both.conf /etc/apache2/sites-available/ivle.conf
84
91
# MODIFY the first few lines so it is specific to your server.
85
92
# * Change ServerAdmin and ServerName (for error reporting).
86
93
# * Inside the first VirtualHost block, there are two ServerNames
90
97
#   (svn.localhost). You must change this to the domain for svn access.
91
98
# * Change all paths beginning with /opt/ivle or /home/informatics to the
92
99
#   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
 
100
vim /etc/apache2/sites-available/ivle.conf
 
101
 
 
102
# Replace the existing config link with the ivle one
 
103
cd /etc/apache2/sites-enabled/
 
104
sudo ln -fs /etc/apache2/sites-available/ivle.conf 000-default
101
105
 
102
106
# Make sure the 3 domains given in Apache conf all lookup to your server.
103
107
# (By default these are localhost, public.localhost and svn.localhost).
104
108
# 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
 
109
127.0.0.1       public.localhost
 
110
127.0.0.1       svn.localhost
 
111
 
 
112
# Restart the server
 
113
sudo apache2ctl -k restart
107
114
 
108
115
##########################################################################
109
116
# User management server: usrmgt-server