Strange xhost behavior- Please help!!
Harold L Hunt II
huntharo@msu.edu
Mon Nov 4 11:07:00 GMT 2002
Jozsef,
Use /usr/X11R6/bin/startxwin.bat to start Cygwin/XFree86. Then go to
your bash terminal and run these commands:
cd /usr/X11R6/bin
export DISPLAY=127.0.0.1:0.0
xterm
See if that works. Part of your problem could be starting XWin.exe from
a bash prompt... which I never do, though other users swear by it.
Harold
Kercso Jozsef wrote:
> Hi!
>
> I have the following problem:
> - I have started a bash consol window as usual with "cygwin.bat"
> $> XWin.exe &
> $> export DISPLAY=127.0.0.1:0.0
> $> xhost +
>
> Then from another host:
> [einstein]$ export DISPLAY=127.0.0.1:0.0
> [einstein]$ xterm &
> Xlib: connection to "127.0.01:0.0" refused by server
> Xlib: No protocol specified
>
> Then at the original host:
> $> xterm &
> # The window was accepted and displayed
>
> Second try from einstein:
> [einstein]$ xterm &
> Xlib: connection to "127.0.01:0.0" refused by server
> Xlib: No protocol specified
>
> Then at the original host:
> $> xhost +
>
>
> Third try from einstein:
> [einstein]$ xterm &
> # The window was accepted and displayed
>
> So, the X server first needs an xterm from the original host, only
> after that will accept connection from another hosts. I have found, that
> the second "xhost +" works from the in the X server previously
> displayed xterm too.
>
> Why is this so? Why the first "xhost +" does not work?
> Can anybody help me? (I have the latest X server:4.2.0-1).
>
> Thanks,
> Jozsef Kercso
>
More information about the Cygwin-xfree
mailing list