The license is paid by the Leiden Institute of Physics (LION) and use outside the LION will be charged to other institutes on the basis of usage. So before you can obtain a license (if you are a non-lion user) please confirm expense declaration with you Institute Manager and hem him/her confirm the license request to the contact person below.
A web page listing the license usage is also available.
If you run Matlab on your laptop, you need to point it to our license server. You can either set the environment variable LM_LICENSE_FILE to point to our server and port number. On Linux or MacOS (assuming your shell is bash):
or point it to a local file which should contain:
SERVER license.strw.leidenuniv.nl any 1700 USE_SERVER
Once you have done that, licensing is set up for all software that work with the FlexLM licensing software (currently Comsol, IDL, Maple and Matlab, probably more in the near future). And, you will no longer have to change this setup when new versions of the software become available.
To reach our license server from outside the building, you will need to tunnel the connections through ssh (in this example, on ssh.lorentz.leidenuniv.nl): and then, on your laptop, point LM_LICENSE_FILE to 1700@localhost in stead of the actual server, since localhost:1700 is being forwarded to the license server. Two ports need to be tunnelled: port 1700 (the general port on which the license server listens), and the port of the vendor-daemon, in case of matlab, this is 1173).
laptop$ ssh -g -L 1700:license.strw.leidenuniv.nl:1700 -L 1173:license.strw.leidenuniv.nl:1173 firstname.lastname@example.org
This opens an ssh session on our 'ssh' server. Keep this session open! Once it is closed, the port forwarding is closed as well! Now, from another terminal window or tab, you can start matlab after pointing to the local host as license server:
laptop$ setenv LM_LICENSE_FILE 1700@localhost
laptop$ export LM_LICENSE_FILE=1700@localhost
And from that session, you can start
Alternatively, edit the file
network.lic in Matlab's installation directory to point to localhost port 1700 (advantage: no 2nd terminal window needed, and you can start matlab from the applications screen or menu (MacOS, Linux))