Problème pour configurer WineX

Nathalie -  
asevere Messages postés 13095 Date d'inscription   Statut Webmaster Dernière intervention   -
Bonsoir tout le monde !!

J'arrive pas à configurer WineX et pourant j'ai suivi à la lettre un tuto mais il semblerait que mon fichier root/.wine/config ne soit pas bien configuré car lorsque je tape wine setup.exe (fichier du CD à installer) j'ai le message suivant :

Fix your wine config (/root/.wine/config) to use DOS drive syntax in [wine] 'Path=' statement! (no '/' allowed)

Si quelqu'un voit d'ou ça peut venir, quoi faire,... car là j'en peut plus ça fait 5h que je suis deçu...

Bonne soirée sinon !!

Voici le contenu de mon fichier :
WINE REGISTRY Version 2
;; All keys relative to \\Machine\\Software\\Wine\\Wine\\Config

;; If you think it is nescessary to show others your complete config for a
;; bug report, filter out empty lines and comments with
;; grep -v "^;" ~/.wine/config | grep '.'
;;
;; MS-DOS drives configuration
;;
;; Each section has the following format:
;; [Drive X]
;; "Path"="xxx" (Unix path for drive root)
;; "Type"="xxx" (supported types are 'floppy', 'hd', 'cdrom' and 'network')
;; "Label"="xxx" (drive label, at most 11 characters)
;; "Serial"="xxx" (serial number, 8 characters hexadecimal number)
;; "Filesystem"="xxx" (supported types are 'msdos'/'dos'/'fat', 'win95'/'vfat', 'unix')
;; This is the FS Wine is supposed to emulate on a certain
;; directory structure.
;; Recommended:
;; - "win95" for ext2fs, VFAT and FAT32
;; - "msdos" for FAT16 (ugly, upgrading to VFAT driver strongly recommended)
;; DON'T use "unix" unless you intend to port programs using Winelib !
;; "Device"="/dev/xx" (only if you want to allow raw device access)
;;
[Drive C]
"Path" = "/usr/local/wine/bin/"
"Type" = "hd"
"Label" = "Dos Drive"
"Filesystem" = "win95"

[Drive D]
"Path" = "/usr/local/wine/bin"
"Type" = "hd"
"Label" = "My Home"
"Filesystem" = "win95"

[Drive E]
"Path" = "/tmp"
"Type" = "hd"
"Label" = "tmp"
"Filesystem" = "win95"

[Drive G]
"Path" = "/"
"Type" = "hd"
"Label" = "root"
"Filesystem" = "win95"

[wine]
"Windows" = "/usr/local/wine/bin"
"System" = "/usr/local/wine/bin"
"Temp" = "/usr/local/wine/bin"
"Path" = "/usr/local/wine/bin"
"GraphicsDriver" = "ttydrv"
; Wine doesn't pass directory symlinks to Windows programs by default.
; Enabling this may crash some programs that do recursive lookups of a whole
; subdir tree in case of a symlink pointing back to itself.
;"ShowDirSymlinks" = "1"
; Note: The WINESHELLLINK Environment variable will override this setting.
; (which is set in the winex startup script)
"ShellLinker" = "/usr/lib/transgaming/winex/bin/wineshelllink"
; Note: The WINEBROWSER Environment variable will override this setting.
; you may format the string by placing a %s where you want
; the URL to go, if its left off then the URL will be appended to the end.
; This option is used by the winelib app 'winebrowserlink'
"Browser" = "/usr/bin/mozilla %s"

# <wineconf>

[Version]
; This doesn't work in WineX, but its here for WineHQ compatability.
; can be (win95, win98, winme, nt351, nt40, win2k, winxp, win20, win30, win31)
"Windows" = "win98"
; dos version
;"DOS" = "6.22"

[DllDefaults]
"DefaultLoadOrder" = "native, builtin, so"

[DllOverrides]
"commdlg" = "builtin, native"
"comdlg32" = "builtin, native"
"ver" = "builtin, native"
"version" = "builtin, native"
"shell" = "builtin, native"
"shell32" = "builtin, native"
"shfolder" = "builtin, native"
"shlwapi" = "builtin, native"
"shdocvw" = "builtin, native"
"lzexpand" = "builtin, native"
"lz32" = "builtin, native"
"comctl32" = "builtin, native"
"commctrl" = "builtin, native"
"advapi32" = "builtin, native"
"crtdll" = "builtin, native"
"mpr" = "builtin, native"
"winspool.drv" = "builtin, native"
"d3d8" = "builtin, native"
"d3drm" = "builtin, native"
"ddraw" = "builtin, native"
"dinput" = "builtin, native"
"dinput8" = "builtin, native"
"dmusic" = "builtin, native"
"dsound" = "builtin, native"
"opengl32" = "builtin, native"
"msvcrt" = "native, builtin"
"rpcrt4" = "native, builtin"
"msvideo" = "builtin, native"
"msvfw32" = "builtin, native"
"mcicda.drv" = "builtin, native"
"mciseq.drv" = "builtin, native"
"mciwave.drv" = "builtin, native"
"mciavi.drv" = "native, builtin"
"mcianim.drv" = "native, builtin"
"msacm.drv" = "builtin, native"
"msacm" = "builtin, native"
"msacm32" = "builtin, native"
"midimap.drv" = "builtin, native"

