Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12029 - x-windows does not allow remote connections
Summary: x-windows does not allow remote connections
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-12 11:17 UTC by Sean Walker
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Walker 2002-12-12 11:17:54 UTC
I just upgraded my system a couple of days ago with xfree 4.2.1-r2 and I can no
longer get any remote programs to display on my local machine. At the same time
there was an update to baselayout and several other packages. I have no idea
where to begin debugging this as I have NEVER had any problems with this and
have no clue where to begin. If someone can point me to where to look, I'd be
grateful.

I can set the DISPLAY environment on my machine and it tries for a few seconds
(not an immediate rejection like it was lacking the xhost entry) then says it
can not output to the display. If I set the DISPLAY to laptop:1.0 (my VNC
session) then all is well. I can also run from my VNC session and set my DISPLAY
to :0.0 and it works, just not from any remote machine. One of my machines gives
me some nice output so I have it copied below.

[walkers@www walkers]$ export DISPLAY=laptop:0.0
[walkers@www walkers]$ xeyes
_X11TransSocketINETConnect: Can't connect: errno = 111
_X11TransSocketINETConnect: Can't connect: errno = 111
_X11TransSocketINETConnect: Can't connect: errno = 111
_X11TransSocketINETConnect: Can't connect: errno = 111
_X11TransSocketINETConnect: Can't connect: errno = 111
_X11TransSocketINETConnect: Can't connect: errno = 111
Error: Can't open display: laptop:0.0

TIA,
Sean
Comment 1 SpanKY gentoo-dev 2002-12-12 12:35:46 UTC
did you try running `xhost +hostname` ? 
Comment 2 Sean Walker 2002-12-12 12:39:52 UTC
I guess I should have stated that exactly. I ran 'xhost +' as well as 'xhost
+ws' at various times. It worked until I tried to do it yesterday. I have a
program I routinely run on one of my workstations and redirect the output to my
laptop. It started failing yesterday. I had not run it in a few days so I'm not
exactly sure when it started failing, but I updated xfree in that few days.
Comment 3 SpanKY gentoo-dev 2002-12-12 14:04:26 UTC
please post relevant version of packages you have installed and the output from 
running `emerge info` 
Comment 4 Sean Walker 2002-12-12 14:20:27 UTC
Here are the packages and versions that I can think of that might have something
to do with this problem. No clue if there is anything else that can interfere here.

xfree 4.2.1-r2
baselayout 1.8.5.5
gnome 2.0.3-r1
gdm 2.4.0.12-r1


Portage 2.0.45-r3 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.20-acpi-r7 i686 AMD Athlon(tm) Processor
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg kde libg++ libwww mikmod
mmx mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib
gdbm berkdb slang readline arts svga tcltk java guile sdl gpm tcpd pam ssl perl
python esd imlib oggvorbis qt motif opengl X gtk gnome alsa cdr dvd gd ipv6
mozilla samba"
ARCH="x86"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -mcpu=athlon-4 -pipe "
CXXFLAGS="-O3 -mcpu=athlon-4 -pipe "
ACCEPT_KEYWORDS="x86 ~x86"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
MAKEOPTS="-j2"
JDK_HOME=""
JAVA_HOME="/opt/blackdown-jre-1.3.1"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-25 13:15:20 UTC
Works fine here ... does vnc need to enable forwarding or whatever ?

This is from my gateway box, via a ssh connection (no special setup except
running xhost and x11 forwarding for ssh)

---------------------
gateway root # echo $DISPLAY
nosferatu.lan:0.0
gateway root # echo $HOSTNAME
gateway.lan
gateway root # xset q
Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000000
  auto repeat delay:  500    repeat rate:  30
  auto repeating keys:  00ffffffdffffb3f
                        02c0bb7ffedfe4ff
                        ffffffffffffffff
                        ffffffffffffffff
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  0
Colors:
  default colormap:  0x20    BlackPixel:  0    WhitePixel:  65535
Font Path:
  /home/azarah/.gnome2/share/cursor-fonts,unix/:-1,/home/azarah/.gnome2/share/fonts
Bug Mode: compatibility mode is disabled
DPMS (Energy Star):
  Standby: 900    Suspend: 1200    Off: 1500
  DPMS is Enabled
  Monitor is On
Font cache:
  hi-mark (KB): 1024  low-mark (KB): 768  balance (%): 70
gateway root # 
Comment 6 Sean Walker 2002-12-26 12:33:34 UTC
I can't seem to find out any kind of problem, but it doesn't work. Know of any
way I can debug this? I have tried everything on the outside and it doesn't give
me any good info. I can not find any kind of log stating it works or doesn't on
the system itself.

It all works fine with the VNC setup, so I know it isn't something funky with my
network or any hardware (that is the only reason for mentioning it). I can not
get any response from my laptop (laptop:0.0). It is as if the port is completely
disabled. I can not find any place that could have disabled it. Is there
anything that can force X to only allow connections from the localhost (local
connections work fine)? That is what is happening and I have never had this kind
of problem with any system so I have absolutely no clue where to start debugging
it. Is there some kind of settings file for X remote security? Also, I'm using
gdm for my display manager.

Oh, my xset q is nearly identical to yours. I have more font directories and my
mouse accelleration is higher (glidepoint).
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-26 13:19:21 UTC
The xset was just to show that it connects to the X server ...

You know that gdm now by defaut do not allow remote connections ?
Dunno if that might be an issue, as I do not use gdm ...

----------------
# grep tcp /etc/X11/gdm/gdm.conf 
command=/usr/X11R6/bin/X -nolisten tcp
command=/usr/X11R6/bin/X -nolisten tcp -terminate
nosferatu root # 
Comment 8 Sean Walker 2002-12-26 20:28:42 UTC
No, I didn't know that GDM doesn't allow connections by default now. That is it.
Thanks. Works great now. I didn't see that anywhere. :) Sorry for the trouble.