Is it possible to run matlab on a remote server and control it using the matlab GUI from a thinclient?

PoorLuzer picture PoorLuzer · Oct 28, 2011 · Viewed 16.4k times · Source

Akin to what can be done with emacs with slime: the core services can run on a performace grade remote computer while I can edit and run code from emacs gui on an netbook.

  • Me and my colleagues often need to do some demos using machine learning scripts running in matlab

  • This requires us to carry around heavy laptops.

Could we have the applications running on a remote server and access it using the same matlab gui without running the scripts locally?

Remote desktop or similar solutions are not acceptable: multiple users would like to use the same server.

This is why none of the answers here were helpful

Answer

John Colby picture John Colby · Oct 28, 2011

In my experience, the best way is with VNC. You can start a VNC server on the host machine, and then access this desktop remotely from anywhere with a VNC client. You can disconnect and reconnect at another time, and your desktop will still be there. Also, multiple users can all have different sessions going, or can access the same one. If you don't want each session to run a full blown desktop, you can configure it to be minimal. For security, it is recommended to use an SSH tunnel or similar.

The exact programs will vary based on your setup, but the things to google are bolded, above.

My setup is:

  • VNC server: vnc4server on a Ubuntu linux host.
  • VNC client: Chicken of the VNC for mac.
  • SSH tunnel: SSH Tunnel Manager for mac (although this can be done at the command line too).

Good luck!

EDIT: Here is a screenshot of a vncserver session I just started up on our cluster, with matlab running in it. I'm accessing it through the vnc client on my mac. Works great!

enter image description here