[x11drv]
; Number of colors to allocate from the system palette
"AllocSystemColors" = "100"
; Number of colors to copy from the default palette
"CopyDefaultColors" = "0"
; Use a private color map
"PrivateColorMap" = "N"
; Favor correctness over speed in some graphics operations
"PerfectGraphics" = "N"
; Color depth to use on multi-depth screens
;;"ScreenDepth" = "16"
; Name of X11 display to use
;;"Display" = ":0.0"
; Allow the window manager to manage created windows
"Managed" = "Y"
; Use a desktop window of 640x480 for Wine
;"Desktop" = "800x600"
; Use XFree86 DGA extension if present
; (make sure /dev/mem is accessible by you !)
"UseDGA" = "N"
; Use XShm extension if present
"UseXShm" = "Y"
; Enable DirectX mouse grab
"DXGrab" = "Y"
; Use XVidMode extension if present
"UseXVidMode" = "Y"
; Create the desktop window with a double-buffered visual
; (useful to play OpenGL games)
"DesktopDoubleBuffered" = "Y"
; Code page used for captions in managed mode
; 0 means default ANSI code page (CP_ACP == 0)
"TextCP" = "0"
; Use this if you have more than one port for video on your setup
; (Wine uses for now the first 'input image' it finds).
;; "XVideoPort" = "43"
; Use this to make your X server execute all commands
; sequentially rather than buffering commands. Will make
; everything really SLOW but can be nice for debugging.
;; "Synchronous" = "Y"

[fonts]
;Read documentation/fonts before adding aliases
"Resolution" = "96"
"Default" = "-adobe-times-"

[FontPatterns]
"Pattern0" = "-adobe-times*"
"Pattern1" = "-adobe-helvetica*"
"Pattern2" = "-adobe-courier*"
"Pattern3" = "-misc-fixed*"

[serialports]
"Com1" = "/dev/ttyS0"
"Com2" = "/dev/ttyS1"
"Com3" = "/dev/ttyS2"
"Com4" = "/dev/modem"

[parallelports]
"Lpt1" = "/dev/lp0"

[spooler]
"LPT1:" = "|lpr"
"LPT2:" = "|gs -sDEVICE=bj200 -sOutputFile=/tmp/fred -q -"
"LPT3:" = "/dev/lp3"

[ports]
;"read" = "0x779,0x379,0x280-0x2a0"
; "write" = "0x779,0x379,0x280-0x2a0"

[spy]
"Exclude" = "WM_SIZE;WM_TIMER;"

[registry]
;These are all booleans. Y/y/T/t/1 are true, N/n/F/f/0 are false.
;Defaults are read all, write to Home
; Global registries (stored in /etc)
"LoadGlobalRegistryFiles" = "n"
; Home registries (stored in ~user/.wine/)
"LoadHomeRegistryFiles" = "Y"
; Load Windows registries from the Windows directory
"LoadWindowsRegistryFiles" = "n"
; TRY to write all changes to home registries
"WritetoHomeRegistryFiles" = "Y"
; Registry periodic save timeout in seconds
; "PeriodicSave" = "600"
; Save only modified keys
"SaveOnlyUpdatedKeys" = "Y"

[Tweak.Layout]
;; supported styles are 'Win31'(default), 'Win95', 'Win98'
"WineLook" = "Win98"

[Console]
"Drivers" = "xterm"
;"Drivers" = "tty"
"XtermProg" = "konsole"
;"InitialRows" = "25"
;"InitialColumns" = "80"
;"TerminalType" = "nxterm"

[Clipboard]
"ClearAllSelections" = "0"
"PersistentSelection" = "1"

; List of all directories directly contain .AFM files
[afmdirs]
;"1" = "/usr/share/ghostscript/fonts"
;"2" = "/usr/share/a2ps/afm"
;"3" = "/usr/share/enscript"
;"4" = "/usr/X11R6/lib/X11/fonts/Type1"

[WinMM]
"Drivers" = "wineoss.drv"
"WaveMapper" = "msacm.drv"
"MidiMapper" = "midimap.drv"

