1752678 Members
5602 Online
108789 Solutions
New Discussion юеВ

Re: Gui Display issue

 
Sanjeev gupta_2
Frequent Advisor

Gui Display issue

Hi,

I'm facing problem in gui dispaly using ReflectionX. I installed reflectionX on my PC and now I connect to vpn and then from Putty login to unix box , there I set display as export Display="pc ipaddress":0.0"
and then I run command to get dispaly but I got error " Warning: cannot open display
" , after looking configuration at reflectionx , I tried this:
export Display="pc ipaddress":"dispaly number"
.
This display number is there in setting at ReflectionX.

but I get same thing "" Warning: cannot open display
"


pl. suggest
11 REPLIES 11
Tingli
Esteemed Contributor

Re: Gui Display issue

Stephan.
Honored Contributor

Re: Gui Display issue

Hi,
did you check in putty in the X11 sction if "Enable X11 forwarding" is checked?

Is it enabled on the Server?
Torsten.
Acclaimed Contributor

Re: Gui Display issue

Just tried, starting reflectionX without doing anything else is enough to have Xserver running.

Then

WIN> putty -X server-ip

UX# xclock

is working.

Check the $DISPLAY setting - does it fit?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sanjeev gupta_2
Frequent Advisor

Re: Gui Display issue

no luck, still facing same error
Steven Schweda
Honored Contributor

Re: Gui Display issue

> export Display="pc ipaddress":0.0"

These are not the same:

export Display
export DISPLAY

"export DISPLAY" should have some effect.
No one cares about "Display".
Torsten.
Acclaimed Contributor

Re: Gui Display issue

With "putty -X ..." you don't need to do this - did you try this?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Mel Burslan
Honored Contributor

Re: Gui Display issue

if you are doing the ssh tunneling right, you should not have "can not open display" problem. I am not familiar with putty's -X option from the command line but if you are using putty through the GUI start-up, on the left, white background panel, with a selection tree, find the "X11" section located under "Connection --> SSH". Make sure Enable X11 forwarding is checked and MIT-Magic-Cookie-1 radio button is selected, !!NOT!! the XDM authorization (unless of course you have a strange setup)

as soon as you log in under these settings, run command :

env|grep DISPLAY

and you should see something like this:

DISPLAY=localhost:13.0


DO NOT CHANGE this, i.e., do not use anything like :

export DISPLAY=IP_Address:0.0

otherwise you will kill the tunnel operation.

If you need to su into another account, then before executing su command, list the MIT Magic cookies in existence as follows:

$ xauth list

you will see something like this:

hostname/unix:11 MIT-MAGIC-COOKIE-1 f98bce931530454d925d961c610e61c2
hostname/unix:10 MIT-MAGIC-COOKIE-1 9189eadb172c30c72d077963790a8fe5
hostname/unix:13 MIT-MAGIC-COOKIE-1 2c8943bca9b37d05b1d8242cadabd523

make sure you select the line associated with your DISPLAY number from the env|grep DISPLAY command above (match the number after :) and copy the whole line into your buffer space.

execute your su command

once you are in the new user's environment, execute:

xauth add

at this point, you should be able to run all your X11 commands.

Hope this helps
________________________________
UNIX because I majored in cryptology...
Steven Schweda
Honored Contributor

Re: Gui Display issue

> otherwise you will kill the tunnel operation.

Well, you won't be using it. On the other
hand, if it's not set up properly, then not
using it may be the easy way to go.
Sanjeev gupta_2
Frequent Advisor

Re: Gui Display issue

i tried but still getting same error.
pl. suggest something to sort it out