Changes between Initial Version and Version 1 of DevelopmentPage/SchoolDev


Ignore:
Timestamp:
Jan 26, 2019, 9:22:39 PM (6 years ago)
Author:
Olivier Mattelaer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • DevelopmentPage/SchoolDev

    v1 v1  
     1== Reserve the cluster for a school
     2
     3go on the associate cluster then
     4- cd WWW/cgi-bin/Register/
     5then edit the file
     6register_for_school-pl
     7
     8at two places you have something like
     9
     10{{{
     11#################################################
     12##   TEMP ENTRY FOR SCHOOL
     13#################################################
     14    if( $inst ne 'SCHOOL18'){
     15        $good=$good+16;
     16    }
     17}}}
     18
     19change SCHOOL18 to something appropriate
     20then do
     21{{{
     22cp register_for_school-pl register-pl
     23}}}
     24
     25at the end of the school do
     26{{{
     27cp register_normal-pl register-pl
     28}}}
     29
     30Note: All the student of the school have to register with that key as institution to
     31get granted directly run access on the cluster
     32
     33== Use install XXX and import model via a local machine rather than internet
     34
     35The easiest is to ask the user to do:
     36{{{
     37export MG5aMC_WWW="http://192.168.xxx.xxx:8000"
     38}}}
     39where 192.168.xxx.xxx is the (local) ip of the machine which provides the webserver and 8000 the associate port (see below for the port)
     40
     41On your side:
     42
     43  1.On that machine, (better prior to the school) you can run the script: (in attachment here)
     44{{{
     45python download_all_tarball.py
     46}}}
     47(options are --no_model --no_install)
     48
     49  2. Then at the school, when you have the local ip of the machine run the script (also in attachment)
     50{{{
     51python setup_www 192.168.xxx.xxx
     52}}}
     53  3. When you want to serve the file, run the following code in that directory:
     54{{{
     55python -m SimpleHTTPServer 8000
     56}}}
     57