|
|
error: can't open display
Hi,
I have the following problem:
Both client (hostname April) and server (hostname May) machines run Solaris 9.
1. I logged in locally to the client machine (hostname April).
2. Opened the terminal window.
2. From the same terminal window Telnet to the server machine (hostname May).
3. From the same terminal window executed the follwing commands:
$ DISPLAY=April:0.0
$ export DISPLAY
$ /usr/openwin/bin/xclock
Getting the error:
error: can't open display: April:0.0
The help is greatly appreciated.
Thanks. Mike
|
|
0
|
|
|
|
Reply
|
mikepiter
|
8/9/2004 9:22:29 PM |
|
Mike wrote:
> Hi,
> I have the following problem:
>
> Both client (hostname April) and server (hostname May) machines run Solaris 9.
>
> 1. I logged in locally to the client machine (hostname April).
> 2. Opened the terminal window.
> 2. From the same terminal window Telnet to the server machine (hostname May).
> 3. From the same terminal window executed the follwing commands:
> $ DISPLAY=April:0.0
> $ export DISPLAY
> $ /usr/openwin/bin/xclock
>
> Getting the error:
>
> error: can't open display: April:0.0
>
> The help is greatly appreciated.
>
> Thanks. Mike
The remote machine does not have permission to open a display.
type
xhost + May
prior to telnetting to May.
|
|
0
|
|
|
|
Reply
|
Another
|
8/9/2004 9:32:50 PM
|
|
Mike wrote:
> 1. I logged in locally to the client machine (hostname April).
> 2. Opened the terminal window.
> 2. From the same terminal window Telnet to the server machine (hostname May).
> 3. From the same terminal window executed the follwing commands:
> $ DISPLAY=April:0.0
> $ export DISPLAY
> $ /usr/openwin/bin/xclock
>
> Getting the error:
>
> error: can't open display: April:0.0
Insert between 2 and 2a: "xhost +May"
Better yet:
2. Open terminal window
2a. ssh -X username@May
or "ssh -X May" if username is the same
3. /usr/openwin/bin/xclock
do not set DISPLAY manually, ssh -X takes care of that.
But check first that "X11Forwarding" is enabled on the server
(May) in /etc/ssh/sshd_config. If it is disabled, edit the
file and restart sshd.
|
|
0
|
|
|
|
Reply
|
Oscar
|
8/9/2004 9:38:27 PM
|
|
Another Tom <thamilt_anda_5@snet.net> wrote:
> Mike wrote:
>> Hi,
>> I have the following problem:
>>
>> Both client (hostname April) and server (hostname May) machines run Solaris 9.
>>
>> 1. I logged in locally to the client machine (hostname April).
>> 2. Opened the terminal window.
>> 2. From the same terminal window Telnet to the server machine (hostname May).
>> 3. From the same terminal window executed the follwing commands:
>> $ DISPLAY=April:0.0
>> $ export DISPLAY
>> $ /usr/openwin/bin/xclock
>>
>> Getting the error:
>>
>> error: can't open display: April:0.0
>>
>> The help is greatly appreciated.
>>
>> Thanks. Mike
> The remote machine does not have permission to open a display.
Unlikely. If that were true I'd expect:
Xlib: connection to "April:0.0" refused by server.
The "can't open" is more fundamental. It could be a firewall blocking
6000, or the X server itself not allowing remote connections.
--
Darren Dunham ddunham@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
|
|
0
|
|
|
|
Reply
|
Darren
|
8/10/2004 5:02:35 PM
|
|
Mike <mikepiter@yahoo.com> wrote:
> 1. I logged in locally to the client machine (hostname April).
> 2. Opened the terminal window.
> 2. From the same terminal window Telnet to the server machine (hostname May).
> 3. From the same terminal window executed the follwing commands:
> $ DISPLAY=April:0.0
> $ export DISPLAY
> $ /usr/openwin/bin/xclock
>
> Getting the error:
>
> error: can't open display: April:0.0
Try and test the following in the telnet session on May:
$ /usr/sbin/traceroute April
If you get something like:
traceroute: unknown host April
then your problem is that May canot resolve this hostname.
You could set the DISPLAY variable to the IP address:
$ who am i
This should give you the IP address of April.
Then set
$ DISPLAY=xxx.yyy.zzz.ttt:0
to the IP address of April.
If that is not your problem, and - say - the traceroute command works,
see if you can get TCP connections to April:
$ telnet April 6000
If that doesn't connect, you either have a firewall or routing problem or
no X server running on April. Check with you administrators in that case.
Yours,
Laurenz Albe
|
|
0
|
|
|
|
Reply
|
Laurenz
|
8/16/2004 12:19:05 PM
|
|
|
4 Replies
943 Views
(page loaded in 0.067 seconds)
|
|
|
|
|
|
|
|
|