Showing posts with label VNC. Show all posts
Showing posts with label VNC. Show all posts
Using VNC over SSH
Okay, now I need to connect to this Linux box in the department which is running Matlab and access it on the wire.
Options:
1. SSH + X11 forwarding [slow]
In order to have SSH forward X11 by default change the following in
With this you can now use
2. VNC without SSH. [fast]
3. VNC tunneling over SSH [faster]
Ensure that
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
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.
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@hostname2. VNC without SSH. [fast]
% vncviewer hostname:display3. VNC tunneling over SSH [faster]
% ssh -C -L 5901/localhost/5901 username@hostname
% vncviewer localhost:5901Ensure 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 vncserverNOTE:
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"
Subscribe to:
Posts (Atom)