| 1 | == Reserve the cluster for a school |
| 2 | |
| 3 | go on the associate cluster then |
| 4 | - cd WWW/cgi-bin/Register/ |
| 5 | then edit the file |
| 6 | register_for_school-pl |
| 7 | |
| 8 | at 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 | |
| 19 | change SCHOOL18 to something appropriate |
| 20 | then do |
| 21 | {{{ |
| 22 | cp register_for_school-pl register-pl |
| 23 | }}} |
| 24 | |
| 25 | at the end of the school do |
| 26 | {{{ |
| 27 | cp register_normal-pl register-pl |
| 28 | }}} |
| 29 | |
| 30 | Note: All the student of the school have to register with that key as institution to |
| 31 | get granted directly run access on the cluster |
| 32 | |
| 33 | == Use install XXX and import model via a local machine rather than internet |
| 34 | |
| 35 | The easiest is to ask the user to do: |
| 36 | {{{ |
| 37 | export MG5aMC_WWW="http://192.168.xxx.xxx:8000" |
| 38 | }}} |
| 39 | where 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 | |
| 41 | On your side: |
| 42 | |
| 43 | 1.On that machine, (better prior to the school) you can run the script: (in attachment here) |
| 44 | {{{ |
| 45 | python 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 | {{{ |
| 51 | python setup_www 192.168.xxx.xxx |
| 52 | }}} |
| 53 | 3. When you want to serve the file, run the following code in that directory: |
| 54 | {{{ |
| 55 | python -m SimpleHTTPServer 8000 |
| 56 | }}} |
| 57 | |