Running matlab outside DTU through a tunnel

From ITSwiki
Jump to: navigation, search

NOTE: It is recommendable to run matlab outside DTU using a OpenVPN connection. No extra startup options for matlab is needed with the OpenVPN solution.


It is possible to run matlab on a notebook when not connected to the DTU wired network. However, one needs a special setup in order to reach the license server:

Windows

Use the ssh tunnel script.

Mac

<MISSING> (but it's quite similar to linux)

Linux

First open a windows with a shell and open connection to DTU Compute using the following command.

ssh -L 1711:license1.cc.dtu.dk:1711 -L 1712:license1.cc.dtu.dk:1712  username@thinlinc.imm.dtu.dk

where username is your logon name on DTU Compute UNIX systems. Leave this connection iconized.

In another command line window start matlab with the following command:

matlab -c 1711@localhost &