[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xhost: cannot connect to X server



Florian Kulzer wrote:
On Sun, Mar 15, 2009 at 22:05:20 +0100, Dirk Vervoort wrote:
  
Florian Kulzer wrote:
    
On Sat, Mar 14, 2009 at 23:22:32 +0100, Dieder Vervoort wrote:
      
I can' t make xhost to work.
I searched around but couldn' t find a solution.
        
[...]

  
dieder@koala:~$ xhost +
access control disabled, clients can connect from any host
        
If your goal is to run X applications via ssh, then I would try this:

http://www.debian.org/doc/manuals/reference/ch-tune.en.html#s-xssh
      
[...]

  
Many thanks, because the remote system is light, I do not prefer to use  
SSH ( sorry, the line telenet 192.168.1.8 was missing in the problem  
description))
When I telnet from a Slackware client to the remote host running Lenny +  
JWM-desktop it is working fine !
So the problem is client pc running Lenny + KDE + xhost +  does not  
accept  incoming  TCP + X
    
The first thing to check is if X really was started without "-nolisten
tcp":

$ ps -ef | grep "[/]bin/X "
root      9482  9480  0 22:49 tty7     00:00:01 /usr/bin/X -br :0 vt7 -auth /var/run/xauth/A:0-qdt4bc

...and if X is actually listening on port 6000:

# netstat -plant | grep 6000
tcp        0      0 0.0.0.0:6000            0.0.0.0:*               LISTEN      9482/X
tcp6       0      0 :::6000                 :::*                    LISTEN      9482/X

If that has gone wrong than you did not remove the "-nolisten tcp"
option from the relevant file; this depends on how you start X. For
example, if you use KDM to start your X session then you have to change

ServerArgsLocal=-nolisten tcp

to

ServerArgsLocal=

in /etc/kde3/kdm/kdmrc.

If you can confirm that your server is listening on port 6000 then you
probably should check if you have a local iptables rule that blocks
connections to this port.

  
Hi Florian,

I booted from  Lenny-KDE 3.5 from a USB-key

Did some tests again, here are the results,

dieder@panda:~$ xhost +
access control disabled, clients can connect from any host
dieder@panda:~$ export DISPLAY=127.0.0.1:0
dieder@panda:~$ xclock
Error: Can't open display: 127.0.0.1:0

dieder@panda:~$ ps -ef | grep "[/]bin/X "
root      3588  3585  1 21:50 tty7     00:00:45 /usr/bin/X -br -nolisten tcp :0 vt7 -auth /var/run/xauth/A:0-4dB4fg
# -nolisten ! > check config files:

dieder@panda:~$ cat /etc/X11/xinit/xserverrc
#!/bin/sh

# $Id: xserverrc 189 2005-06-11 00:04:27Z branden $

exec /usr/bin/X11/X

dieder@panda:~$ cat /etc/kde3/kdm/kdmrc|grep ServerArgsLocal
ServerArgsLocal=
dieder@panda:~$

Any other idea ?

Thanks,

Dieder.







Reply to: