This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Xt error:can't open display;ssh not passing $DISPLAY


Several postings have suggested using secure ssh to display remote clients,
and that ssh should handle details such as passing  the $DISPLAY value. 
I'm using cygwin version 1.3.11 under Win98(v. 2).  I'm starting my server
with startxwin.sh, the first line of which is  "export
DISPLAY=127.0.0.1:0.0".  That value is there when I echo at the local shell
in X11.  My ssh_config file is set to allow X11Forwarding.  I'm using ssh
to reach a remote unix system.  I can log in but I can't display remote
clients; e.g., I type "xterm &" and get the message "xterm Xt error: cannot
open display: ".  And, the variable DISPLAY is empty on the remote system. 
Am I missing something obvious?
 
Below are  cygcheck.out, ssh_config, and startxwin.sh.
************ BEGIN cygcheck.out************
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Thu Jul 18 14:36:44 2002

Windows 98 SE Ver 4.10 Build 2222 

Path: C:\cygwin\usr\local\bin
 C:\cygwin\bin
 C:\cygwin\bin
 c:\PROGRAM FILES\PKWARE\PKZIPC\
 c:\PROGRA~1\MICROS~4\VC98\BIN
 c:\MATLAB\BIN
 c:\WINDOWS
 c:\WINDOWS
 c:\WINDOWS\COMMAND
 c:\PROGRA~1\TCL\BIN
 c:\PROGRA~1\TCLOLD\BIN

SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS

HOME = `C:\cygwin\home\Default'
MAKE_MODE = `unix'
PWD = `/'
USER = `Default'

