Mailinglist Archive: opensuse (4288 mails)

< Previous Next >
Re: [SLE] Using cygwin/Xfree-86 to access Suse
  • From: Mike Grau <m.grau@xxxxxxxxxxxxxxx>
  • Date: Tue, 28 May 2002 13:45:44 -0500
  • Message-id: <3CF3D058.7FC1BCF@xxxxxxxxxxxxxxx>
My DISPLAY is set in my .bashrc:

#
# try to set DISPLAY smart (from Hans) :)
#
if test -z "$DISPLAY" -a "$TERM" = "xterm" -a -x /usr/bin/who ; then
WHOAMI="`/usr/bin/who am i`"
_DISPLAY="`expr "$WHOAMI" : '.*(\([^\.][^\.]*\).*)'`:0.0"
if [ "${_DISPLAY}" != ":0:0.0" -a "${_DISPLAY}" != " :0.0" \
-a "${_DISPLAY}" != ":0.0" ]; then
export DISPLAY="${_DISPLAY}";
fi
unset WHOAMI _DISPLAY
fi
export DISPLAY

This results in DISPLAY being set to
"whatever_host.domain.name:0"

Stuart Powell wrote:
>
> Hmmmm, I am also struggling with this.
>
> I have the line commented out in xdm-config.
>
> Running 'X -query host1' works when run from a Linux command prompt, so
> it looks like XDMCP is working alright. When I try 'Xwin -query host1'
> on the Windows side, I get the grey screen, but also a couple of error
> messages on the Linux server:
>
> Date-Time host1 kdm [6498]: server open failed for 0.0.0.0:0, giving
> up
> Date-Time host1 kdm [637]: Display 0.0.0.0:0 cannot be opened
>
> This seems to give credence to the theory of setting the DISPLAY
> variable, but at what point should it be set for the Xwin command to
> work ? Can it be set in one of the X11 config files on the Cygwin side
> of things ?
>
> Thanks,
> Stuart.
>

< Previous Next >
References