1 How to set up the evaluator:
2 ----------------------------
4 Edit `config', especially MO_ROOT, EVAL_USER, EVAL_GROUP, TEST_USERS, CT_UID_MIN and CT_UID_MAX.
6 Create $MO_ROOT (here we assume it's /aux/mo)
8 Create the evaluation users (outside $CT_UID_MIN .. $CT_UID_MAX):
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
14 Create the evaluation group:
18 Create the contestant users (inside $CT_UID_MIN .. $CT_UID_MAX; as many as you wish;
19 the names don't matter):
21 mo00:x:65100:65100:MO Contestant 00:/aux/mo/users/mo00/mo00:/bin/bash
23 mo99:x:65199:65199:MO Contestant 99:/aux/mo/users/mo99/mo99:/bin/bash
25 ... and their groups (preferably with the same ID's):
31 ... and their passwords ...
33 Run bin/mo-install to create the infrastructure.
35 Run bin/mo-create-contestants to create contestants' home directories,
36 files from template/* will be copied there automatically.
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:
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
52 - if you want to assign partial score to testcases, just make the OUTPUT_CHECK
53 program generate a file $TDIR/$TEST.pts containing the score.