Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2707 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs

  pb de lancement d'XFree sous Cygwin

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

pb de lancement d'XFree sous Cygwin

n°128741
symbiosis
Posté le 24-07-2002 à 12:57:57  profilanswer
 

Cygwin fonctionne tres bien mais j'aimerais avoir une interface graphique kan meme...
 
au lancement du startxwin.bat j'ai le message suivant :
/USR/XR11R6/BIN/XSETROOT: unable to open display '127.0.0.1:0.0'
 
le 127.0.0.1 ping bien sur le localhost.....
 
k'est ce ke je peut faire ???

mood
Publicité
Posté le 24-07-2002 à 12:57:57  profilanswer
 

n°128762
bobdupont
Posté le 24-07-2002 à 13:35:00  profilanswer
 

symbiosis a écrit a écrit :

 
/USR/XR11R6/BIN/XSETROOT: unable to open display '127.0.0.1:0.0'




 
Le message que tu as ça veut dire au choix :
- que le serveur x est pas démarré
- ou que le display s'appelle autrement que 0:0
- ou encore que tu n'as pas le droit d'utiliser ce display (dans ce cas essaye de taper "xhost +" dans 1 shell)

n°128840
symbiosis
Posté le 24-07-2002 à 15:45:47  profilanswer
 

merci pour ta reponce mais la commande "xhost +" ca ne fonctionne...
 
"xhost +" me donne : BASH: xhost command not found
"./xhost +" me donne : unable to open display ""
 
sniffffff
 
pour info je met le contenu du 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=\unix
 
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 [...] r-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 criteria is met.  A previous verion of this batch file assumed that
REM we could use /B, except when some criteria 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 -screen 0 1024 768
 
REM Startup an xterm, using bash as the shell.
 
start xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e /usr/bin/bash
 
REM Startup the twm window manager.
 
start 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 /B XWin -screen 0 1024 768
 
REM Startup an xterm, using bash as the shell.
 
start /B xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e /usr/bin/bash
 
REM Startup the twm window manager.
 
start /B twm
 
 
:END
 
 
REM Set a background color to comply with FCC regulations :)
 
xsetroot -solid aquamarine4

n°128846
symbiosis
Posté le 24-07-2002 à 15:50:28  profilanswer
 

j'ai essayer aussi par ./startxwin.sh
 
mess :  
 
X connection to 127.0.0.1:0.0 broken (explicit kill or server shutdown).Xconnection to 127.0.0.1:0.0 broken (explicit kill or server shutdown)
 
xtern Xt error: Can't open display: 127.0.0.1:0.0

n°128900
Jar Jar
Intaigriste
Posté le 24-07-2002 à 17:10:25  profilanswer
 

bobdupont a écrit a écrit :

(dans ce cas essaye de taper "xhost +" dans 1 shell)


Note au passage : ne tapez vraiment jamais cette commande. À la rigueur, un xhost localhost dans les cas extrêmes, mais ça supprime un peu l'utilité de la séparation des pouvoirs...


---------------
« No question is too silly to ask, but, of course, some are too silly to answer. » -- Perl book
n°128902
bobdupont
Posté le 24-07-2002 à 17:13:49  profilanswer
 

visiblement ya 1 problème qui fait que le serveur x ne peut pas se lancer  
soit parcequ'il manque qqchose (police ou autre) soit parce qu'il est mal configuré (en principe ya rien à configurer).
 
Sinon essaye de mettre à jour cygwin,

n°129238
symbiosis
Posté le 25-07-2002 à 08:48:47  profilanswer
 

je viens de telecharger cygwin sur le site officiel, c la derniere version........

n°129247
bobdupont
Posté le 25-07-2002 à 09:39:04  profilanswer
 

symbiosis a écrit a écrit :

je viens de telecharger cygwin sur le site officiel, c la derniere version........




 
Ouais ben c zarb pasque chez moi ça marche très bien.
Relance le setup ptetre que tu as oublié des packages ?


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs

  pb de lancement d'XFree sous Cygwin

 

Sujets relatifs
existe t-il un shell genre linux sous windows ?! [cygwin inside]compiler sous cygwin
Polices sou XFreeconfig Xfree 4.2
[Debian Woody] comment installer XFree et un Windows MakerPb de lancement de commande
[Debian] probleme avec Xfreecomment faire un su sous xfree hors commande console
[linux mandrake 8.2] décalage de l'écran sous xfree + gcc 2.96->2.95[XFree]Un Howto detaillé sur la compilation ? - Pb de compilation
Plus de sujets relatifs à : pb de lancement d'XFree sous Cygwin


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR