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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. |
| |||
| 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 |
| |||
| 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. |
| |||
| 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 |
| |||
| 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 |
| ||||
| 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 |