Thursday, May 30, 2013

X11 Forwarding in UBUNTU/ debian

Most Linux Servers are hosted under datacenters. Console SSH access are too dull in aiding USER INTERACTION. GUI can be accessed via SSH + X11 Forwarding. Below are the steps to achieve the same.

1. Download Xming Server for Windows @ http://sourceforge.net/projects/xming/
2. Install Xming Server. Launch Xlaunch and Select MultiWindow option and Display port as 0
3. Launch Putty. Make sure to close all the older putty sessions and relaunch it. Under SSH section -> X11 forwarding Enable it. Display Location as localhost:0
4. Save the session after specifying ServerIP and other details.
5. Login into the Server via SSH from PUTTY.
6. Check if the DISPLAY is set. Don't care about the value for the $DISPLAY variable.
$ echo $DISPLAY
localhost:10.0
7. Install X11 packages under UBUNTU/debian.
$sudo apt-get install xorg
7. Test it. Now you should see a clock window in you windows box. 
$ xclock



No comments:

Post a Comment