Unix Technical Forum

Newbie question: problems setting DISPLAY to X server

This is a discussion on Newbie question: problems setting DISPLAY to X server within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hi, On my local machine (llamas.hi.inet: Linux FC3): [jdiaz@llamas ~]$ xhost + access control disabled, clients can connect from ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 07:27 AM
jose_luis_fdez_diaz_news@yahoo.es
 
Posts: n/a
Default Newbie question: problems setting DISPLAY to X server



Hi,

On my local machine (llamas.hi.inet: Linux FC3):

[jdiaz@llamas ~]$ xhost +
access control disabled, clients can connect from any host
[jdiaz@llamas ~]$

On the remote machine:

opmxopge@sgbe2 : po_co_ordcorba.ss > export DISPLAY=llamas.hi.inet:0.0
opmxopge@sgbe2 : po_co_ordcorba.ss > xclock
Error: Can't open display: llamas.hi.inet:0.0
opmxopge@sgbe2 : po_co_ordcorba.ss > ping -s llamas.hi.inet
PING llamas.hi.inet: 56 data bytes
64 bytes from llamas.hi.inet (10.95.27.186): icmp_seq=0. time=0. ms
64 bytes from llamas.hi.inet (10.95.27.186): icmp_seq=1. time=1. ms
^C
----llamas.hi.inet PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/1
opmxopge@sgbe2 : po_co_ordcorba.ss >

Any hint ?

Thanks in advance,
Jose Luis.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 07:27 AM
Laurenz Albe
 
Posts: n/a
Default Re: Newbie question: problems setting DISPLAY to X server

jose_luis_fdez_diaz_news@yahoo.es wrote:
> On my local machine (llamas.hi.inet: Linux FC3):
>
> [jdiaz@llamas ~]$ xhost +
> access control disabled, clients can connect from any host
> [jdiaz@llamas ~]$
>
> On the remote machine:
>
> opmxopge@sgbe2 : po_co_ordcorba.ss > export DISPLAY=llamas.hi.inet:0.0
> opmxopge@sgbe2 : po_co_ordcorba.ss > xclock
> Error: Can't open display: llamas.hi.inet:0.0
> opmxopge@sgbe2 : po_co_ordcorba.ss > ping -s llamas.hi.inet
> PING llamas.hi.inet: 56 data bytes
> 64 bytes from llamas.hi.inet (10.95.27.186): icmp_seq=0. time=0. ms


Possibilities:
- 10.95.27.186 is not the X server (naming problem).
- The X server is not listening on TCP port 6000.
try a 'telnet llamas.hi.inet 6000' and see if you get an error.
- The display is not started on :0
Try with DISPLAY=:0.0 from the X server.

Yours,
Laurenz Albe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 07:27 AM
jose_luis_fdez_diaz_news@yahoo.es
 
Posts: n/a
Default Re: Newbie question: problems setting DISPLAY to X server


Laurenz Albe wrote:
> jose_luis_fdez_diaz_news@yahoo.es wrote:
> > On my local machine (llamas.hi.inet: Linux FC3):
> >
> > [jdiaz@llamas ~]$ xhost +
> > access control disabled, clients can connect from any host
> > [jdiaz@llamas ~]$
> >
> > On the remote machine:
> >
> > opmxopge@sgbe2 : po_co_ordcorba.ss > export

DISPLAY=llamas.hi.inet:0.0
> > opmxopge@sgbe2 : po_co_ordcorba.ss > xclock
> > Error: Can't open display: llamas.hi.inet:0.0
> > opmxopge@sgbe2 : po_co_ordcorba.ss > ping -s llamas.hi.inet
> > PING llamas.hi.inet: 56 data bytes
> > 64 bytes from llamas.hi.inet (10.95.27.186): icmp_seq=0. time=0. ms

>
> Possibilities:
> - 10.95.27.186 is not the X server (naming problem).
> - The X server is not listening on TCP port 6000.
> try a 'telnet llamas.hi.inet 6000' and see if you get an error.


opmxopge@sgbe2 : bin > telnet llamas.hi.inet 6000
Trying 10.95.27.186...
telnet: Unable to connect to remote host: Connection refused
opmxopge@sgbe2 : bin >


On local it doesn't run neither:

[jdiaz@llamas etc]$ telnet localhost 6000
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused




> - The display is not started on :0
> Try with DISPLAY=:0.0 from the X server.
>
> Yours,
> Laurenz Albe



Regards,
Jose Luis.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 07:27 AM
Laurenz Albe
 
Posts: n/a
Default Re: Newbie question: problems setting DISPLAY to X server

jose_luis_fdez_diaz_news@yahoo.es wrote:
>>> Error: Can't open display: llamas.hi.inet:0.0

>
> opmxopge@sgbe2 : bin > telnet llamas.hi.inet 6000
> Trying 10.95.27.186...
> telnet: Unable to connect to remote host: Connection refused


Well, start your X server with TCP listening support.
It is probably started with '-nolisten tcp' in some xserverrc file
or similar.

Yours,
Laurenz Albe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 07:27 AM
jose_luis_fdez_diaz_news@yahoo.es
 
Posts: n/a
Default Re: Newbie question: problems setting DISPLAY to X server


That was the problem.

Best Regards,
Jose Luis.


Laurenz Albe wrote:
> jose_luis_fdez_diaz_news@yahoo.es wrote:
> >>> Error: Can't open display: llamas.hi.inet:0.0

> >
> > opmxopge@sgbe2 : bin > telnet llamas.hi.inet 6000
> > Trying 10.95.27.186...
> > telnet: Unable to connect to remote host: Connection refused

>
> Well, start your X server with TCP listening support.
> It is probably started with '-nolisten tcp' in some xserverrc file
> or similar.
>
> Yours,
> Laurenz Albe


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-18-2008, 07:27 AM
Michael Heiming
 
Posts: n/a
Default Re: Newbie question: problems setting DISPLAY to X server

In comp.os.linux.setup jose_luis_fdez_diaz_news@yahoo.es:

> [jdiaz@llamas ~]$ xhost +
> access control disabled, clients can connect from any host


This is a major security problem you are opening here, there's no
reason, simply use 'ssh' and request X11 forwarding, see 'man
ssh'. You don't need to care about $DISPLAY/xauthority, ports
blocked by some firewall and alike. Anything will be done for you
auto-magically and X11 securely tunneled from ssh, even through
multiple systems.

Good luck

[..]

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 48: bad ether in the cables
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:52 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com