[wineoss]
"UseMMap" = "Y"
"FullDuplex" = "N"

;; sample AppDefaults entries
;[AppDefaults\\iexplore.exe\\DllOverrides]
;"shlwapi" = "native"
;"rpcrt4" = "native"
;"ole32" = "native"
;"shdocvw" = "native"
;"wininet" = "native"
;"shfolder" = "native"
;"shell32" = "native"
;"shell" = "native"
;"comctl32" = "native"
;
;[AppDefaults\\setup.exe\\x11drv]
;"Desktop" = "800x600"

# </wineconf>

3 réponses

asevere Messages postés 13095 Date d'inscription   Statut Webmaster Dernière intervention   426
 
Salut,

Je pense que le message qu'il te donne est suffisament clair :)

Fix your wine config (/root/.wine/config) to use DOS drive syntax in [wine] 'Path=' statement! (no '/' allowed)


Essaie ça:
[wine]
"Windows" = "/usr/local/wine/bin"
"System" = "/usr/local/wine/bin"
"Temp" = "/usr/local/wine/bin"
"Path" = "C:\un\path\a\la\windows"
"GraphicsDriver" = "ttydrv" 


Le 'path' de la section [Wine] et l'equivalent de la variable path dans windows et linux, l'endroit ou le systeme va en priorité chercher les executable. il ne représente pas, comme dans les sections [Drive], l'endroit ou se trouve le lecteur dans l'arboresence linux.

PS: il faudra sans doutes les meme changement pour "windows" "system" "temp" ("C:\windows" "C:\windows\system"...)

@++
"Si c'est stupide et que ça marche,
        alors ce n'est pas stupide"
0
Nathalie
 
Merci beaucoup de ta réponse Asevere !

Que je suis sote... mais oui.. il fallait changer le sens des '/'. En faite j'ai remis l'originale, CAD

[wine]
"Windows" = "c:\\windows"
"System" = "c:\\windows\\system32\\"
"Temp" = "e:\\"
"Path" = "c:\\windows\\;c:\\windows\\system32\\"
"GraphicsDriver" = "x11drv"

Mais maintenant j'ai droit à ça

Invalid path L"c:\\windows" for L"windows" directory: does not exist.
Perhaps you have not properly edited your Wine configuration file (/root/.wine/config)

Je vois ce que ça veux dire mais je sais pas quoi mettre du tout, je suis démoraliser ça fait maintenant 7h que je m'acharne sur ce truc.
0
asevere Messages postés 13095 Date d'inscription   Statut Webmaster Dernière intervention   426
 
Salut Nathalie,
Donc quand tu lui dit: "C:\\windows" il ne trouve pas le dossier "windows" dans le "C:\"
Ici, ton "C:\" correspond (dans la declaration [Drive C]) à: "/usr/local/wine/bin/"

En gros, le probleme vient du fait qu'il n'y a pas de dossier:
/usr/local/wine/bin/windows :)

Regarde ce que tu as dedans, c'est peut-être "Windows" avec une majuscule, ou "WINNT", etc. :)

@++
"Si c'est stupide et que ça marche,
        alors ce n'est pas stupide"
0
Nathalie
 
Salut Asevere !

Merci de m'avoir encore répondu. J'ai été voir le répertoire /usr/local/wine/bin/
et il n'y a pas de répertoire Windows en faite il se trouve dans dans /root/toto/windows (C moi qui l'ai configuré là lors de l'installation de WineX)

En gros mon fichier /root/.wine/config donne ça maintenant :

[Drive C]
"Path" = "${HOME}/.transgaming/c_drive/"
"Type" = "hd"
"Label" = "Dos Drive"
"Filesystem" = "win95"

[wine]
"Windows" = "/root/toto/windows"
"System" = "/root/toto/windows/system"
"Temp" = "e:\\"
"Path" = "c:\\windows\\;c:\\windows\\system32\\"
"GraphicsDriver" = "ttydrv"

Mais dans le Path je sais pas quoi mettre et j'imagine que le sens des '/' n'est pas bon pour "Windows" non ?

Bref, je commence vraiment à m'embrouillé dans ce ficher.

Bonne journée !!
0
asevere Messages postés 13095 Date d'inscription   Statut Webmaster Dernière intervention   426
 
Oki,

Tu dois donc avoir un drive D avec pour path "/root/toto/"
Et ensuite, pour windows, un truc du genre "D:\\windows"

Ceci dit, je vais laissaer d'autre personne te le confirmer, par ce que la je suis trés trés trés juste niveau temps... :)

@++
"Si c'est stupide et que ça marche,
        alors ce n'est pas stupide"
0