X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=README;h=e8f92202a4630073e4eebfbe9e9bc3075757fd14;hb=41ef8f74a24aa9b9fa230a4aa552b7883e8da1df;hp=0320c50fae9b6090535d77cff5addba4d72a7f7e;hpb=d9bb30ebeec53cda976da857c47d11e7f72747c0;p=moe.git diff --git a/README b/README index 0320c50..e8f9220 100644 --- a/README +++ b/README @@ -1,47 +1,20 @@ -How to set up the evaluator: ----------------------------- +================================================================================ -Edit `config', especially MO_ROOT, EVAL_USER, EVAL_GROUP, TEST_USERS, CT_UID_MIN and CT_UID_MAX. + The MO Contest Environment @VERSION@ -Create $MO_ROOT (here we assume it's /aux/mo) + (c) 2001--2005 Martin Mares -Create the evaluation users (outside $CT_UID_MIN .. $CT_UID_MAX): +================================================================================ - mo-eval:x:65000:65000:MO Evaluator:/aux/mo/eval/mo-eval:/bin/bash - mo-test1:x:65001:65000:MO Tester 1:/aux/mo/eval/mo-test1:/bin/bash - mo-test2:x:65002:65000:MO Tester 2:/aux/mo/eval/mo-test2:/bin/bash -Create the evaluation group: +This is the programming contest environment used by the Czech Programming Olympiad +and some other competitions. - mo-eval:x:65000: +You will find a brief documentation in the doc/ directory inside the package (start +with doc/index.html) or on-line at http://atrey.karlin.mff.cuni.cz/~mj/mo-eval/. -Create the contestant users (inside $CT_UID_MIN .. $CT_UID_MAX; as many as you wish; -the names don't matter): +The whole package can be distributed and used under the terms of the GNU General +Public License version 2. - mo00:x:65100:65100:MO Contestant 00:/aux/mo/users/mo00/mo00:/bin/bash - ... - mo99:x:65199:65199:MO Contestant 99:/aux/mo/users/mo99/mo99:/bin/bash - -... and their groups (preferably with the same ID's): - - mo00:x:65100: - ... - mo99:x:65199: - -... and their passwords ... - -Run bin/mo-install to create the infrastructure. - -Run bin/mo-create-contestants to create contestants' home directories, -files from template/* will be copied there automatically. - -If users are logging in remotely, set quotas and other limits for them. -Don't use limits.conf for that since with sshd the limits would affect _root_ -(probably bug in interface between sshd and PAM). Just add to /etc/profile: - - if [ $UID -ge 65100 -a $UID -le 65199 ] ; then - ulimit -Sc 8192 # core file size - ulimit -SHu 32 # processes - ulimit -SHn 256 # max open files - ulimit -SHv 262144 # max virtual memory - fi +If you have any suggestions, bug reports or improvements you would like to share +with others, please send them to mj@ucw.cz.