wiki:DevelopmentPage/SchoolDev

Reserve the cluster for a school

go on the associate cluster then

  • cd WWW/cgi-bin/Register/

then edit the file register_for_school-pl

at two places you have something like

#################################################
##   TEMP ENTRY FOR SCHOOL
#################################################
    if( $inst ne 'SCHOOL18'){
        $good=$good+16;
    }

change SCHOOL18 to something appropriate then do

cp register_for_school-pl register-pl

at the end of the school do

cp register_normal-pl register-pl

Note: All the student of the school have to register with that key as institution to get granted directly run access on the cluster

Use install XXX and import model via a local machine rather than internet

The easiest is to ask the user to do:

export MG5aMC_WWW="http://192.168.xxx.xxx:8000"

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)

On your side:

  1. create an empty directory and move into it.

  1. On that machine, (better prior to the school) you can run the script: (in attachment here)
    python download_all_tarball.py
    

(options are --no_model --no_install)

  1. Then at the school, when you have the local ip of the machine run the script (also in attachment)
    python make_www.py 192.168.xxx.xxx 
    
  2. When you want to serve the files, run the following code in that directory:
    python -m SimpleHTTPServer 8000
    
Last modified 5 years ago Last modified on Feb 13, 2019, 10:57:46 AM

Attachments (2)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.