X works, but xterm doesn't stay open

Harold L Hunt II huntharo@msu.edu
Mon Apr 28 17:26:00 GMT 2003


Ken,

Sounds like you have a generic Cygwin setup issue.

What you need to do is, from a Cygwin bash shell:

mkpasswd -d -u %my_user_name% >> /etc/passwd


This will append info for your domain user account to the /etc/passwd 
file.  You need to do this for every domain user that will use Cygwin on 
that machine.  Alternatively, you can leave off the -u and get a 
complete list of domain users.

You should also run the following to get a complete list of domain groups:

mkgroup -d >> /etc/passwd


I think that xterm has a problem with starting when your user account 
cannot be found.  This likely explains your problem.


Harold


PS.  A guy in the MSU CS Master's program said he was going to an 
internship for Intel in one validation group or another.  Is your group 
in Oregon... I am pretty sure that is where he was heading?


Lafond, Kenneth G wrote:
> I think I found part of the bug.  Does anyone know the maximum number of
> users (ie the highest UID) Cygwin can handle before 'wrapping', specifically
> in a domain environment?
> 
> Ken
> 
> -----Original Message-----
> From: Lafond, Kenneth G 
> Sent: Friday, April 25, 2003 3:06 PM
> To: cygwin-xfree@cygwin.com
> Subject: X works, but xterm doesn't stay open
> 
> 
> 
>>Hey all -
>>	I'm new to Cygwin.  I've searched the web for two days, and have
> 
> gone through the archives and FAQ without finding the answer to my issue.
> 
>>	I have the latest Cygwin 1.3.22-1, running on Windows 2000 Sp2.
> 
> I've installed all default items as well as a few others (like vim) and the
> full XFree subcategory.  This is a fresh install.
> 
>>	The symptoms:  The bash shell when launched form the desktop icon
> 
> works fine (mostly).  It does say that "id: cannot find name for user ID
> 59893" and " I have no name!@<mycomputer> $ ".  I don't know if this is a
> problem for xterm, since I've seen rumblings of a user/SID problem in the
> lists that's supposed to be fixed by a later release (which I have the
> latest), so I *guessing* that this is not an issue. (although if you know
> how to fix it, please let me know)
> 
>>	I used the default startxwin.bat to start X, and it came up and
> 
> initialized twm and I got the outline for xterm, but when I placed the
> window it disappeared.  I started xterm again from within twm with the same
> result.  I set the DISPLAY variable from the bash shell (launched from
> windows) and tried again with the same result.
> 
>>	So, I changed the startxwin.bat to start wmaker instead.  I got the
> 
> same result with the xterm (opens and immediately closes).  I'm able to run
> the calculator and prefrences windows in wmaker just fine, but xterm will
> not stay open from X or from the windows bash shell (making this slightly
> different symptoms than I've seen already in the list archives).
> 
>>	There are no error messages or error files for me to analyze (that I
> 
> can find anyway).  Any idea what's going on?  I've posted the Xwinrl.log and
> the setup.log below.
> 
>>
>>Kenneth G Lafond
>>System Validation Group
>>503-677-4735 - Desk
>>503-677-5683 - Lab
>>
>>There are 10 kinds of people in this world: Those who understand binary,
> 
> and those who don't.
> 
>>************  BEGIN Xwinrl.log  *****************
>>ddxProcessArgument - Initializing default screens
>>winInitializeDefaultScreens - w 1024 h 768
>>winInitializeDefaultScreens - Returning
>>ddxProcessArgument - screen - Found ``W D'' arg
>>(EE) Unable to locate/open config file
>>InitOutput - Error reading config file
>>winDetectSupportedEngines - Windows NT/2000/XP
>>winDetectSupportedEngines - DirectDraw installed
>>winDetectSupportedEngines - Allowing PrimaryDD
>>winDetectSupportedEngines - DirectDraw4 installed
>>winDetectSupportedEngines - Returning, supported engines 0000001f
>>InitOutput - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
>>winSetEngine - Using Shadow DirectDraw NonLocking
>>winAdjustVideoModeShadowDDNL - Using Windows display depth of 32 bits per
> 
> pixel
> 
>>winCreateBoundingWindowWindowed - User w: 1024 h: 768
>>winCreateBoundingWindowWindowed - Current w: 1024 h: 768
>>winAdjustForAutoHide - Original WorkArea: 0 0 740 1024
>>winAdjustForAutoHide - Adjusted WorkArea: 0 0 740 1024
>>winCreateBoundingWindowWindowed - WindowClient w 1018 h 715 r 1018 l 0 b
> 
> 715 t 0
> 
>>winCreateBoundingWindowWindowed -  Returning
>>winCreatePrimarySurfaceShadowDDNL - Creating primary surface
>>winCreatePrimarySurfaceShadowDDNL - Created primary surface
>>winCreatePrimarySurfaceShadowDDNL - Attached clipper to primary surface
>>winAllocateFBShadowDDNL - lPitch: 4072
>>winAllocateFBShadowDDNL - Created shadow pitch: 4072
>>winAllocateFBShadowDDNL - Created shadow stride: 1018
>>winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
>>winInitVisualsShadowDDNL - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24
> 
> bpp 32
> 
>>winCreateDefColormap - Deferring to fbCreateDefColormap ()
>>winFinishScreenInitFB - returning
>>winScreenInit - returning
>>InitOutput - Returning.
>>(EE) No primary keyboard configured
>>(==) Using compiletime defaults for keyboard
>>Rules = "xfree86" Model = "pc101" Layout = "us" Variant = "(null)" Options
> 
> = "(null)"
> 
>>winBlockHandler - Releasing pmServerStarted
>>winBlockHandler - pthread_mutex_unlock () returned> 
>>************  END Xwinrl.log  *****************
>>
>>
>>************  BEGIN setup.log  *****************
>>2003/04/23 14:33:29 Starting cygwin install, version 2.340.2.5
>>2003/04/23 14:33:29 Current Directory: C:\Documents and
> 
> Settings\<myisid.mydomain>\Desktop
> 
>>2003/04/23 14:33:29 Found McAfee anti virus program
>>2003/04/23 14:34:00 Disabled Anti Virus software
>>2003/04/23 14:34:12 source: network install
>>2003/04/23 14:34:29 root: C:\cygwin binary system
>>2003/04/23 14:34:43 Selected local directory: C:\Documents and
> 
> Settings\<myisid.mydomain>\Desktop\temp
> 
>>2003/04/23 14:34:53 net: IE5
>>2003/04/23 14:35:52 site: ftp://csociety-ftp.ecn.purdue.edu/pub/cygwin
> 
> 				<< snipped download section >>
> 
>>2003/04/23 15:41:30 Visited: 112 nodes out of 264.
>>2003/04/23 15:41:30 Dependency ordered install:
>>2003/04/23 15:41:30 ash
>>2003/04/23 15:41:30 base-files
>>2003/04/23 15:41:30 base-passwd
>>2003/04/23 15:41:30 bash
>>2003/04/23 15:41:30 binutils
>>2003/04/23 15:41:30 bzip2
>>2003/04/23 15:41:30 cgoban
>>2003/04/23 15:41:30 clear
>>2003/04/23 15:41:30 cron
>>2003/04/23 15:41:30 cygutils
>>2003/04/23 15:41:30 cygwin
>>2003/04/23 15:41:30 cygwin-doc
>>2003/04/23 15:41:30 diffutils
>>2003/04/23 15:41:30 expat
>>2003/04/23 15:41:30 fileutils
>>2003/04/23 15:41:30 findutils
>>2003/04/23 15:41:30 fvwm
>>2003/04/23 15:41:30 gawk
>>2003/04/23 15:41:30 gcc
>>2003/04/23 15:41:30 gcc-mingw
>>2003/04/23 15:41:30 gdbm
>>2003/04/23 15:41:30 gettext
>>2003/04/23 15:41:30 gnugo
>>2003/04/23 15:41:30 grace
>>2003/04/23 15:41:30 grep
>>2003/04/23 15:41:30 groff
>>2003/04/23 15:41:30 guile-doc
>>2003/04/23 15:41:30 gzip
>>2003/04/23 15:41:30 jpeg
>>2003/04/23 15:41:30 less
>>2003/04/23 15:41:30 lesstif
>>2003/04/23 15:41:30 libbz2_1
>>2003/04/23 15:41:30 libdb3.1
>>2003/04/23 15:41:30 libgdbm
>>2003/04/23 15:41:30 libgdbm-devel
>>2003/04/23 15:41:30 libgdbm3
>>2003/04/23 15:41:30 libiconv2
>>2003/04/23 15:41:30 libintl
>>2003/04/23 15:41:30 libintl1
>>2003/04/23 15:41:30 libintl2
>>2003/04/23 15:41:30 libncurses5
>>2003/04/23 15:41:30 libncurses6
>>2003/04/23 15:41:30 libncurses7
>>2003/04/23 15:41:30 libpng10
>>2003/04/23 15:41:30 libpng12
>>2003/04/23 15:41:30 libpopt0
>>2003/04/23 15:41:30 libPropList
>>2003/04/23 15:41:30 libreadline4
>>2003/04/23 15:41:30 libreadline5
>>2003/04/23 15:41:30 libxerces-c21
>>2003/04/23 15:41:30 libxml2
>>2003/04/23 15:41:30 libxslt
>>2003/04/23 15:41:30 lilypond-doc
>>2003/04/23 15:41:30 login
>>2003/04/23 15:41:30 lynx
>>2003/04/23 15:41:30 man
>>2003/04/23 15:41:30 mingw-runtime
>>2003/04/23 15:41:30 mktemp
>>2003/04/23 15:41:30 ncurses
>>2003/04/23 15:41:30 newlib-man
>>2003/04/23 15:41:30 openbox
>>2003/04/23 15:41:30 openssl
>>2003/04/23 15:41:30 openssl096
>>2003/04/23 15:41:30 patch
>>2003/04/23 15:41:30 pcre
>>2003/04/23 15:41:30 perl
>>2003/04/23 15:41:30 perl_manpages
>>2003/04/23 15:41:30 pinfo
>>2003/04/23 15:41:30 python
>>2003/04/23 15:41:30 readline
>>2003/04/23 15:41:30 rebase
>>2003/04/23 15:41:30 sed
>>2003/04/23 15:41:30 sh-utils
>>2003/04/23 15:41:30 tar
>>2003/04/23 15:41:30 tcltk
>>2003/04/23 15:41:30 termcap
>>2003/04/23 15:41:30 terminfo
>>2003/04/23 15:41:30 tetex-doc
>>2003/04/23 15:41:30 texinfo
>>2003/04/23 15:41:30 textutils
>>2003/04/23 15:41:30 tiff
>>2003/04/23 15:41:30 w32api
>>2003/04/23 15:41:30 which
>>2003/04/23 15:41:30 WindowMaker
>>2003/04/23 15:41:30 x2x
>>2003/04/23 15:41:30 Xaw3d
>>2003/04/23 15:41:30 xerces-c-devel
>>2003/04/23 15:41:30 xerces-c-doc
>>2003/04/23 15:41:30 XFree86-base
>>2003/04/23 15:41:30 XFree86-bin
>>2003/04/23 15:41:30 XFree86-doc
>>2003/04/23 15:41:30 XFree86-etc
>>2003/04/23 15:41:30 XFree86-f100
>>2003/04/23 15:41:30 XFree86-fcyr
>>2003/04/23 15:41:30 XFree86-fenc
>>2003/04/23 15:41:30 XFree86-fnts
>>2003/04/23 15:41:30 XFree86-fscl
>>2003/04/23 15:41:30 XFree86-fsrv
>>2003/04/23 15:41:30 XFree86-html
>>2003/04/23 15:41:30 XFree86-jdoc
>>2003/04/23 15:41:30 XFree86-lib> 
>>2003/04/23 15:41:30 XFree86-man
>>2003/04/23 15:41:30 XFree86-nest
>>2003/04/23 15:41:30 XFree86-prog
>>2003/04/23 15:41:30 XFree86-prt
>>2003/04/23 15:41:30 XFree86-ps
>>2003/04/23 15:41:30 XFree86-startup-scripts
>>2003/04/23 15:41:30 XFree86-vfb
>>2003/04/23 15:41:30 XFree86-xserv
>>2003/04/23 15:41:30 XFree86-xwinclip
>>2003/04/23 15:41:30 zlib
>>2003/04/23 15:41:30 _update-info-dir
>>2003/04/23 15:41:30 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/base-files-mketc.sh
> 
>>2003/04/23 15:41:37 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/base-files-profile.sh
> 
>>2003/04/23 15:41:39 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/bzip2.sh
> 
>>2003/04/23 15:41:39 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/cgoban.sh
> 
>>2003/04/23 15:41:40 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/cron.sh
> 
>>2003/04/23 15:41:40 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/cygwin-doc-postinstall.sh
> 
>>2003/04/23 15:41:42 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/gcc-mingw.sh
> 
>>2003/04/23 15:41:43 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/gnugo.sh
> 
>>2003/04/23 15:41:43 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/grace.sh
> 
>>2003/04/23 15:41:44 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/libgdbm-devel.sh
> 
>>2003/04/23 15:41:44 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/passwd-grp.sh
> 
>>2003/04/23 15:41:45 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/pinfo.sh
> 
>>2003/04/23 15:41:45 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/readline.sh
> 
>>2003/04/23 15:41:45 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/terminfo.sh
> 
>>2003/04/23 15:41:46 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/update-info-dir.sh
> 
>>2003/04/23 15:41:50 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/xerces-c-devel.sh
> 
>>2003/04/23 15:41:50 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/XFree86-f100.sh
> 
>>2003/04/23 15:41:51 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/XFree86-fcyr.sh
> 
>>2003/04/23 15:41:51 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/XFree86-fenc.sh
> 
>>2003/04/23 15:41:51 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/XFree86-fnts.sh
> 
>>2003/04/23 15:41:51 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/XFree86-fscl.sh
> 
>>2003/04/23 15:41:51 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/XFree86-lib.sh
> 
>>2003/04/23 15:41:52 running: C:\cygwin\bin\sh.exe -c
> 
> /etc/postinstall/XFree86-xserv.sh
> 
>>2003/04/23 15:41:53 Enabled Anti Virus software
>>2003/04/23 15:41:53 mbox note: Installation Complete
>>2003/04/23 15:41:58 Ending cygwin install
>>2003/04/23 17:31:48 Starting cygwin install, version 2.340.2.5
>>2003/04/23 17:31:48 Current Directory: C:\Documents and
> 
> Settings\<myisid.mydomain>\Desktop
> 
>>2003/04/23 17:31:48 Found McAfee anti virus program
>>2003/04/23 17:31:55 Disabled Anti Virus software
>>2003/04/23 17:31:56 source: network install
>>2003/04/23 17:31:57 root: C:\cygwin binary system
>>2003/04/23 17:32:02 Selected local directory: C:\Documents and
> 
> Settings\<myisid.mydomain>\Desktop\temp
> 
>>2003/04/23 17:32:05 net: IE5
>>2003/04/23 17:32:14 site: ftp://csociety-ftp.ecn.purdue.edu/pub/cygwin
>>2003/04/23 17:35:12 Downloaded C:\Documents and
> 
> Settings\<myisid.mydomain>\Desktop\temp/ftp%3a%2f%2fcsociety-ftp.ecn.purdue.
> edu%2fpub%2fcygwin/release/vim/vim-6.1.300-1.tar.bz2
> 
>>2003/04/23 17:35:12 Installing file://C:\Documents and
> 
> Settings\<myisid.mydomain>\Desktop\temp/ftp%3a%2f%2fcsociety-ftp.ecn.purdue.
> edu%2fpub%2fcygwin/release/vim/vim-6.1.300-1.tar.bz2
> 
>>2003/04/23 17:35:25 Visited: 113 nodes out of 264.
>>2003/04/23 17:35:25 Dependency ordered install:
>>2003/04/23 17:35:25 base-passwd
>>2003/04/23 17:35:25 libintl1
>>2003/04/23 17:35:25 texinfo
>>2003/04/23 17:35:25 _update-info-dir
>>2003/04/23 17:35:25 libiconv2
>>2003/04/23 17:35:25 libintl2
>>2003/04/23 17:35:25 cygwin
>>2003/04/23 17:35:25 ash
>>2003/04/23 17:35:25 terminfo
>>2003/04/23 17:35:25 libncurses5
>>2003/04/23 17:35:25 fileutils> 
>>2003/04/23 17:35:25 termcap
>>2003/04/23 17:35:25 bash
>>2003/04/23 17:35:25 sh-utils
>>2003/04/23 17:35:25 textutils
>>2003/04/23 17:35:25 findutils
>>2003/04/23 17:35:25 sed
>>2003/04/23 17:35:25 base-files
>>2003/04/23 17:35:25 binutils
>>2003/04/23 17:35:25 libbz2_1
>>2003/04/23 17:35:25 bzip2
>>2003/04/23 17:35:25 libncurses6
>>2003/04/23 17:35:25 zlib
>>2003/04/23 17:35:25 gettext
>>2003/04/23 17:35:25 libintl
>>2003/04/23 17:35:25 pcre
>>2003/04/23 17:35:25 XFree86-xserv
>>2003/04/23 17:35:25 XFree86-startup-scripts
>>2003/04/23 17:35:25 XFree86-fnts
>>2003/04/23 17:35:25 XFree86-fenc
>>2003/04/23 17:35:25 XFree86-lib
>>2003/04/23 17:35:25 XFree86-etc
>>2003/04/23 17:35:25 XFree86-bin
>>2003/04/23 17:35:25 XFree86-base
>>2003/04/23 17:35:25 gnugo
>>2003/04/23 17:35:25 cgoban
>>2003/04/23 17:35:25 clear
>>2003/04/23 17:35:25 cron
>>2003/04/23 17:35:25 libpopt0
>>2003/04/23 17:35:25 cygutils
>>2003/04/23 17:35:25 less
>>2003/04/23 17:35:25 groff
>>2003/04/23 17:35:25 mktemp
>>2003/04/23 17:35:25 gawk
>>2003/04/23 17:35:25 man
>>2003/04/23 17:35:25 gzip
>>2003/04/23 17:35:25 newlib-man
>>2003/04/23 17:35:25 cygwin-doc
>>2003/04/23 17:35:25 diffutils
>>2003/04/23 17:35:25 expat
>>2003/04/23 17:35:25 fvwm
>>2003/04/23 17:35:25 w32api
>>2003/04/23 17:35:25 mingw-runtime
>>2003/04/23 17:35:25 gcc-mingw
>>2003/04/23 17:35:25 gcc
>>2003/04/23 17:35:25 libgdbm
>>2003/04/23 17:35:25 libgdbm3
>>2003/04/23 17:35:25 gdbm
>>2003/04/23 17:35:25 jpeg
>>2003/04/23 17:35:25 libpng12
>>2003/04/23 17:35:25 openssl096
>>2003/04/23 17:35:25 openssl
>>2003/04/23 17:35:25 lynx
>>2003/04/23 17:35:25 grace
>>2003/04/23 17:35:25 grep
>>2003/04/23 17:35:25 guile-doc
>>2003/04/23 17:35:25 lesstif
>>2003/04/23 17:35:25 libdb3.1
>>2003/04/23 17:35:25 libgdbm-devel
>>2003/04/23 17:35:25 libncurses7
>>2003/04/23 17:35:25 libpng10
>>2003/04/23 17:35:25 libPropList
>>2003/04/23 17:35:25 libreadline4
>>2003/04/23 17:35:25 libreadline5
>>2003/04/23 17:35:25 libxerces-c21
>>2003/04/23 17:35:25 libxml2
>>2003/04/23 17:35:25 libxslt
>>2003/04/23 17:35:25 lilypond-doc
>>2003/04/23 17:35:25 login
>>2003/04/23 17:35:25 ncurses
>>2003/04/23 17:35:25 openbox
>>2003/04/23 17:35:25 patch
>>2003/04/23 17:35:25 perl
>>2003/04/23 17:35:25 perl_manpages
>>2003/04/23 17:35:25 pinfo
>>2003/04/23 17:35:25 tcltk
>>2003/04/23 17:35:25 python
>>2003/04/23 17:35:25 readline
>>2003/04/23 17:35:25 rebase
>>2003/04/23 17:35:25 tar
>>2003/04/23 17:35:25 tetex-doc
>>2003/04/23 17:35:25 tiff
>>2003/04/23 17:35:25 vim
>>2003/04/23 17:35:25 which
>>2003/04/23 17:35:25 WindowMaker
>>2003/04/23 17:35:25 x2x
>>2003/04/23 17:35:25 Xaw3d
>>2003/04/23 17:35:25 xerces-c-devel
>>2003/04/23 17:35:25 xerces-c-doc
>>2003/04/23 17:35:25 XFree86-doc
>>2003/04/23 17:35:25 XFree86-f100
>>2003/04/23 17:35:25 XFree86-fcyr
>>2003/04/23 17:35:25 XFree86-fscl
>>2003/04/23 17:35:25 XFree86-fsrv
>>2003/04/23 17:35:25 XFree86-html
>>2003/04/23 17:35:25 XFree86-jdoc
>>2003/04/23 17:35:25 XFree86-man
>>2003/04/23 17:35:25 XFree86-nest
>>2003/04/23 17:35:25 XFree86-prog
>>2003/04/23 17:35:25 XFree86-prt
>>2003/04/23 17:35:25 XFree86-ps
>>2003/04/23 17:35:25 XFree86-vfb
>>2003/04/23 17:35:25 XFree86-xwinclip
>>2003/04/23 17:35:25 Enabled Anti Virus software
>>2003/04/23 17:35:25 mbox note: Installation Complete
>>2003/04/23 17:35:27 Ending cygwin install
>>************  END setup.log  *****************



More information about the Cygwin-xfree mailing list