User Tools

Site Tools


general_software:matlab

This is an old revision of the document!


Matlab

License

The license is paid through the university.
A web page listing the license usage is also available.

Using licenses from your laptop

To reach our license server from outside the building, you will need to tunnel the connections through ssh (in this example, on ssh.strw.leidenuniv.nl or ssh.lorentz.leidenuniv.nl): and then, on your laptop, point LM_LICENSE_FILE to 27000@localhost in stead of the actual server, since localhost:27000 is being forwarded to the license server.

Example:

laptop$ ssh -g -L 27000:172.18.1.89:27000 yourlorentzusername@ssh.lorentz.leidenuniv.nl

or

laptop$ ssh -g -L 27000:172.18.1.89:27000 yourstrwusername@ssh.strw.leidenuniv.nl

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:

tcsh syntax:

laptop$ setenv LM_LICENSE_FILE 27000@localhost

or bash:

laptop$ export LM_LICENSE_FILE=27000@localhost

And from that session, you can start matlab.

Alternatively, edit the file network.lic in Matlab's installation directory to point to localhost port 27000 (advantage: no 2nd terminal window needed, and you can start matlab from the applications screen or menu (MacOS, Linux))

Documentation

general_software/matlab.1680692344.txt.gz · Last modified: by 127.0.0.1