BIBINPUT = `C:\PCTeX32'
BLASTER = `A220 I5 D1 T4 P330'
CMDLINE = `bash --login -i'
COMSPEC = `C:\WINDOWS\COMMAND.COM'
CYGWIN_ROOT = `c:\cygwin'
INCLUDE = `C:\PROGRA~1\MICROS~4\VC98\INCLUDE'
LIB = `C:\PROGRA~1\MICROS~4\VC98\LIB'
MANPATH = `:/usr/ssl/man'
OLDPWD = `/home/Default'
PROMPT = `$p$g'
PS1 = `\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
SHLVL = `1'
TEMP = `c:\windows\TEMP'
TERM = `cygwin'
TEXINPUT = `C:\PCTeX32\TEXINPUT'
TMP = `c:\windows\TEMP'
WINBOOTDIR = `C:\WINDOWS'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\Program Options

a:  fd           N/A    N/A                    
c:  hd  FAT32  19083Mb  19% CP    UN           
d:  fd           N/A    N/A                    
e:  cd           N/A    N/A                    

C:\cygwin      /          system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.              /cygdrive  user    binmode,cygdrive

Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: c:\WINDOWS\COMMAND\find.exe
Warning: C:\cygwin\bin\find.exe hides c:\WINDOWS\COMMAND\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\sh.exe

   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 4:28
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/4/25 1:28
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/4/25 1:27
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/4/25 1:29
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/4/25 1:17
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/4/25 1:27
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2002/1/9 1:03
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2002/1/9 1:03
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2002/1/9 1:03
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2002/1/9 1:03
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2002/1/9 1:03
   40k 2001/11/21 C:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre.dll" v0.0 ts=2001/11/21 17:15
   39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix.dll" v0.0 ts=2001/11/21 17:15
  106k 2002/06/12 C:\cygwin\bin\cygexpat-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-0.dll" v0.0 ts=2002/6/12 11:58
  390k 2000/12/05 C:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtcl80.dll" v0.0 ts=2000/11/25 20:39
    5k 2000/12/05 C:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
   10k 2000/12/05 C:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0 ts=2000/11/25 20:39
   81k 2000/12/05 C:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitcl30.dll" v0.0 ts=2000/11/25 20:43
   35k 2000/12/05 C:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitk30.dll" v0.0 ts=2000/11/25 20:43
  623k 2000/12/05 C:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtk80.dll" v0.0 ts=2000/11/25 20:43
   19k 2002/02/20 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2002/2/19 22:05
  119k 2002/02/09 C:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
                  "cygjpeg6b.dll" v0.0 ts=2002/2/9 0:19
   58k 2002/05/07 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2002/5/7 2:33
    6k 2002/06/24 C:\cygwin\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygcharset-1.dll" v0.0 ts=2002/6/24 14:23
  929k 2002/06/24 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2002/6/24 14:24
   23k 2002/06/24 C:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2002/6/24 0:54
  175k 2002/05/24 C:\cygwin\bin\cygpng12.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng12.dll" v0.0 ts=2002/5/23 22:22
  170k 2002/01/21 C:\cygwin\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng2.dll" v0.0 ts=2002/1/20 20:05
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 1:45
   25k 2002/05/08 C:\cygwin\bin\cygltdl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygltdl-3.dll" v0.0 ts=2002/5/8 19:46
 1248k 2002/03/17 C:\cygwin\bin\cygxml2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygxml2-2.dll" v0.0 ts=2002/3/16 22:45
   50k 2002/03/17 C:\cygwin\bin\cygexslt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygexslt-0.dll" v0.0 ts=2002/3/17 1:24
  152k 2002/03/17 C:\cygwin\bin\cygxslt-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygxslt-1.dll" v0.0 ts=2002/3/17 1:19
   15k 2002/03/17 C:\cygwin\bin\cygxsltbreakpoint-1.dll - os=4.0 img=1.0
sys=4.0
                  "cygxsltbreakpoint-1.dll" v0.0 ts=2002/3/17 1:24
  253k 2002/02/10 C:\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiff3.dll" v0.0 ts=2002/2/10 3:34
   50k 2002/03/12 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2002/3/11 23:38
  306k 2002/04/27 C:\cygwin\bin\cyghttpd.dll - os=4.0 img=1.0 sys=4.0
                  "cyghttpd.dll" v0.0 ts=2002/4/27 9:23
  621k 2002/05/17 C:\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto.dll" v0.0 ts=2002/5/17 8:24
  156k 2002/05/17 C:\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl.dll" v0.0 ts=2002/5/17 8:24
  874k 2002/06/24 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2002/6/23 22:31
    Cygwin DLL version info:
        DLL version: 1.3.11
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 53
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Sun Jun 23 22:31:15 EDT 2002
        CVS tag: cygwin-1-3-11-3
        Shared id: cygwin1S3


Cygwin Package Information
Last downloaded files to: C:\My Music
Last downloaded files from: ftp://ftp.lug.udel.edu/pub/cygwin

Package             Version             
_update-info-dir    00011-1             
apache              1.3.24-5            
ash                 20020131-1          
autoconf            2.53a-1             
autoconf-devel      2.53a-1             
autoconf-stable     2.13-4              
automake            1.6.1-1             
automake-devel      1.6.1-3             
automake-stable     1.4p5-5             
bash                2.05a-3             
binutils            20011002-1          
bison               1.35-1              
byacc               1.9-1               
bzip2               1.0.2-2             
ccache              1.9-1               
crypt               1.0-1               
ctags               5.2-1               
cvs                 1.11.0-1            
cygutils            1.1.1-1             
cygwin              1.3.11-3            
cygwin-doc          1.0-1               
dejagnu             20010117-1          
diff                1.0-1               
diffutils           2.8.1-1             
ed                  0.2-1               
enscript            1.6.3-2             
expat               1.95.3-2            
expect              20010117-1          
figlet              2.2-1               
fileutils           4.1-1               
findutils           4.1.7-4             
flex                2.5.4-2             
gawk                3.0.4-1             
gcc                 2.95.3-5            
gdb                 20010428-3          
gdbm                1.8.0-4             
gettext             0.11.2-2            
gettext-devel       0.11.2-2            
gperf               0.0                 
Xt error:can't open display;ssh not passing $DISPLAYgrep               
2.5-1               
groff               1.17.2-1            
gzip                1.3.2-1             
indent              2.2.8-1             
inetutils           1.3.2-18            
irc                 20010101-1          
jpeg                6b-7                
less                374-1               
libbz2_1            1.0.2-2             
libcharset1         1.8-2               
libiconv            1.8-2               
libiconv2           1.8-2               
libintl1            0.10.40-1           
libintl2            0.11.2-2            
libncurses5         5.2-1               
libncurses6         5.2-8               
libpng              1.2.3-1             
libpng12            1.2.3-1             
libpng2             1.0.12-1            
libpopt0            1.6.4-4             
libreadline4        4.1-2               
libreadline5        4.2a-1              
libtool             20020202a-1         
libtool-devel       20020502-2          
libtool-stable      1.4.2-2             
libxml2             2.4.17-1            
libxslt             1.0.13-1            
login               1.4-3               
m4                  0.0                 
make                3.79.1-7            
man                 1.5g-2              
mingw-runtime       2.0-2               
mktemp              1.4-1               
mod_auth_mysql      1.11-1              
mod_auth_ntsec      1.7-1               
mod_dav             1.0.3-1.3.6-1       
mod_php4            4.2.0-1             
mod_ssl             2.8.8-1.3.24-1      
more                2.11o-1             
ncftp               3.1.3-1             
ncurses             5.2-8               
newlib-man          20001118-1          
openssh             3.4p1-1             
openssl             0.9.6d-1            
openssl-devel       0.9.6d-1            
pcre                3.7-1               
perl                5.6.1-2             
pkgconfig           0.12.0-1            
popt                1.6.4-4             
postgresql          7.2.1-2             
rcs                 5.7-3               
readline            4.2a-1              
rsync               2.5.5-1             
sed                 3.02-1              
sh-utils            2.0-2               
swig                1.3.11-1            
tar                 1.13.19-1           
tcltk               20001125-1          
tcp_wrappers        7.6-1               
termcap             20020403-1          
terminfo            5.2-3               
tetex-beta          20001218-4          
texinfo             4.2-3               
texmf               20000804-2          
texmf-base          20000804-2          
texmf-extra         20000804-2          
texmf-tiny          20000804-2          
textutils           2.0.21-1            
tidy                020623-1            
tiff                3.5.7-1             
ttcp                19980512-1          
w32api              1.5-1               
which               1.5-1               
whois               4.5.17-1            
zlib                1.1.4-1             

Use -h to see help about each section
*******END cygcheck.out***********

*******BEGIN  ssh_config**************

# This is ssh client systemwide configuration file.  This file provides 
# defaults for users, and the values can be changed in per-user
configuration
# files or on the command line.
 
# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.
 
# Site-wide defaults for various options
 
# Host *
   ForwardAgent yes
   ForwardX11 yes
   UsePrivilegedPort no
#   RhostsAuthentication no
#   RhostsRSAAuthentication yes
#   RSAAuthentication yes
#   PasswordAuthentication yes
#   FallBackToRsh no
#   UseRsh no
#   BatchMode no
#   CheckHostIP yes
#   StrictHostKeyChecking yes
#   IdentityFile ~/.ssh/identity
#   IdentityFile ~/.ssh/id_dsa
#   IdentityFile ~/.ssh/id_rsa
#   Port 22
#   Protocol 2,1
#   Cipher blowfish
#   EscapeChar ~
*********END ssh_config*********
 
********BEGIN startxwin.sh*******
#! /bin/sh
export DISPLAY=127.0.0.1:0.0
 
PATH=/usr/X11R6/bin:$PATH
# Cleanup from last run.
rm -rf /tmp/.X11-unix
 
# Startup the X Server, the twm window manager, and an xterm.
# 
# Notice that the window manager and the xterm will wait for
# the server to finish starting before trying to connect; the
# error "Cannot Open Display: 127.0.0.1:0.0" is not due to the
# clients attempting to connect before the server has started, rather
# that error is due to a bug in some versions of cygwin1.dll.  Upgrade
# to the latest cygwin1.dll if you get the "Cannot Open Display" error.
# See the Cygwin/XFree86 FAQ for more information:
# http://xfree86.cygwin.com/docs/faq/
#
# The error "Fatal server error: could not open default font 'fixed'" is
# caused by using a DOS mode mount for the mount that the Cygwin/XFree86
# fonts are accessed through.  See the Cygwin/XFree86 FAQ for more 
# information:
# http://xfree86.cygwin.com/docs/faq/cygwin-xfree-faq.html#q-error-font-eof
# Start the X Server.
XWin -screen 0 1024 768 &
# Start the twm window manager.
twm &  
# Set a background color to hide that nasty X stipple.
xsetroot -solid aquamarine4
# Start an xterm.
xterm -n xterm-1 -j -ls -sb -sl 500 -rightbar -geometry +361+0 -e bash &
# Return from sh.
exit
 
*********END startxwin.sh********
 
 
--- John Curran
--- jppcurran@earthlink.net
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]