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]

* Re: problems with remote display


I have try what you have reccomended but the remote display in not functioning
(follow startxwin.bat).

@echo off
SET DISPLAY=127.0.0.1:0.0


REM
REM The path in the CYGWIN_ROOT environment variable assignment assume
REM that Cygwin is installed in a directory called 'cygwin' in the root
REM directory of the current drive.  You will only need to modify
REM CYGWIN_ROOT if you have installed Cygwin in another directory.  For
REM example, if you installed Cygwin in \foo\bar\baz\cygwin, you will need
REM to change \cygwin to \foo\bar\baz\cygwin.
REM
REM This batch file will almost always be run from the same drive (and
REM directory) as the drive that contains Cygwin/XFree86, therefore you will
REM not need to add a drive letter to CYGWIN_ROOT.  For example, you do
REM not need to change \cygwin to c:\cygwin if you are running this
REM batch file from the C drive.
REM

SET CYGWIN_ROOT=\cygwin

SET PATH=.;%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%PATH%


REM
REM Cleanup after last run.
REM

if not exist %CYGWIN_ROOT%\tmp\.X11-unix\X0 goto CLEANUP-FINISH
attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X0
del %CYGWIN_ROOT%\tmp\.X11-unix\X0

:CLEANUP-FINISH
if exist %CYGWIN_ROOT%\tmp\.X11-unix rmdir %CYGWIN_ROOT%\tmp\.X11-unix


REM
REM Startup the X Server, the twm window manager, and an xterm.
REM
REM Notice that the window manager and the xterm will wait for
REM the server to finish starting before trying to connect; the
REM error "Cannot Open Display: 127.0.0.1:0.0" is not due to the
REM clients attempting to connect before the server has started, rather
REM that error is due to a bug in some versions of cygwin1.dll.  Upgrade
REM to the latest cygwin1.dll if you get the "Cannot Open Display" error.
REM See the Cygwin/XFree86 FAQ for more information:
REM http://xfree86.cygwin.com/docs/faq/
REM
REM The error "Fatal server error: could not open default font 'fixed'" is
REM caused by using a DOS mode mount for the mount that the Cygwin/XFree86
REM fonts are accessed through.  See the Cygwin/XFree86 FAQ for more
REM information:
REM http://xfree86.cygwin.com/docs/faq/cygwin-xfree-faq.html#q-error-font-eof
REM

REM
REM Use the /B switch only when we can positively confirm that the OS
REM is Windows NT/2000.  Do not use the switch in any other case.  This
REM should work fine, as it assumes we cannot use /B, except when a certain
REM criterion is met.  A previous version of this batch file assumed that
REM we could use /B, except when some criterion was met; needless to say,
REM that didn't work.
REM

if "%OS%" == "Windows_NT" goto USE-B-SWITCH

REM Windows 95/98/Me
echo startxwin.bat - Starting on Windows 95/98/Me

REM Startup the X Server.

start XWin

REM Startup an xterm, using bash as the shell.

run xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e /usr/bin/bash

REM Startup the twm window manager.

run twm

goto END


REM
REM Use the /B switch.  This starts the specified process in the background;
REM in other words, it does not cause a new Command Prompt window to be
REM opened for each 'start' command.
REM

:USE-B-SWITCH

REM Windows NT/2000
echo startxwin.bat - Starting on Windows NT/2000

REM Startup the X Server.

start XWin -audit 4 -query hannibal

REM Startup an xterm, using bash as the shell.
REM run xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e
/usr/bin/bash

REM Startup the twm window manager.

REM run twm


:END


REM Set a background color to comply with FCC regulations :)

REM run xsetroot -solid aquamarine4

