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

« back to all changes in this revision

Viewing changes to doc/setup/install_proc.txt

  • Committer: wagrant
  • Date: 2008-08-09 04:33:07 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:995
common.db: Add get_enrolment_groups. Will return group information for
           the given user in the given offering.
userservice: Return group information with the rest of the enrolment
             data.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
##########################################################################
20
20
# Apt packages
21
21
##########################################################################
22
 
sudo apt-get install rsync subversion build-essential debootstrap       \
 
22
sudo apt-get install subversion build-essential debootstrap             \
23
23
                     apache2 libapache2-mod-python libapache2-svn       \
24
24
                     python2.5-dev python-svn python-webpy python-cjson \
25
25
                     postgresql python-pygresql php5 php5-pgsql         \
30
30
##########################################################################
31
31
 
32
32
# Set the postgres user's postgres password
 
33
sudo -u postgres psql template1
33
34
# At the prompt type (substituting <***password***> with a real one).
34
 
sudo -u postgres psql -c "ALTER USER postgres WITH ENCRYPTED PASSWORD '<***password***>'"
 
35
ALTER USER postgres WITH ENCRYPTED PASSWORD '<***password***>';
 
36
\q
35
37
 
36
38
##########################################################################
37
39
# Installing ivle
50
52
sudo -u postgres psql -d ivle < userdb/users.sql
51
53
 
52
54
# Set up IVLE
 
55
./setup.py listmake
53
56
./setup.py config
54
57
 
55
 
# -j is required to rebuild all jails, not just do an update
56
 
sudo ./setup.py build -j
 
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
57
64
sudo ./setup.py install
58
65
 
 
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", "sessions" and "logs" directories in the home.
 
72
# Make sure they are owned by www-data.
 
73
cd /home/informatics
 
74
sudo mkdir -p repositories/users repositories/groups sessions logs
 
75
sudo chown -R www-data:www-data repositories sessions logs
 
76
 
 
77
cd /home/informatics/ivle_svn
 
78
 
59
79
# Create a user
60
 
sudo ivle-makeuser [OPTIONS] <login> 'Firstname Lastname' <rolenm> -p <password>
 
80
sudo ./makeuser.py [OPTIONS] <login> 'Firstname Lastname' <rolenm> -p <password>
61
81
# role = guest/student/tutor/lecturer/admin
62
82
 
63
83
# Configure the Apache HTTP server
71
91
#   (svn.localhost). You must change this to the domain for svn access.
72
92
# * Change all paths beginning with /opt/ivle or /home/informatics to the
73
93
#   locations you have installed things in.
74
 
# * Update all of the paths to where you installed IVLE, if required.
75
94
sudo vim /etc/apache2/sites-available/ivle
76
95
 
77
96
# Replace the default with the IVLE site.
90
109
##########################################################################
91
110
# User management server: usrmgt-server
92
111
##########################################################################
 
112
# To start the user management server:
 
113
cd /opt/ivle/scripts
 
114
sudo ./usrmgt-server
 
115
# usrmgt-password is the password entered in setup.py config (usrmgt_magic)
 
116
# Note that the port number and usrmgt password are recorded in
 
117
# the automatically created init.d script: doc/setup/usrmgt-server.init
93
118
 
 
119
# To run it at boot time:
94
120
sudo cp doc/setup/usrmgt-server.init /etc/init.d/usrmgt-server
95
121
sudo chown root:root /etc/init.d/usrmgt-server
96
 
sudo chmod +x /etc/init.d/usrmgt-server
97
 
 
98
 
# To start it now:
99
 
sudo /etc/init.d/usrmgt-server start
100
 
 
101
 
# To run it at boot time:
 
122
sudo chmod 700 /etc/init.d/usrmgt-server  # so world can't read database magic
102
123
sudo update-rc.d usrmgt-server defaults 99  # create symlinks in /etc/rc*.d
103
124
 
104
125
##########################################################################
112
133
sudo -u postgres createdb ivle_forum
113
134
sudo -u postgres psql -d ivle_forum < userdb/forum_schema.sql
114
135
sudo -u postgres psql -d ivle_forum < userdb/forum_data.sql
 
136
 
 
137
#Change to the installed IVLE directory
 
138
cd /opt/ivle
 
139
# Fix permissions for install
 
140
cd www/php/phpBB3
 
141
# At very minimum you apache user must be able to write to
 
142
# cache/ files/ store/ images/avatars/upload config.php
 
143
sudo chown -R www-data:www-data .
 
144
 
 
145
##########################################################################
 
146
# Installing Pound reverse proxy (optional)
 
147
##########################################################################
 
148
 
 
149
sudo apt-get install pound
 
150
 
 
151
# edit /etc/default/pound so that the line reading
 
152
#     startup=0
 
153
# instead reads
 
154
#     startup=1
 
155
#
 
156
# copy pound.cfg to /etc/pound/pound.cfg
 
157
# edit IP addresses in pound.cfg