Salah, There are three components to the DISPLAY variable: IP_ADDRESS_OR_HOSTNAME:DISPLAY_NUMBER.SCREEN_NUMBER
Your X1.bat sets DISPLAY to 127.0.0.1:1.1, but you never tell XWin.exe that it is using display 1. You tell XWin.exe to use a different display number with the ``:n'' parameter: XWin :1 -screen 1 -query host_foo Also, it is a really bad idea to use the ``-ac'' parameter on a network with other users... this allows any host to connect and snoop on the X display, possibly grabbing passwords and/or screenshots, etc. You do not need to specify the 1024x768x16 information with the ``-screen'' parameter and it is probably better that you do not (in which case XWin.exe will size its window to fit the available desktop area). You do not need the ``/B'' parameter on start anymore. XWin.exe automatically detaches from the console now. Finally, you do not need to, and it is recommended that you do not, specify the ``-engine n'' parameter. The server automatically determines which engine to use based upon which version of DirectDraw is installed. In fact, it will ignore your request to use an engine that conflicts with the version of DirectDraw installed, so you might as well just leave off the -engine and let XWin.exe figure it out for you. I would have the following: X0.bat: set DISPLAY=127.0.0.1:0.0 start XWin -query peis07 X1.bat: set DISPLAY=127.0.0.1:1.0 start XWin :1 -query peis07 Good luck. Harold Salah Zerrougui <[EMAIL PROTECTED]> said: > Hello, > > I have used Cygwin/Xfree86 on PCs for around a year > now, without any > problems. > Now i have some users who run their applications on > Thin clients Terminals > hooked to > a Windows NT 4 (Terminal server edition) (RDP > protocol). > I installed the latest version of Cygwin/Xfree86 and > created two batch > files : > > X0.bat > ---------- > SET DISPLAY=127.0.0.1:0.0 > . > . > start /B XWin -ac -query peis07 -screen 0 1024x768x16 > -engine 4 > > And > > X1.bat > SET DISPLAY=127.0.0.1:1.1 > . > . > start /B XWin -ac -query peis07 -screen 1 1024x768x16 > -engine 4 > > I set two Terminals one running X0.bat and the other > one X1.bat, now each > of them works fine as long as i don't launch the > other. > Probably TCP Port problem ??? > > My questions are : > 1) Can this work properly ? is there any other > parameters to pass to Xwin > ? > 2) Is someone using Cygwin/Xfree86 in a Terminal > Server Environement ? > What are the issues > that you may have encounter, and what solutions > did you implement to > solve them ? > > Thank you for your help in advance, > > Salah Zerrougui > > __________________________________________________ > Do you Yahoo!? > U2 on LAUNCH - Exclusive greatest hits videos > http://launch.yahoo.com/u2 >
