xterm doesn't open on start (was: checkX problems)
Timares, Brian (Harris Corp.)
Brian.Timares@va.gov
Wed Dec 2 17:26:00 GMT 2009
More information as promised, after getting the new run and checkX
(run2) packages announced this morning.
$ checkX -v
run2 0.3.2
----- QUOTE -----
Lothar Brendel wrote:
>Timares, Brian (Patriot) wrote:
>> The X window showed up, but it blew up real good (the windows
>> disappeared, then the X icon. After a reboot....it
>> didn't launch at all. I ran startxwin.sh from the Cygwin Bash
>> Shell, and it started.
>
>At least we're getting *somewhere* :-)
>
>Ok, what happens when entering the two vital commands by hand in the
the
>Cygwin Bash Shell (waiting with the second until the X-icon has
appeared)?
>
>XWin -multiwin &
>xterm -display :0
>
>Reproducible success?
I'll try again from home (I went into the office to simplify things).
Here
is what I got (sorry for the word-wrap):
VHAISBTIMARB@isb-timaresbrian-lt ~
$ XWin -multiwindow &
[1] 5004
VHAISBTIMARB@isb-timaresbrian-lt ~
$ Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.7.1.0 (10701000)
Build Date: 2009-11-11
----- UNQUOTE -----
Trying from home with the VPN active, again, it works; here is the ps
from the xterm that showed up:
VHAISBTIMARB@isb-timaresbrian-lt ~
$ ps
PID PPID PGID WINPID TTY UID STIME COMMAND
3556 1 3556 3556 0 180490 11:11:27 /usr/bin/bash
6020 1 6020 6020 ? 180490 11:11:28
/usr/bin/ssh-agent
I 2944 3556 2944 3688 0 180490 11:12:07 /usr/bin/XWin
5936 3556 5936 4060 0 180490 11:12:56 /usr/bin/xterm
4780 5936 4780 1840 1 180490 11:12:57 /usr/bin/bash
932 4780 932 4696 1 180490 11:12:59 /usr/bin/ps
After quitting and destroying any processes from a DOS window, trying
startxwin.bat with echo on....
First off all, nothing appeared (no X icon, no window). Here is what ps
in a DOS window shows after running startxwin.bat:
C:\cygwin\bin>ps
PID PPID PGID WINPID TTY UID STIME COMMAND
1656 1 1656 1656 0 180490 10:57:45 /usr/bin/bash
5516 1 5516 5516 ? 180490 10:57:47
/usr/bin/ssh-agent
I 4676 1656 1656 4476 0 180490 10:57:47
/usr/bin/ssh-add
I 2024 1 2024 2024 1 180490 11:09:16 /usr/bin/bash
1464 1 1464 1464 2 180490 11:09:40 /usr/bin/ps
Here is the output with blank lines and REM lines removed (I added the
2nd SET DISPLAY, CYGWIN is set to tty elsewhere as well as here, I don't
know what that is at the end of the PATH):
C:\cygwin\bin>startxwin.bat
C:\cygwin\bin>SET DISPLAY=127.0.0.1:0.0
C:\cygwin\bin>SET CYGWIN=tty tty tty
C:\cygwin\bin>if defined CYGWIN_ROOT goto :OK
C:\cygwin\bin>SET RUN=C:\cygwin\bin\\..\bin\run -p /usr/bin
C:\cygwin\bin>SET
PATH=C:\cygwin\bin\\..\bin;C:\cygwin\bin\\..\bin;C:\WINDOWS\system32;C:\
WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\IBM\Personal
Communications\;C:\Program Files\IBM\Trace Facility\;C:\Program
Files\Common Files\InterSystems\Cache;C:\Program Files\Windows
Imaging\;C:\Program Files\ActivIdentity\ActivClient\;P
C:\cygwin\bin>SET XAPPLRESDIR=
C:\cygwin\bin>SET XCMSDB=
C:\cygwin\bin>SET XKEYSYMDB=
C:\cygwin\bin>SET XNLSPATH=
C:\cygwin\bin>if not exist C:\cygwin\bin\\..\tmp\.X11-unix\X0 goto
CLEANUP-FINISH
C:\cygwin\bin>attrib -s C:\cygwin\bin\\..\tmp\.X11-unix\X0
C:\cygwin\bin>del C:\cygwin\bin\\..\tmp\.X11-unix\X0
C:\cygwin\bin>if exist C:\cygwin\bin\\..\tmp\.X11-unix rmdir
C:\cygwin\bin\\..\tmp\.X11-unix
C:\cygwin\bin>SET DISPLAY=127.0.0.1:0.0
C:\cygwin\bin>C:\cygwin\bin\\..\bin\run -p /usr/bin bash -l -c "XWin
-multiwindow -clipboard -silent-dup-error -winkill -emulate3buttons 100"
C:\cygwin\bin>C:\cygwin\bin\\..\bin\run -p /usr/bin checkX -wait -d
127.0.0.1:0.0 -t 12
C:\cygwin\bin>C:\cygwin\bin\\..\bin\run -p /usr/bin xterm -e
/usr/bin/bash -l
C:\cygwin\bin>
At this point I run "Cygwin Bash Shell" and from that window I run
startxwin.bat and it works fine, even after closing the Cygwin Bash
Shell.
Brian Timares
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/
More information about the Cygwin-xfree
mailing list