]> mj.ucw.cz Git - eval.git/blob - README
Added backup tools from MO 2002/3.
[eval.git] / README
1 How to set up the evaluator:
2 ----------------------------
3
4 Edit `config', especially MO_ROOT, EVAL_USER, EVAL_GROUP, TEST_USERS, CT_UID_MIN and CT_UID_MAX.
5
6 Create $MO_ROOT  (here we assume it's /aux/mo)
7
8 Create the evaluation users (outside $CT_UID_MIN .. $CT_UID_MAX):
9
10         mo-eval:x:65000:65000:MO Evaluator:/aux/mo/eval/mo-eval:/bin/bash
11         mo-test1:x:65001:65000:MO Tester 1:/aux/mo/eval/mo-test1:/bin/bash
12         mo-test2:x:65002:65000:MO Tester 2:/aux/mo/eval/mo-test2:/bin/bash
13
14 Create the evaluation group:
15
16         mo-eval:x:65000:
17
18 Create the contestant users (inside $CT_UID_MIN .. $CT_UID_MAX; as many as you wish;
19 the names don't matter):
20
21         mo00:x:65100:65100:MO Contestant 00:/aux/mo/users/mo00/mo00:/bin/bash
22         ...
23         mo99:x:65199:65199:MO Contestant 99:/aux/mo/users/mo99/mo99:/bin/bash
24
25 ... and their groups (preferably with the same ID's):
26
27         mo00:x:65100:
28         ...
29         mo99:x:65199:
30
31 ... and their passwords ...
32
33 Run bin/mo-install to create the infrastructure.
34
35 Run bin/mo-create-contestants to create contestants' home directories,
36 files from template/* will be copied there automatically.
37
38 If users are logging in remotely, set quotas and other limits for them.
39 Don't use limits.conf for that since with sshd the limits would affect _root_
40 (probably bug in interface between sshd and PAM). Just add to /etc/profile:
41
42         if [ $UID -ge 65100 -a $UID -le 65199 ] ; then
43                 ulimit -Sc 8192         # core file size
44                 ulimit -SHu 32          # processes
45                 ulimit -SHn 256         # max open files
46                 ulimit -SHv 262144      # max virtual memory
47         fi