How to export display to putty tool (7149 Views)
Reply
Super Advisor
senthil_kumar_1
Posts: 901
Registered: ‎03-02-2009
Message 1 of 8 (7,149 Views)
Accepted Solution

How to export display to putty tool

Hi

In my environment we have hpux, redhat and suse linux.

Normally we are using putty tool to connect terminal.

But i want to bring GUI (display) using putty.

For that my manager told. that we have to export display in server and we have to run xmanager in client then thru putty tool we can get GUI mode.


pls help me. how to set this.

pls explain step by step.
Respected Contributor
Sivakumar MJ._1
Posts: 415
Registered: ‎03-11-2009
Message 2 of 8 (7,149 Views)

Re: How to export display to putty tool

Senthil, Check in this link..

http://cc.jlab.org/docs/services/windows/X11/

http://fixunix.com/xwindows/91976-using-putty-exceed.html
For HP Online Case Logging-->http://support.openview.hp.com/
Honored Contributor
Alex Glennie
Posts: 4,068
Registered: ‎05-07-2000
Message 3 of 8 (7,149 Views)

Re: How to export display to putty tool

login to serverA via putty

echo $DISPLAY (most likely not set).

Login to serverA via xmanager ( I have no idea if this is running on a pc or linux server) but
check the DISPLAY variable is set to the local system in my case it would be pcname.domainname:0.0

go back to putty ....

export DISPLAY = pcname.domainname:0.0

from putty you should now be able to run say xclock and the gui will appear within xmanager app providing hostname and ip's resolve all ok.

if that fails why not ask your manager ;-)

Email : alex_glennie@hotmail.com
Esteemed Contributor
Tingli
Posts: 613
Registered: ‎08-13-2007
Message 4 of 8 (7,149 Views)

Re: How to export display to putty tool

I use Putty and Cygwin to start Xwindow. And I used to use Putty and Exceed on Demand to start Xwindow. Both of them work fine.
Honored Contributor
Matti_Kurkela
Posts: 6,271
Registered: ‎12-02-2001
Message 5 of 8 (7,149 Views)

Re: How to export display to putty tool

I assume:
- you're using some Windows OS in your workstation
- you are using PuTTY's SSH mode to connect

1.) Start xmanager

2.) Start putty, but don't open a connection yet. If you have a pre-defined session, load it but don't click "Open" yet.

3.) In Putty configuration, select Connection -> SSH -> X11 -> Enable X11 Forwarding.

4.) Now click "Open" at the bottom of the Putty configuration dialog.

5.) Log in as normal.
There may be an extra message like:

/usr/bin/X11/xauth: creating new authority file /home//.Xauthority

This is normal, if you haven't used PuTTY's X11 forwarding before. It is information only, not an error.

6.) Start GUI applications as necessary. (For testing, I usually start something simple first, like "xclock &" or "xterm &".)

Note: When you use PuTTY's "Enable X11 forwarding" function, there is no need to set and export the DISPLAY environment variable manually: PuTTY and the server's sshd daemon will do it for you. The DISPLAY environment variable may seem strange, but it works!

Note 2: In this configuration, PuTTY is only acting as a smart data transport channel for X11 GUI applications. The xmanager on your workstation draws the GUI windows and does most of the work related to them.

MK
MK
Honored Contributor
Avinash20
Posts: 1,164
Registered: ‎12-31-2006
Message 6 of 8 (7,149 Views)

Re: How to export display to putty tool

Yes.
It is possbile

Open X-manager Passive
Then open putty and connect to the server

export DISPLAY=:0.1

# xclock&
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Honored Contributor
OldSchool
Posts: 3,372
Registered: ‎09-09-2004
Message 7 of 8 (7,149 Views)

Re: How to export display to putty tool

note that in addition to the above, you need to insure that X11forwarding is enabled for PuTTY and the server you are connecting to. You also need to find out if Xoffset is used, it usually is and the dafault is 10, but you'll need to confirm that.

also, some versions of sshd use "localhost:10.0" instead of the "pcname:10.0" for DISPLAY variable.

All of this assumes you have X emulator (Exceed, Reflection X, Cygwin X or similar) on the PC. if not, you'll need them as well. Later versions of Exceed have ssh support builtin (others may as well), but the earlier versions required to login via PuTTY and then start Exceed in passive mode and manually start X. all that depends on the x emulator you have installed locally
Trusted Contributor
Trusted Contributor
UVK
Posts: 111
Registered: ‎08-17-2006
Message 8 of 8 (7,149 Views)

Re: How to export display to putty tool

May sound to be repetative of what all said above..but what we do here is, enabled X11 forwarding in ssh and we use "reflection X" tool to see GUI. Once we have this set when ever you issue commands in you putty the relevant GUI will open up in reflections.

You should be able to use the same. But you need to choose on what you want to use for GUI. It depends on your corporate standad tool.

-uvk
-------------------------------------------
Like it or worked !! Click kudos !!
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.