The X-session seems to start but at some point it flash and nothing happen. I
Have set the audit parameter to 4 and below i have included the log file :

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1024 h 768
winInitializeDefaultScreens - Returning
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - Allowing PrimaryDD
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 0000001f
winSetEngine - Using Shadow DirectDraw NonLocking
winAdjustVideoModeShadowDDNL - Using Windows display depth of 24 bits per pixel
winAdjustForAutoHide - Original WorkArea: 0 0 768 1024
winAdjustForAutoHide - Taskbar is auto hide
winAdjustForAutoHide - Found BOTTOM auto-hide taskbar
winAdjustForAutoHide - Adjusted WorkArea: 0 0 767 1024
winCreateBoundingWindowWindowed - WindowClient w 1018 h 742 r 1018 l 0 b 742 t 0
winCreateBoundingWindowWindowed -  Returning
winAllocateFBShadowDDNL - lPitch: 4072
winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
winInitVisualsShadowDDNL - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 24
winCreateDefColormap - Deferring to fbCreateDefColormap ()
winScreenInit - returning
AUDIT: Tue Jul  9 13:25:59 2002: 1392 XWin: client 1 connected from IP
150.1.1.20 port 64398
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:25:59 2002: 1392 XWin: client 2 connected from IP
150.1.1.20 port 64399
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:25:59 2002: 1392 XWin: client 3 connected from IP
150.1.1.20 port 64400
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:25:59 2002: 1392 XWin: client 3 disconnected
AUDIT: Tue Jul  9 13:25:59 2002: 1392 XWin: client 3 connected from IP
150.1.1.20 port 64401
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:25:59 2002: 1392 XWin: client 3 disconnected
AUDIT: Tue Jul  9 13:25:59 2002: 1392 XWin: client 3 connected from IP
150.1.1.20 port 64402
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:25:59 2002: 1392 XWin: client 3 disconnected
AUDIT: Tue Jul  9 13:25:59 2002: 1392 XWin: client 3 connected from IP
150.1.1.20 port 64403
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:25:59 2002: 1392 XWin: client 3 disconnected
AUDIT: Tue Jul  9 13:25:59 2002: 1392 XWin: client 3 connected from IP
150.1.1.20 port 64404
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:25:59 2002: 1392 XWin: client 3 disconnected
AUDIT: Tue Jul  9 13:25:59 2002: 1392 XWin: client 3 connected from IP
150.1.1.20 port 64405
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:25:59 2002: 1392 XWin: client 3 disconnected
AUDIT: Tue Jul  9 13:25:59 2002: 1392 XWin: client 3 connected from IP
150.1.1.20 port 64406
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:26:02 2002: 1392 XWin: client 3 disconnected
AUDIT: Tue Jul  9 13:26:02 2002: 1392 XWin: client 2 disconnected
AUDIT: Tue Jul  9 13:26:02 2002: 1392 XWin: client 1 disconnected
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - Allowing PrimaryDD
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 0000001f
winSetEngine - Using Shadow DirectDraw NonLocking
winAdjustForAutoHide - Original WorkArea: 0 0 768 1024
winAdjustForAutoHide - Taskbar is auto hide
winAdjustForAutoHide - Found BOTTOM auto-hide taskbar
winAdjustForAutoHide - Adjusted WorkArea: 0 0 767 1024
winCreateBoundingWindowWindowed - WindowClient w 1018 h 742 r 1018 l 0 b 742 t 0
winCreateBoundingWindowWindowed -  Returning
winAllocateFBShadowDDNL - lPitch: 4072
winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
winInitVisualsShadowDDNL - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 24
winCreateDefColormap - Deferring to fbCreateDefColormap ()
winScreenInit - returning
AUDIT: Tue Jul  9 13:26:16 2002: 1392 XWin: client 1 connected from IP
150.1.1.20 port 64407
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:26:16 2002: 1392 XWin: client 2 connected from IP
150.1.1.20 port 64408
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:26:16 2002: 1392 XWin: client 3 connected from IP
150.1.1.20 port 64409
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:26:16 2002: 1392 XWin: client 3 disconnected
AUDIT: Tue Jul  9 13:26:16 2002: 1392 XWin: client 3 connected from IP
150.1.1.20 port 64410
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:26:16 2002: 1392 XWin: client 3 disconnected
AUDIT: Tue Jul  9 13:26:16 2002: 1392 XWin: client 3 connected from IP
150.1.1.20 port 64411
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:26:16 2002: 1392 XWin: client 3 disconnected
AUDIT: Tue Jul  9 13:26:16 2002: 1392 XWin: client 3 connected from IP
150.1.1.20 port 64412
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:26:16 2002: 1392 XWin: client 3 disconnected
AUDIT: Tue Jul  9 13:26:16 2002: 1392 XWin: client 3 connected from IP
150.1.1.20 port 64413
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:26:16 2002: 1392 XWin: client 3 disconnected
AUDIT: Tue Jul  9 13:26:16 2002: 1392 XWin: client 3 connected from IP
150.1.1.20 port 64414
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:26:17 2002: 1392 XWin: client 3 disconnected
AUDIT: Tue Jul  9 13:26:17 2002: 1392 XWin: client 3 connected from IP
150.1.1.20 port 64415
  Auth name: MIT-MAGIC-COOKIE-1 ID: 58
AUDIT: Tue Jul  9 13:26:19 2002: 1392 XWin: client 3 disconnected
AUDIT: Tue Jul  9 13:26:19 2002: 1392 XWin: client 2 disconnected
AUDIT: Tue Jul  9 13:26:19 2002: 1392 XWin: client 1 disconnected
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - Allowing PrimaryDD
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 0000001f
winSetEngine - Using Shadow DirectDraw NonLocking
winAdjustForAutoHide - Original WorkArea: 0 0 768 1024
winAdjustForAutoHide - Taskbar is auto hide
winAdjustForAutoHide - Found BOTTOM auto-hide taskbar
winAdjustForAutoHide - Adjusted WorkArea: 0 0 767 1024
winCreateBoundingWindowWindowed - WindowClient w 1018 h 742 r 1018 l 0 b 742 t 0
winCreateBoundingWindowWindowed -  Returning
winAllocateFBShadowDDNL - lPitch: 4072
winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
winInitVisualsShadowDDNL - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 24
winCreateDefColormap - Deferring to fbCreateDefColormap ()
winScreenInit - returning
winWindowProc - WM_*KEYDOWN - Closekey hit, quitting

I don't see any error and i'm very confused. I suppose that some configuration
have to change on the remote unix machine but i don't kwon what.
Anyway thank you for your answer.



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