How do I start X-window applications in a specific server?

0

I want to start a x-window application on a server named "server1". First I start X server, then on xterm I do:

$ssh -Y server1

shell says:

The authenticity of host 'server1 (10.11.93.232)' can't be established.
RSA key fingerprint is b6:6d:fe:dd:aa:f6:64:1c:1d:6d:66:61:fb:5b:eb:e1.

Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'server1,10.11.93.232' (RSA) to the list of known hosts.
user1@server1's password: 
[user1@server1 /users/user1]

then I run a sh script to start to x-window:

[user1@server1 /opt/app/soft/test]$bin/start.sh -t
Error opening display "servert9:0.0"

How can I start this application on server1? I think it directs the x-window application to servert9. I think I have to forward X, could you please help?

Best Regards

alwbtc

Posted 2011-10-11T16:58:22.617

Reputation: 2 367

Answers

0

I found the solution:

$export DISPLAY='my_pc_ip_address:0.0'

$cd bin

$./start.sh -t

alwbtc

Posted 2011-10-11T16:58:22.617

Reputation: 2 367

1

Your X11-forwarding is fine. The problem is that your bin/start.sh script has a line somewhere that explicitly connects to servert9:0.0, ignoring any currently set $DISPLAY value.

Edit the script to honor whatever $DISPLAY is currently set; usually you'll need to remove all DISPLAY=... and export DISPLAY=... lines. If any programs are given the -display ... option, remove it as well.

user1686

Posted 2011-10-11T16:58:22.617

Reputation: 283 655

I don't have any lines with DISPLAY in start.sh, when I do "echo $display" on xterm it says localhost:13.0 – alwbtc – 2011-10-11T18:02:42.080

@alwbtc: It's echo $DISPLAY in uppercase, and of course it will show the correct value on xterm -- it's only being overriden by this particular program you try to start. – user1686 – 2011-10-11T18:54:23.523

But start.sh does not have a DISPLAY line, – alwbtc – 2011-10-11T19:03:03.930

@alwbtc, then grep the entire program directory for DISPLAY, -display, or servert9, until you find anything possibly related. – user1686 – 2011-10-12T16:02:22.923