This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
RE: xterm doesn't open on start (was: checkX problems)
- From: "Timares, Brian (Harris Corp.)" <Brian dot Timares at va dot gov>
- To: <cygwin-xfree at cygwin dot com>
- Date: Wed, 2 Dec 2009 11:28:03 -0600
- Subject: RE: xterm doesn't open on start (was: checkX problems)
- References: <4AEAEEAB.2030009@cornell.edu> <4B0A8AC5.9080305@cwilson.fastmail.fm> <EABCFA5150B14960B856418FF34758D3@MultiOcke> <4B0B4728.40300@cwilson.fastmail.fm> <6BA35940945A4A9D87019C6253F94814@MultiOcke> <4B0D2EB3.6020102@cwilson.fastmail.fm> <DD64BEC938054D459976F9311F71E290@MultiOcke> <4B0E9679.5050108@cornell.edu> <270AA78168E41541833C52448F4F34AD1D16D2C4@VHAISHMSGJ2.vha.med.va.gov> <CBDD77CD57ED4827A8A30DFA1DFBC285@MultiOcke> <270AA78168E41541833C52448F4F34AD1D16D545@VHAISHMSGJ2.vha.med.va.gov> <3 4FC5A3DFA88402C87957FC903ED71A2@MultiOcke> <270AA78168E41541833C52448F4F34AD1D16D5E4@VHAISHMSGJ2.vha.med.va.gov > <64D542799A7246F4A7712FD0F65274D7@MultiOcke> <270AA78168E41541833C52448F4F34AD1D2B13A0@VHAISHMSGJ2.vha.med.va.gov> < 3A87660989894F8C82CE373AC8C8382F@MultiOcke> <270AA78168E41541833C52448F4F34AD1D2B1C41@VHAISHMSGJ2.vha.med.va.gov> <C537423A2CE7 416696AFA0962415C3C7@MultiOcke> <270AA78168E41541833C52448F4F34AD1D370787@VHAISHMSGJ2.vha.med.va.gov> <C39ECBF869364F9292 E0E03B107F14D8@MultiOcke>
- Reply-to: cygwin-xfree at cygwin dot com
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/