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

« back to all changes in this revision

Viewing changes to doc/setup/install_proc.txt

Began implementing new dispatch framework (with Will Grant and Nick Chadwick).
Added package: ivle.webapp. This contains 'base', with some base class
    implementations for the new Plugins and Views, and 'admin', with 'user'
    (part of 'userservice') re-implemented for the new framework in a RESTful
    way.
dispatch: Added code to partly handle the new plugin system, then fall back to
    the old one.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
##########################################################################
20
20
# Apt packages
21
21
##########################################################################
22
 
 
23
 
sudo apt-get install subversion build-essential debootstrap             \
 
22
sudo apt-get install rsync subversion build-essential debootstrap       \
24
23
                     apache2 libapache2-mod-python libapache2-svn       \
25
24
                     python2.5-dev python-svn python-webpy python-cjson \
26
25
                     postgresql python-pygresql php5 php5-pgsql         \
27
 
                     python-docutils python-epydoc python-ldap
 
26
                     python-docutils python-epydoc python-ldap          \
 
27
                     python-storm python-psycopg2
28
28
 
29
29
##########################################################################
30
30
# Configure postgres
31
31
##########################################################################
32
32
 
33
33
# Set the postgres user's postgres password
34
 
sudo -u postgres psql template1
35
34
# At the prompt type (substituting <***password***> with a real one).
36
 
ALTER USER postgres WITH ENCRYPTED PASSWORD '<***password***>';
37
 
\q
 
35
sudo -u postgres psql -c "ALTER USER postgres WITH ENCRYPTED PASSWORD '<***password***>'"
38
36
 
39
37
##########################################################################
40
38
# Installing ivle
49
47
# (only need the first line if it was previously created and is now changed)
50
48
sudo -u postgres dropdb ivle
51
49
sudo -u postgres createdb ivle
 
50
sudo -u postgres createlang plpgsql ivle
52
51
sudo -u postgres psql -d ivle < userdb/users.sql
53
52
 
54
53
# Set up IVLE
55
 
./setup.py listmake
56
54
./setup.py config
57
55
 
58
 
# "Root directory" - type "/" or "/ivle" (without the quotes)
59
 
# "UID of web server process" - 1000 at this stage (informatics)
60
 
# Leave others default.
61
 
# Note: This will cause IVLE to get installed to /opt/ivle
62
 
 
63
 
sudo ./setup.py build
 
56
# -j is required to rebuild all jails, not just do an update
 
57
sudo ./setup.py build -j
64
58
sudo ./setup.py install
65
59
 
66
 
# Make the directory containing the svn auth.
67
 
# Make sure it is owned by www-data.
68
 
sudo mkdir /opt/ivle/svn
69
 
sudo chown -R www-data:www-data /opt/ivle/svn
70
 
 
71
 
# Make the "repositories" and "sessions" directories in the home.
72
 
# Make sure they are owned by www-data.
73
 
cd /home/informatics
74
 
sudo mkdir repositories sessions
75
 
sudo chown -R www-data:www-data repositories sessions
76
 
 
77
60
# Create a user
78
 
sudo ./makeuser.py [OPTIONS] <login> 'Firstname Lastname' <rolenm> -p <password>
 
61
sudo ivle-makeuser [OPTIONS] <login> 'Firstname Lastname' <rolenm> -p <password>
79
62
# role = guest/student/tutor/lecturer/admin
80
63
 
81
64
# Configure the Apache HTTP server
89
72
#   (svn.localhost). You must change this to the domain for svn access.
90
73
# * Change all paths beginning with /opt/ivle or /home/informatics to the
91
74
#   locations you have installed things in.
92
 
vim /etc/apache2/sites-available/ivle
 
75
# * Update all of the paths to where you installed IVLE, if required.
 
76
sudo vim /etc/apache2/sites-available/ivle
93
77
 
94
78
# Replace the default with the IVLE site.
95
79
sudo a2dissite default
101
85
# Make sure the 3 domains given in Apache conf all lookup to your server.
102
86
# (By default these are localhost, public.localhost and svn.localhost).
103
87
# For testing purposes, this can be done by editing /etc/hosts, for example:
104
 
127.0.0.1       svn.localhost public.localhost
 
88
# 127.0.0.1     svn.localhost public.localhost
 
89
sudo vim /etc/hosts
105
90
 
106
91
##########################################################################
107
92
# User management server: usrmgt-server
108
93
##########################################################################
109
 
# To start the user management server:
110
 
cd /opt/ivle/scripts
111
 
sudo ./usrmgt-server <port> <usrmgt-password>
112
 
# usrmgt-password is the password entered in setup.py config (usrmgt_magic)
113
 
# Note that the port number and usrmgt password are recorded in
114
 
# the automatically created init.d script: doc/setup/usrmgt-server.init
115
94
 
116
 
# To run it at boot time:
117
95
sudo cp doc/setup/usrmgt-server.init /etc/init.d/usrmgt-server
118
96
sudo chown root:root /etc/init.d/usrmgt-server
119
 
sudo chmod 700 /etc/init.d/usrmgt-server  # so world can't read database magic
 
97
sudo chmod +x /etc/init.d/usrmgt-server
 
98
 
 
99
# To start it now:
 
100
sudo /etc/init.d/usrmgt-server start
 
101
 
 
102
# To run it at boot time:
120
103
sudo update-rc.d usrmgt-server defaults 99  # create symlinks in /etc/rc*.d
121
104
 
122
105
##########################################################################
130
113
sudo -u postgres createdb ivle_forum
131
114
sudo -u postgres psql -d ivle_forum < userdb/forum_schema.sql
132
115
sudo -u postgres psql -d ivle_forum < userdb/forum_data.sql
133
 
 
134
 
#Change to the installed IVLE directory
135
 
cd /opt/ivle
136
 
# Fix permissions for install
137
 
cd www/php/phpBB3
138
 
# At very minimum you apache user must be able to write to
139
 
# cache/ files/ store/ images/avatars/upload config.php
140
 
sudo chown -R www-data:www-data .
141
 
 
142
 
##########################################################################
143
 
# Installing Pound reverse proxy (optional)
144
 
##########################################################################
145
 
 
146
 
sudo apt-get install pound
147
 
 
148
 
# edit /etc/default/pound so that the line reading
149
 
#     startup=0
150
 
# instead reads
151
 
#     startup=1
152
 
#
153
 
# copy pound.cfg to /etc/pound/pound.cfg
154
 
# edit IP addresses in pound.cfg