1835569 Members
2775 Online
110078 Solutions
New Discussion

Re: Xwindow problem

 
SOLVED
Go to solution
so_2
Regular Advisor

Xwindow problem

Hi Gurus

I am facing a problem in running SAM in xwindow.I Am using Xmanager2.0 to bring the xwindow to lcal machine. Please find the attached document for the error i am getting.

I am connecting a server hp9xxxx first.
From there i am telneting to hp7xxxx server.

The ip address of my local machine is 9.184.42.224.

Please help me as i have to use sam in xwindow urgently.

thanks in advance.
s.o
13 REPLIES 13
Muthukumar_5
Honored Contributor
Solution

Re: Xwindow problem

You have exported DISPLAY variable in normal user mode as,

$ env | grep DIS
DISPLAY=9.184.42.224:0.0
$ su
Password:

Try to set in root session as,
# export DISPLAY=9.184.42.224:0.0
# echo ${DISPLAY}

has to show the setting.


# sam &


Meantime, you have to start xwindow client session. It will work.

--
Muthu


Easy to suggest when don't know about the problem!
so_2
Regular Advisor

Re: Xwindow problem

please find the error messge
Arunvijai_4
Honored Contributor

Re: Xwindow problem

HI,

Why dont you directly start a X window to hp7xx ?? Anyways, you can easily export your display IP in hp7xxx as

# export DISPLAY=:0.0

Now, start sam again. It should work.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: Xwindow problem

/usr/bin/X11/xhost: unable to open display "9.184.42.224:0.0"

hm.. Problem is with connectivity. Do this,

# ping 9.184.42.224
# nslookup 9.184.42.224

From 9.184.42.224 machine to hp-ux machine,

# ping hp-ux machine

IS it working?

Can you show this,

# who -u

Are you able to see the ip-address of 9.184.42.224 there?

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: Xwindow problem

Hi,

Are you able to ping to your local pc from hp7xxx??? That should be a problem.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
so_2
Regular Advisor

Re: Xwindow problem

Hi Muthu

Thanks for your immediate reply. Let me explain once more how am i trying.

I am using putty ssh to connect to the hp9xxxx server. I am enabling the "X11 forwarding" in the putty. I am creating an environment by running Xmanager passive.

As you said i set the DISPLAY variable in root. But how can i start the client session after running sam.

thanks.
s.o
so_2
Regular Advisor

Re: Xwindow problem

Hi Muthu/Arun

I am not able to ping from local machine to server.

From server please find the o/p of the commands you specified.

# ping 9.184.42.224
PING 9.184.42.224: 64 byte packets

----9.184.42.224 PING Statistics----
5 packets transmitted, 0 packets received, 100% packet loss
# nslookup 9.184.42.224
Name Server: bcmd10dc01.int.bcm-ltd.co.uk
Address: 28.1.254.31

Trying DNS
looking up FILES
*** No hostname information is available for "9.184.42.224"
# who -u
root console Jan 17 14:00 old 2179
in867566 ttyp1 Feb 24 08:48 . 27363 10.214.2.84
in228614 ttyp2 Feb 24 08:11 . 26565 10.219.106.26
in867566 ttyp3 Feb 24 08:28 . 26972 hp9w1608
in228614 ttyp4 Feb 24 09:02 . 28878 10.219.106.26
#
Anything can be guessed from this? How can i go ahead?

Thanks
s.o
so_2
Regular Advisor

Re: Xwindow problem


Hi Arun

tried exporting DISPLAY as you said. still the same error is coming.

# export DISPLAY=10.214.2.84:0.0
# echo $DISPLAY
10.214.2.84:0.0
# sam

The DISPLAY environment variable is set to "10.214.2.84:0.0", but
the current configuration won't allow sam to run on that display.

The DISPLAY environment variable may be incorrect, or, if you are
running sam remotely, you may need to allow the remote system
to access your local X server by typing

/usr/bin/X11/xhost +hp7d104

on your local machine.

Do you want to proceed using the terminal version of sam?
(yes or no) [yes]


Thanks
s.o

Muthukumar_5
Honored Contributor

Re: Xwindow problem

# ping 9.184.42.224
PING 9.184.42.224: 64 byte packets

----9.184.42.224 PING Statistics----
5 packets transmitted, 0 packets received, 100% packet loss
# nslookup 9.184.42.224
Name Server: bcmd10dc01.int.bcm-ltd.co.uk
Address: 28.1.254.31

Trying DNS
looking up FILES
*** No hostname information is available for "9.184.42.224"
# who -u
root console Jan 17 14:00 old 2179
in867566 ttyp1 Feb 24 08:48 . 27363 10.214.2.84
in228614 ttyp2 Feb 24 08:11 . 26565 10.219.106.26
in867566 ttyp3 Feb 24 08:28 . 26972 hp9w1608
in228614 ttyp4 Feb 24 09:02 . 28878 10.219.106.26
#

>>

what is your IP-Address in who -u output? If you are login from your machine. What is the ip-address of your client machine in this?

--
Muthu
Easy to suggest when don't know about the problem!
so_2
Regular Advisor

Re: Xwindow problem

Hi muthu


My pc ip address is 9.184.42.224.
From this machine i am connecting to 10.214.2.84(hp9xxxx). From there i am telneting to hp7xxxxx.(ip address 28.1.254.25).The who -u is not showing my pc ip. but it is showing my hp9xxxx ip.
in867566 ttyp1 Feb 24 08:48 . 27363 10.214.2.84

Thanks
s.o
Muthukumar_5
Honored Contributor

Re: Xwindow problem

Yep. I guessed it.

Then you can get sam view on your first machine 9.184.* You can get sam view in step-up machine. If you want to have the view then you have to setup routing table to the machine directly. So that you can get it.

May be you can login with step-up machine with GUI based from there get the GUI of real machine. That is possible.

--
Muthu
Easy to suggest when don't know about the problem!
so_2
Regular Advisor

Re: Xwindow problem

Hi Muthu

thanks for your reply. But I cant understand it. Could you please tell me the step by step procedure.

Thanks
s.o
Arunvijai_4
Honored Contributor

Re: Xwindow problem

Hi S.O,

The logic is simple,

1) Xmanager from PC 9.184.42.224

2) From, hp9xxxx open a telnet window to hp7xxxx

3) in hp7xxxx, do this,

# export DISPLAY=hp9xxxx:0.0

4) Execute "sam" in hp7xxxx

5) You will get a xwindow in hp9xxx

6) See the window from XManager in PC..

Hope this is clear.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"