Cygwin

From Lanjwiki

Revision as of 07:49, 4 August 2006 by Admin (Talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)

Pour lancer le serveur X XWin sur son poste Windows, editer et executer le script C:\\cygwin\\usr\\X11R6\\bin\\startxwin.bat Verifier d'abord que le script contient les lignes suivantes:

SET DISPLAY=127.0.0.1:0.0

SET CYGWIN_ROOT=\\cygwin
SET RUN=%CYGWIN_ROOT%\\bin\\run -p /usr/X11R6/bin

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

SET XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
SET XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
SET XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
SET XNLSPATH=/usr/X11R6/lib/X11/locale

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


if "%OS%" == "Windows_NT" goto OS_NT

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

goto STARTUP

:OS_NT

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

:STARTUP

%RUN% XWin -multiwindow -clipboard -silent-dup-error
%RUN% xterm -e /usr/bin/bash -l
Personal tools