Re: xhost: cannot connect to X server [SOLVED]
Florian Kulzer wrote: Hmm, on my system that is enough to make Xorg listen to port 6000 (after I restart kdm). However, looking at /etc/init.d/kdm I get the impression that in some cases you also have to edit /var/run/kdm/kdmrc to remove ServerArgsLocal. If that does not help then I would like to see the output of pstree -aAc | grep -B2 -A2 '[X]org' Hi Sebastian, It's working now. I think it was caused by DisallowTCP=true in gdm.conf Many Thanks, Dieder. === die...@koala:$ xhost + access control disabled, clients can connect from any host die...@koala:$ ps -ef | grep [/]bin/X root 3878 3874 2 22:31 tty7 00:00:08 /usr/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth vt7 die...@koala:$ pstree -aAc | grep -B2 -A2 '[X]org' |-gdm | `-gdm | |-Xorg :0 -audit 0 -auth /var/lib/gdm/:0.Xauth vt7 | `-startkde /usr/bin/startkde | `-kwrapper ksmserver die...@koala:$ export DISPLAY=koala:0 die...@koala:$ xterm die...@koala:$ die...@koala:$ cat /etc/gdm/gdm.conf|grep TCP DisallowTCP=false die...@koala:$ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: xhost: cannot connect to X server
On Wed, Mar 18, 2009 at 23:52:00 +0100, Dieder 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. [...] 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 [...] I booted from Lenny-KDE 3.5 from a USB-key Did some tests again, here are the results, die...@panda:~$ xhost + access control disabled, clients can connect from any host die...@panda:~$ export DISPLAY=127.0.0.1:0 die...@panda:~$ xclock Error: Can't open display: 127.0.0.1:0 die...@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: OK, we have to figure out where the -nolisten tcp comes from. die...@panda:~$ cat /etc/X11/xinit/xserverrc #!/bin/sh # $Id: xserverrc 189 2005-06-11 00:04:27Z branden $ exec /usr/bin/X11/X AFAIK, it is not even necessary to remove the -nolisten tcp here if you are starting Xorg via [xkg]dm. die...@panda:~$ cat /etc/kde3/kdm/kdmrc|grep ServerArgsLocal ServerArgsLocal= Hmm, on my system that is enough to make Xorg listen to port 6000 (after I restart kdm). However, looking at /etc/init.d/kdm I get the impression that in some cases you also have to edit /var/run/kdm/kdmrc to remove ServerArgsLocal. If that does not help then I would like to see the output of pstree -aAc | grep -B2 -A2 '[X]org' -- Regards,| http://users.icfo.es/Florian.Kulzer Florian | -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
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. [...] die...@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 tcp0 0 0.0.0.0:60000.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, die...@panda:~$ xhost + access control disabled, clients can connect from any host die...@panda:~$ export DISPLAY=127.0.0.1:0 die...@panda:~$ xclock Error: Can't open display: 127.0.0.1:0 die...@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: die...@panda:~$ cat /etc/X11/xinit/xserverrc #!/bin/sh # $Id: xserverrc 189 2005-06-11 00:04:27Z branden $ exec /usr/bin/X11/X die...@panda:~$ cat /etc/kde3/kdm/kdmrc|grep ServerArgsLocal ServerArgsLocal= die...@panda:~$ Any other idea ? Thanks, Dieder.
Re: xhost: cannot connect to X server
On Sun, Mar 15, 2009 at 10:05:20PM +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. 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 I have use ssh to run remote X apps using my 486 (32 MB ram) as a client to a bigger box many times. The issue has always been how much memory xorg needed, not the impact of ssh. Before dismissing ssh, why not try it since its trivial to set up? Doug. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
re: xhost: cannot connect to X server
On Sun, Mar 15, 2009 at 22:05:20 +0100, Dieder 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. [...] die...@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 tcp0 0 0.0.0.0:60000.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. -- Regards,| http://users.icfo.es/Florian.Kulzer Florian | -- Hi Florian, I double checked kdmrc and xserverrc, and these must be right. I have ServerArgsLocal= and -nolisten TCP removed from xserverrc. Unfortunatly I have forgotten to run your cli commands, removed KDE and installed Gnome, still not functioning ( I am going to reinstall it) But I couldn't wait I have tested the local function from 2 other pc's Etch + Gnome = OK Slackware + KDE = Ok there was no need to modify kdmrc ! The pleasant surprise: in my local-X I have not only the webrowser where I can choose a streaming, and the VLC console pops up on my local host as a child of the browser window ! So what is working: Remote: old portable Pentium II 66Mhz 96 Mb Ram Debian Lenny + JWM + sound card. Local in xterm: xhost + telnet to Remote export Dispalay Konqueror + VLC Many Thanks, I am going to try the Lenny / KDE later Dieder -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: xhost: cannot connect to X server
On Sat, Mar 14, 2009 at 23:22:32 +0100, Dieder Vervoort wrote: Hi all, I can' t make xhost to work. I searched around but couldn' t find a solution. Any idea ? [...] die...@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 IIRC, the X client (the ssh server) needs the xauth package if it does not have its own X installation. Another possibility is to use the xrsh package. -- Regards,| http://users.icfo.es/Florian.Kulzer Florian | -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: xhost: cannot connect to X server
Florian Kulzer wrote: On Sat, Mar 14, 2009 at 23:22:32 +0100, Dieder Vervoort wrote: Hi all, I can' t make xhost to work. I searched around but couldn' t find a solution. Any idea ? [...] die...@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 IIRC, the X client (the ssh server) needs the xauth package if it does not have its own X installation. Another possibility is to use the xrsh package. Florian, 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 So big question: Where is the is this filter set ? Anyone has any idea ? Thanks, Dieter
Re: xhost: cannot connect to X server
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. [...] die...@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 tcp0 0 0.0.0.0:60000.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. -- Regards,| http://users.icfo.es/Florian.Kulzer Florian | -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
xhost: cannot connect to X server
Hi all, I can' t make xhost to work. I searched around but couldn' t find a solution. Any idea ? Many thanks, Dieder === die...@koala:~$ xhost + access control disabled, clients can connect from any host die...@koala:~$ cat /etc/X11/xinit/xserverrc #!/bin/sh # $Id: xserverrc 189 2005-06-11 00:04:27Z branden $ exec /usr/bin/X11/X -nolisten TCPremoved Trying 192.168.1.11... Connected to 192.168.1.11. Escape character is '^]'. Debian GNU/Linux 4.0 Framboos login: dirk Password: Last login: Sat Mar 14 22:42:28 2009 from Framboos.local on pts/1 Linux Framboos 2.6.18-6-686 #1 SMP Tue Jun 17 21:31:27 UTC 2008 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. You have mail. die...@framboos:~$ die...@framboos:~$ export DISPLAY=192.168.1.6:0 die...@framboos:~$ firefox (firefox-bin:3588): Gtk-WARNING **: cannot open display: die...@framboos:~$ die...@framboos:~$ xterm xterm Xt error: Can't open display: 192.168.1.6:0 die...@framboos:~$ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org