[Comm] Вопросы по Wine

anterior =?iso-8859-1?q?anterior_=CE=C1_inbox=2Eru?=
Ср Апр 27 08:38:34 MSD 2005


1.) Как заставить работать MIDI. Например я запускаю программу GuitarPro4, в 
настройках выбираються MIDI порты:
	Emu10k1
	MIDI 0-0
	Emu10k1 port 0
	Emu10k1 port 1
	Emu10k1 port 2
	Emu10k1 port 3
При выборе первого из них выдаеться сообщение: 'Невозможно открыть MIDI-порт 
[Emu10k1]. Закройте, пожалуйста другую программу, использующую MIDI, или 
измените настройки MIDI.' Остальные просто не играют не выдавая 
информационных сообщений.

2) Большинство программ не работает из-за такой ошибки: 'The file 
'OLEAUT32.DLL' is out of date. This program requires a newer version'

3) Можно ли увеличить скорость работы эмулятора. Почти каждую программу он 
открывает только через пол минуты, это минимум. И вообще программы работают 
медленно. Как игры работают я даже не проверял ;)

4) Как это исправить в kde: например если в имени файла встречается пробел, то 
wine просто не находит ее.
'C:\Windows\Note Pad.exe' (Я установил связь *.exe с wine в kde чтобы он 
открывал мне её прям из Konqueror)

Звуковая карта SBLive, alsa драйвер. Версия Wine 20021031. WindowsXP SP2. 
AltLinux Master 2.2 Конфиг во вложении





----------- следующая часть -----------
WINE REGISTRY Version 2
;; All keys relative to \\Machine\\Software\\Wine\\Wine\\Config

;; If you think it is necessary 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 A]
"Path" = "/mnt/floppy"
"Type" = "floppy"
"Label" = "Floppy"
"Filesystem" = "win95"
"Device" = "/dev/fd0"

[Drive C]
"Path" = "/mnt/windows"
"Type" = "hd"
"Label" = "Drive C"
"Filesystem" = "win95"

[Drive D]
"Path" = "/mnt/win_d"
"Type" = "hd"
"Label" = "Drive D"
"Filesystem" = "win95"

[Drive E]
"Path" = "/mnt/maxim"
"Type" = "network"
"Label" = "Home drive"
"Filesystem" = "win95"

[Drive F]
"Path" = "/mnt/cdrom2"
"Type" = "cdrom"
"Label" = "DVD-ROM"
"Filesystem" = "win95"
"Device" = "/dev/cdrom2"

[Drive G]
"Path" = "/mnt/cdrom"
"Type" = "cdrom"
"Label" = "DVD-RW"
"Filesystem" = "win95"
"Device" = "/dev/cdrom"

[Drive H]
"Path" = "/tmp/winetmp-${USER}"
"Type" = "hd"
"Label" = "Tmp Drive"
"Filesystem" = "win95"

[Drive I]
"Path" = "${HOME}"
"Type" = "network"
"Label" = "Home"
"Filesystem" = "win95"

[wine]
"Windows" = "C:\\WINDOWS"
"System" = "C:\\WINDOWS\\SYSTEM"
"Temp" = "H:\\"
"Path" = "C:\\WINDOWS;C:\\WINDOWS\\SYSTEM;C:\\WINDOWS\\SYSTEM32"
"Profile" = "c:\\windows\\Profiles\\Administrator"
"GraphicsDriver" = "x11drv"
;"ShowDirSymlinks" = "1"
;"ShowDotFiles" = "1"
"ShellLinker" = "wineshelllink"

# <wineconf>

[Version]
; Windows version to imitate (win95,win98,winme,nt351,nt40,win2k,winxp,win20,win30,win31)
;;"Windows" = "nt40"
"Windows" = "winxp"
; DOS version to imitate
"DOS" = "6.22"

; Be careful here, wrong DllOverrides settings have the potential
; to pretty much kill your setup.
[DllOverrides]
; some dlls you may want to change
"oleaut32"     = "builtin, native"
"ole32"        = "builtin, native"
"commdlg"      = "builtin, native"
"comdlg32"     = "builtin, native"
"shell"        = "builtin, native"
"shell32"      = "builtin, native"
"shfolder"     = "builtin, native"
"shlwapi"      = "builtin, native"
"shdocvw"      = "builtin, native"
"advapi32"     = "builtin, native"
"msvcrt"       = "native, builtin"
"mciavi.drv"   = "native, builtin"
"mcianim.drv"  = "native, builtin"
; you can specify applications too
; this one will apply for all notepad.exe
"*notepad.exe" = "native, builtin"
; this one will apply only for a particular file
"C:\\windows\\regedit.exe" = "native, builtin"
; default for all other dlls
"*" = "builtin, native"

