Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Tuesday, 10 December 2013

Export display using Xming / Putty.



Xming is a open source X server that runs under windows. Install the Xming server on your local machine and run the Xming server on your local machine. An icon on the task bar will show its running.
                        http://sourceforge.net/projects/xming/
1- Open putty to start ssh session. Make sure to use the X11 protocol.



2- Use your credential to reach shell.
     # cd  /etc/ssh 
     # vi sshd_config 

X11farwarding            yes
X11Display               10
X11UseLocalhost          yes

3-  To take effect, you might need to stop and start the sshd daemon as   
            # stoptsrc  -s  sshd; startsrc  -s  sshd 

4- Start and launch the Xming. The "trick" with Xming is to FIRST start it via the XLaunch (icon or command), NOT the Xming command/icon. That's because XLaunch allows you to check "No Access Control" which tells Xming to allow other IP's in. Starting Xming with the Xming command, causes the default "only allow in local host" mode.




5- Export your display to local machine. Make sure your $DISPLAY is same user you logged in from putty, if not make it same.
Check your local machine IP address using ipconfig in windows or who command in Unix server
$ export DISPLAY=localhost:10.0
In my case my local IP is

export DISPLAY=192.168.3.107:0.0
# xterm ⤶                     Try opening a graphical editor.

Note: if this does not starts, try to exit and login again through putty session.

You can try xclock, xcalc, startx

No comments:

Post a Comment