A combination of Xming and putty works very well when you have to ssh to a Linux/Unix machine and open GUI based applications like gvim and tkdiff.
Download xming from here ...
http://sourceforge.net/projects/xming/
Add the IP of the remote linux machine from which you plan to open X applications to the X0.hosts file under the Xming installation directory. This file usually has localhost already added in the first line.
A sample X0.hosts file will look like this.
localhost
192.168.1.3
On the remote Linux machine add this piece of code to your .bashrc file to set the DISPLAY environment variable to the IP of the windows machine. I got this handy piece of code from here
if [ ! $DISPLAY ] ; then
if [ "$SSH_CLIENT" ] ; then
export DISPLAY=`echo $SSH_CLIENT|cut -f1 -d\ `:0.0
fi
fi
That's it! Now ssh into your remote linux machine and run the "xterm" command to verify that things are working. If all went well an xterm window should pop up on your windows machine.
Download xming from here ...
http://sourceforge.net/projects/xming/
Add the IP of the remote linux machine from which you plan to open X applications to the X0.hosts file under the Xming installation directory. This file usually has localhost already added in the first line.
A sample X0.hosts file will look like this.
192.168.1.3
On the remote Linux machine add this piece of code to your .bashrc file to set the DISPLAY environment variable to the IP of the windows machine. I got this handy piece of code from here
if [ ! $DISPLAY ] ; then
if [ "$SSH_CLIENT" ] ; then
export DISPLAY=`echo $SSH_CLIENT|cut -f1 -d\ `:0.0
fi
fi
That's it! Now ssh into your remote linux machine and run the "xterm" command to verify that things are working. If all went well an xterm window should pop up on your windows machine.