Options:
1. SSH + X11 forwarding [slow]
% ssh -X username@hostname
% matlab &
In order to have SSH forward X11 by default change the following in
/etc/ssh/ssh_config
and also remove the #
ForwardAgent yes (default no)
ForwardX11 yes (default is no)
StrictHostKeyChecking no (default is ask)
With this you can now use
ssh username@hostname
2. VNC without SSH. [fast]
% vncviewer hostname:display
3. VNC tunneling over SSH [faster]
% ssh -C -L 5901/localhost/5901 username@hostname
% vncviewer localhost:5901
Ensure that
vncserver
is running on the remote node and also that you have set your vncpasswd
. The "display" is the number that you get after starting the vncserver
NOTE:
If you are running compiz\beryl (any composite window manager), Matlab's pre-bundled java does not support it and hence it would not render it properly with option (1). You would have to point to the latest version of the JVM before starting matlab
% export MATLAB_JAVA=/usr/lib/java/blah-blah/jre
% matlab &
Update:
Got a local copy of Matlab and realized that it has the same problem and is solved by pointing to the latest JVM. Create a launcher that takes care of setting up the environment before the launch.
env MATLAB_JAVA="/usr/lib/jvm/java-6-sun/jre" xterm "/home/piyush/matlab-2007b/bin/matlab"
No comments:
Post a Comment