[x11drv]
; Number of colors to allocate from the system palette
"AllocSystemColors" = "100"
; Use a private color map
"PrivateColorMap" = "N"
; Favor correctness over speed in some graphics operations
"PerfectGraphics" = "Y"
; Color depth to use on multi-depth screens
;;"ScreenDepth" = "24"
; 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" = "Y"
; Use XShm extension if present
"UseXShm" = "Y"
; Use XVidMode extension if present
"UseXVidMode" = "Y"
; Use the take focus protocol
"UseTakeFocus" = "Y"
; Enable DirectX mouse grab
"DXGrab" = "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"
; Run in synchronous mode (useful for debugging X11 problems)
;;"Synchronous" = "Y"

[fonts]
;Read the Fonts topic in the Wine User Guide before adding aliases
;See a couple of examples for russian users below
;"Resolution" = "96"
;"Default" = "-adobe-helvetica-"
;"DefaultFixed" = "fixed"
;"DefaultSerif" = "-adobe-times-"
;"DefaultSansSerif" = "-adobe-helvetica-"

;; default TrueType fonts with russian koi8-r encoding
;"Default" = "-monotype-arial-*-*-*--*-*-*-*-*-*-koi8-r"
;"DefaultFixed" = "-monotype-courier new-*-*-*--*-*-*-*-*-*-koi8-r"
;"DefaultSerif" = "-monotype-times new roman-*-*-*--*-*-*-*-*-*-koi8-r"
;"DefaultSansSerif" = "-monotype-arial-*-*-*--*-*-*-*-*-*-koi8-r"
;; default cyrillic bitmap X fonts
"Default" = "-rfx-helvetica-"
"DefaultFixed" = "fixed"
"DefaultSerif" = "-rfx-times-"
"DefaultSansSerif" = "-rfx-helvetica-"

; the TrueType font dirs you want to make accessible to wine
[FontDirs]
"dir1" = "/mnt/windows/windows/Fonts"
"dir2"="/usr/X11R6/lib/X11/fonts"
;"dir2" = "/usr/X11R6/lib/X11/fonts/urw-ttf"
;"dir2" = "/usr/share/fonts/truetype"
;"dir3" = "/usr/X11R6/lib/X11/fonts/TT"
;"dir4" = "/usr/share/fonts/TT"

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

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

[ppdev]
;; key:  io-base of the emulated port
;; value : parport-device{,timeout}
;; timeout for auto closing an open device ( not yet implemented)
;"378" = "/dev/parport0"
;"278" = "/dev/parport1"
;"3bc" = "/dev/parport2"

[spooler]
"FILE:" = "tmp.ps"
"LPT1:" = "|lpr"
"LPT2:" = "|gs -sDEVICE=bj200 -sOutputFile=/tmp/winetmp-${USER} -q -"
"LPT3:" = "/dev/lp3"

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

[Debug]
;"RelayExclude" = "RtlEnterCriticalSection;RtlLeaveCriticalSection"
;"RelayInclude" = "user32.CreateWindowA"
;"SnoopExclude" = "RtlEnterCriticalSection;RtlLeaveCriticalSection"
;"SpyExclude" = "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
; Where to find the global registries
;"GlobalRegistryDir" = "/etc";
; Global registries (stored in /etc)
"LoadGlobalRegistryFiles" = "Y"
; Home registries (stored in ~user/.wine/)
"LoadHomeRegistryFiles" = "Y"
; Load Windows registries from the Windows directory
"LoadWindowsRegistryFiles" = "Y"
; 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'
;; this has *nothing* to do with the windows version Wine returns:
;; set the "Windows" value in the [Version] section if you want that.
"WineLook" = "Win98"

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

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

; List of all directories directly contain .AFM files
[afmdirs]
"1" = "/usr/share/fonts/default/Type1"
"2" = "/usr/share/fonts/default/Type1-sharatype"
"3" = "/usr/share/fonts/default/Type1-dmtr40in"
"4" = "/usr/share/fonts/default/Type1-Decor"
"5" = "/usr/share/enscript"

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

[dsound]
;; HEL only: Number of waveOut fragments ahead to mix in new buffers.
;"HELmargin" = "5"
;; HEL only: Number of waveOut fragments ahead to queue to driver.
;"HELqueue" = "5"
;; Max number of fragments to prebuffer
;"SndQueueMax" = "28"
;; Min number of fragments to prebuffer
;"SndQueueMin" = "12"

;; 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"
;
;[AppDefaults\\sol.exe\\Version]
;"Windows" = "nt40"
;;[C:\\Windows\\Program Files\\DVDInfoPro\\DvdInfo.exe]
;;"Windows" = "nt40"
;
;; Some games (Quake 2, UT) refuse to accept emulated dsound devices.
;; You can add an AppDefault entry like this for such cases.
;[AppDefaults\\pickygame.exe\\dsound]
;"EmulDriver" = "N"

# </wineconf>


Подробная информация о списке рассылки community