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

ε祈祈猫儿з 提交于 2019-12-03 08:37:11

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!

SSH with X-window forwarding will do the trick. It will get you the MATLAB screen you know and love but will be running everything on the remote computer. To do this, in a terminal with SSH (I like MobaXterm, though you can use Putty) you ssh via

ssh server.location.here -X

This will get you the terminal on the computer (after typing in a password), and in the terminal just type

matlab

and a MATLAB screen will show up. Note that opengl will be disabled, so your plots might not plot as fast, though you can still use gpu algorithms (i.e. cuda. Note you may need to run the command "COMPUTE=:0" before opening matlab if gpuDevice turns up empty for MATLAB's cuda).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!