1 <chapter id=
"config-wine-main">
2 <title>Configuring Wine
</title>
4 Now that you hopefully managed to successfully install
5 the Wine program files,
6 this chapter will tell you how to configure the Wine environment
7 properly to run your Windows programs.
10 First, we'll give you an overview about which kinds of
11 configuration and program execution aspects a fully configured
12 Windows environment has to fulfill in order to ensure that many
13 Windows programs run successfully without encountering any
14 misconfigured or missing items.
15 Next, we'll show you which easy helper programs exist
16 to enable even novice users to complete the Wine environment
17 configuration in a fast and easy way.
18 The next section will explain the purpose of the Wine configuration file,
19 and we'll list all of its settings.
20 After that, the next section will detail the most important and
21 unfortunately most difficult configuration part:
22 how to configure the file system and DOS drive environment that
23 Windows programs need.
24 In the last step we'll tell you how to establish a working Windows
26 Finally, the remaining parts of this chapter contain descriptions
27 of specific Wine configuration items that might also be
31 <sect1 id=
"config-requirements-windows" xreflabel=
"--Installing Section--">
32 <title>What are the requirements of a fully working Windows environment?
</title>
35 A Windows installation is a very complex structure. It consists of
36 many different parts with very different functionality.
37 We'll try to outline the most important aspects of it.
43 Registry. Many keys are supposed to exist and contain
44 meaningful data, even in a newly-installed Windows.
49 Directory structure. Applications expect to find and/or
50 install things in specific predetermined locations. Most
51 of these directories are expected to exist. But unlike
52 Unix directory structures, most of these locations are
53 not hardcoded, and can be queried via the Windows API
54 and the registry. This places additional requirements on
60 System DLLs. In Windows, these usually reside in the
61 <filename>system
</filename> (or
62 <filename>system32
</filename>) directory. Some Windows
63 programs check for their existence in these
64 directories before attempting to load them. While Wine
65 is able to load its own internal DLLs
66 (
<filename>.so
</filename> files) when the program
67 asks for a DLL, Wine does not simulate the presence of
74 While the users are of course free to set up everything
75 themselves, the Wine team will make the automated Wine source
76 installation script,
<filename>tools/wineinstall
</filename>,
77 do everything we find necessary to do; running the
78 conventional
<userinput>configure && make depend && make && make
79 install
</userinput> cycle is thus not recommended, unless
80 you know what you're doing. At the moment,
81 <filename>tools/wineinstall
</filename> is able to create a
82 configuration file, install the registry, and create the
83 directory structure itself.
88 <sect1 id=
"config-helper-programs">
89 <title>Easy configuration helper programs
</title>
92 Managing the Wine configuration file settings can be a
93 difficult task, sometimes too difficult for some people.
94 That's why there are some helper applications for easily setting up an
95 initial wine configuration file with useful default settings.
98 <sect2 id=
"config-helper-winesetuptk">
99 <title>WineSetupTk
</title>
101 WineSetupTk is a graphical Wine configuration tool with
102 incredibly easy handling of Wine configuration issues, to be
103 used for configuring the Wine environment after having
104 installed the Wine files.
105 It has been written by CodeWeavers in
2000 as part of a host
106 of other efforts to make Wine more desktop oriented, and updated
107 in
2003 by Vincent BĂ©ron, Alex Pasadyn and Ivan Leo Puoti.
110 If you're using Debian, simply install the WineSetupTk
114 <prompt>#
</prompt><userinput>apt-get install winesetuptk
</userinput>
117 If you're using another distribution, you can get WineSetupTk from the
118 <ulink url=
"http://sourceforge.net/project/showfiles.php?group_id=6241">
119 sourceforge.net Wine download page
</ulink>
123 <sect2 id=
"config-helper-wineinstall">
124 <title>wineinstall
</title>
126 <command>wineinstall
</command> is a small configuration tool
127 residing as
<filename>tools/wineinstall
</filename> in a Wine
128 source code tree. It has been written to allow for an easy
129 and complete compilation/installation of Wine source code for
130 people who don't bother with reading heaps of very valuable
131 and informative documentation ;-)
134 Once you have successfully extracted the Wine source code
135 tree, change to the main directory of it and then run (as
139 <prompt>$
</prompt><userinput>./tools/wineinstall
</userinput>
142 Doing so will compile Wine, install Wine and configure the
143 Wine environment (either by providing access to a Windows
144 partition or by creating a properly configured no-windows
145 directory environment).
150 Commenting out until winecfg doesn't actually do something.
151 <sect2 id="config-helper-winecfg">
152 <title>winecfg</title>
154 <command>winecfg</command> is a small graphical configuration tool
155 residing as <filename>programs/winecfg</filename> in a Wine
156 source code tree. It is a Winelib app making use of standard
157 Win32 GUI controls to easily customize entries in a Wine
164 <sect1 id=
"config-verify">
165 <title>Verification of correct configuration
</title>
168 TODO: After you have finished configuring Wine you can verify
169 your Wine configuration by running winecfg.
170 This functionality will be added to winecfg
175 configuration documentation below to find out more about Wine's
176 configuration, or proceed to the
<link linkend=
"bugs">Troubleshooting
181 <sect1 id=
"config-file">
182 <title>The Wine Configuration File
</title>
184 This section is meant to contain both an easy step-by-step introduction
185 to the Wine configuration file (for new Wine users)
186 and a complete reference to all Wine configuration file settings (for
191 <title>Configuration File Introduction
</title>
193 The Wine configuration file is the central file to store
194 configuration settings for Wine.
195 This file (which is called
<filename>config
</filename>)
196 can be found in the sub directory
<filename>.wine/
</filename>
197 of your user's home directory
198 (directory
<filename>/home/user/
</filename>). In other words, the Wine
199 configuration file is
<filename>~/.wine/config
</filename>.
200 Note that since the Wine configuration file is a part of the
201 Wine registry file system, this file also
202 <emphasis>requires
</emphasis> a correct
"WINE REGISTRY
203 Version 2" header line to be recognized properly, just like
204 all other Wine registry text files (just in case you decided
205 to write your own registry file from scratch and wonder why
206 Wine keeps rejecting it).
209 The settings available in the configuration file include:
213 Drives and information about them
228 The Wine look and feel
238 Wine's multimedia drivers and DLL configuration
246 <title>Creating Or Modifying The Configuration File
</title>
248 If you just installed Wine for the first time and want to
249 finish Wine installation by configuring it now, then you could
250 use our sample configuration file
<filename>config
</filename>
251 (which can be found in the directory
252 <filename>documentation/samples/
</filename> of the Wine source
253 code directory) as a base for adapting the Wine configuration
254 file to the settings you want.
255 First, I should mention that you should not forget to make
256 sure that any previous configuration file at
257 <filename>~/.wine/config
</filename> has been safely moved out
258 of the way instead of simply overwriting it when you will now
259 copy over the sample configuration file.
262 If you don't have a pre-existing configuration file and thus
263 need to copy over our sample configuration file to the
264 standard Wine configuration file location, do in a
265 <glossterm>terminal
</glossterm>:
267 <prompt>$ <
/><userinput>mkdir ~/.wine/<
/>
268 <prompt>$ <
/><userinput>cp
<replaceable>dir_to_wine_source_code
</replaceable>/documentation/samples/config ~/.wine/config<
/>
270 Otherwise, simply use the already existing configuration file
271 at
<filename>~/.wine/config
</filename>.
274 Now you can start adapting the configuration file's settings with an
275 <glossterm>editor
</glossterm> according to the documentation
277 Note that you should
<emphasis>only
</emphasis> change
278 configuration file settings if wineserver is not running (in
279 other words: if your user doesn't have a Wine session running),
280 otherwise Wine won't use them - and even worse, wineserver will
281 overwrite them with the old settings once wineserver quits!!
285 <sect2 id=
"config-file-how">
286 <title>What Does It Contain?
</title>
289 Let's start by giving an overview of which sections a
290 configuration file may contain, and whether the inclusion of
291 the respective section is
<emphasis>needed
</emphasis> or only
<emphasis>recommended
</emphasis> (
"recmd").
294 <informaltable frame=
"all">
298 <entry>Section Name
</entry>
299 <entry>Needed?
</entry>
300 <entry>What it Does
</entry>
305 <entry>[Drive x]
</entry>
307 <entry>Sets up drive mappings to be used by Wine
</entry>
310 <entry>[wine]
</entry>
312 <entry>General settings for Wine
</entry>
315 <entry>[DllOverrides]
</entry>
317 <entry>Overrides defaults for DLL loading
</entry>
320 <entry>[x11drv]
</entry>
322 <entry>Graphics driver settings
</entry>
325 <entry>[fonts]
</entry>
327 <entry>Font appearance and recognition
</entry>
330 <entry>[serialports]
</entry>
332 <entry>COM ports seen by Wine
</entry>
335 <entry>[parallelports]
</entry>
337 <entry>LPT ports seen by Wine
</entry>
340 <entry>[ppdev]
</entry>
342 <entry>Parallelport emulation
</entry>
345 <entry>[spooler]
</entry>
347 <entry>Print spooling
</entry>
350 <entry>[ports]
</entry>
352 <entry>Direct port access
</entry>
355 <entry>[Debug]
</entry>
357 <entry>What to do with certain debug messages
</entry>
360 <entry>[Registry]
</entry>
362 <entry>Specifies locations of windows registry files
</entry>
365 <entry>[programs]
</entry>
367 <entry>Programs to be run automatically
</entry>
370 <entry>[Console]
</entry>
372 <entry>Console settings
</entry>
375 <entry>[Clipboard]
</entry>
377 <entry>Interaction for Wine and X11 clipboard
</entry>
380 <entry>[afmdirs]
</entry>
382 <entry>Postscript driver settings
</entry>
385 <entry>[WinMM]
</entry>
387 <entry>Multimedia settings
</entry>
390 <entry>[AppDefaults]
</entry>
392 <entry>Overwrite the settings of previous sections for special programs
</entry>
399 Now let's explain the configuration file sections in a
404 <title>The [Drive x] Sections
</title>
406 For a detailed description of these configuration file
407 sections which are used to set up DOS drive mappings to Unix
408 directory space, please look at the
<link
409 linkend=
"config-drive-sections">Wine file system layer
410 configuration section
</link>.
414 <sect3 id=
"config-wine">
415 <title>The [wine] Section
</title>
417 The [wine] section of the configuration file contains all kinds
418 of general settings for Wine.
422 "Windows" =
"c:\\windows"
423 "System" =
"c:\\windows\\system"
425 "Path" =
"c:\\windows;c:\\windows\\system;c:\\blanco"
426 "ShowDirSymlinks" =
"1"
428 For a detailed description of drive layer configuration and
429 the meaning of these parameters, please look at the
<link
430 linkend=
"config-drive-main">Wine file system layer
431 configuration section
</link>.
434 <programlisting>"GraphicsDriver" =
"x11drv|ttydrv"</programlisting>
435 Sets the graphics driver to use for Wine output.
436 x11drv is for X11 output, ttydrv is for text console output.
437 WARNING: if you use ttydrv here, then you won't be able to run
438 a lot of Windows GUI programs (ttydrv is still pretty
"broken"
439 at running graphical apps). Thus this option is mainly interesting
440 for e.g. embedded use of Wine in web server scripts.
441 Note that ttydrv is still very lacking, so if it doesn't work,
442 resort to using
"xvfb", a virtual X11 server.
443 Another way to run Wine without display would be to run X11
444 via Xvnc, then connect to that VNC display using xvncviewer
445 (that way you're still able to connect to your app and
446 configure it if need be).
449 <programlisting>"Printer" =
"off|on"</programlisting> Tells wine
450 whether to allow printing via printer drivers to work.
451 This option isn't needed for our built-in psdrv printer driver
453 Using these things are pretty alpha, so you might want to
454 watch out. Some people might find it useful, however. If
455 you're not planning to work on printing via windows printer
456 drivers, don't even add this to your wine configuration file
457 (It probably isn't already in it).
458 Check out the [spooler] and [parallelports] sections too.
461 <programlisting>"ShellLinker" =
"wineshelllink"</programlisting>
462 This setting specifies the shell linker script to use for setting
463 up Windows icons in e.g. KDE or Gnome that are given by programs
464 making use of appropriate shell32.dll functionality to create
465 icons on the desktop/start menu during installation.
468 <programlisting>"SymbolTableFile" =
"wine.sym"</programlisting>
469 Sets up the symbol table file for the wine debugger. You
470 probably don't need to fiddle with this. May be useful if
471 your wine is stripped.
475 <sect3 id=
"config-dlloverrides">
476 <title>The [DllOverrides] Section
</title>
478 The format for this section is the same for each line:
479 <programlisting><DLL
>{,
<DLL
>,
<DLL
>...} =
<FORM
>{,
<FORM
>,
<FORM
>...}
</programlisting>
480 For example, to load built-in KERNEL pair (case doesn't
482 <programlisting>"kernel,kernel32" =
"builtin"</programlisting>
483 To load the native COMMDLG pair, but if that doesn't work
485 <programlisting>"commdlg,comdlg32" =
"native, builtin"</programlisting>
486 To load the native COMCTL32:
487 <programlisting>"comctl32" =
"native"</programlisting>
488 Here is a good generic setup (As it is defined in config
489 that was included with your wine package):
492 "rpcrt4" =
"builtin, native"
493 "oleaut32" =
"builtin, native"
494 "ole32" =
"builtin, native"
495 "commdlg" =
"builtin, native"
496 "comdlg32" =
"builtin, native"
497 "ver" =
"builtin, native"
498 "version" =
"builtin, native"
499 "shell" =
"builtin, native"
500 "shell32" =
"builtin, native"
501 "shfolder" =
"builtin, native"
502 "shlwapi" =
"builtin, native"
503 "shdocvw" =
"builtin, native"
504 "lzexpand" =
"builtin, native"
505 "lz32" =
"builtin, native"
506 "comctl32" =
"builtin, native"
507 "commctrl" =
"builtin, native"
508 "advapi32" =
"builtin, native"
509 "crtdll" =
"builtin, native"
510 "mpr" =
"builtin, native"
511 "winspool.drv" =
"builtin, native"
512 "ddraw" =
"builtin, native"
513 "dinput" =
"builtin, native"
514 "dsound" =
"builtin, native"
515 "opengl32" =
"builtin, native"
516 "msvcrt" =
"native, builtin"
517 "msvideo" =
"builtin, native"
518 "msvfw32" =
"builtin, native"
519 "mcicda.drv" =
"builtin, native"
520 "mciseq.drv" =
"builtin, native"
521 "mciwave.drv" =
"builtin, native"
522 "mciavi.drv" =
"native, builtin"
523 "mcianim.drv" =
"native, builtin"
524 "msacm.drv" =
"builtin, native"
525 "msacm" =
"builtin, native"
526 "msacm32" =
"builtin, native"
527 "midimap.drv" =
"builtin, native"
528 ; you can specify programs too
529 "notepad.exe" =
"native, builtin"
530 ; default for all other DLLs
531 "*" =
"native, builtin"
536 If loading of the libraries that are listed first fails,
537 wine will just go on by using the second or third option.
542 <sect3 id=
"config-fonts">
543 <title>The [fonts] Section
</title>
545 This section sets up wine's font handling.
548 <programlisting>"Resolution" =
"96"</programlisting>
549 Since the way X handles fonts is different from the way
550 Windows does, wine uses a special mechanism to deal with
551 them. It must scale them using the number defined in the
552 "Resolution" setting.
60-
120 are reasonable values,
96 is
553 a nice in the middle one. If you have the real windows
554 fonts available , this parameter will not be as
555 important. Of course, it's always good to get your X fonts
556 working acceptably in wine.
559 <programlisting>"Default" =
"-adobe-times-"</programlisting>
560 The default font wine uses. Fool around with it if you'd like.
566 The
<literal>Alias
</literal> setting allows you to map an X font to a font
567 used in wine. This is good for apps that need a special font you don't have,
568 but a good replacement exists. The syntax is like so:
569 <programlisting>"AliasX" =
"[Fake windows name],[Real X name]"<,optional
"masking" section
></programlisting>
570 Pretty straightforward. Replace
"AliasX" with
"Alias0",
571 then
"Alias1" and so on. The fake windows name is the name
572 that the font will be under a windows app in wine. The
573 real X name is the font name as seen by X (Run
574 "xfontsel"). The optional
"masking" section allows you to
575 utilize the fake windows name you define. If it is not
576 used, then wine will just try to extract the fake windows
577 name itself and not use the value you enter.
580 Here is an example of an alias without masking. The font will show up in windows
582 <programlisting>"Alias0" =
"Foo,--google-"</programlisting>
583 Here is an example with masking enabled. The font will show up as
"Foo" in
585 <programlisting>"Alias1" =
"Foo,--google-,subst"</programlisting>
586 For more information check out the
<link linkend=
"config-fonts-main">Fonts
</link>
591 <sect3 id=
"config-io">
592 <title>The [serialports], [parallelports], [spooler], and [ports] Sections
</title>
594 Even though it sounds like a lot of sections, these are
595 all closely related. They are all for communications and
599 The [serialports] section tells wine what serial ports it
601 <programlisting>"ComX" =
"/dev/ttySY"</programlisting>
602 Replace
<literal>X
</literal> with the number of the COM
603 port in Windows (
1-
8) and
<literal>Y
</literal> with the
604 number of it in
<literal>X
</literal> (Usually the number
605 of the port in Windows minus
1).
<literal>ComX
</literal>
606 can actually equal any device
607 (
<medialabel>/dev/modem
</medialabel> is acceptable). It is
608 not always necessary to define any COM ports (An optional
609 setting). Here is an example:
610 <programlisting>"Com1" =
"/dev/ttyS0"</programlisting>
611 Use as many of these as you like in the section to define
612 all of the COM ports you need.
615 The [parallelports] section sets up any parallel ports
616 that will be allowed access under wine.
617 <programlisting>"LptX" =
"/dev/lpY"</programlisting>
618 Sounds familiar? Syntax is just like the COM port setting.
619 Replace
<literal>X
</literal> with a value from
1-
4 as it
620 is in Windows and
<literal>Y
</literal> with a value from
621 0-
3 (
<literal>Y
</literal> is usually the value in windows
622 minus
1, just like for COM ports). You don't always need
623 to define a parallel port (AKA, it's optional). As with
624 the other section, LptX can equal any device (Maybe
625 <medialabel>/dev/printer
</medialabel>). Here is an
626 example:
<programlisting>"Lpt1" =
"/dev/lp0"</programlisting>
627 The [spooler] section will inform wine where to spool
628 print jobs. Use this if you want to try printing. Wine
629 docs claim that spooling is
"rather primitive" at this
630 time, so it won't work perfectly.
<emphasis>It is optional.
</emphasis> The only
631 setting you use in this section works to map a port (LPT1,
632 for example) to a file or a command. Here is an example,
633 mapping LPT1 to the file
<filename>out.ps
</filename>:
634 <programlisting>"LPT1:" =
"out.ps"</programlisting>
635 The following command maps printing jobs to LPT1 to the
636 command
<command>lpr
</command>. Notice the |:
637 <programlisting>"LPT1:" =
"|lpr"</programlisting>
638 The [ports] section is usually useful only for people who
639 need direct port access for programs requiring dongles or
640 scanners.
<emphasis>If you don't need it, don't use
644 <programlisting>"read" =
"0x779,0x379,0x280-0x2a0"</programlisting>
645 Gives direct read access to those IO's.
648 <programlisting>"write" =
"0x779,0x379,0x280-0x2a0"</programlisting>
649 Gives direct write access to those IO's. It's probably a
650 good idea to keep the values of the
651 <literal>read
</literal> and
<literal>write
</literal>
652 settings the same. This stuff will only work when you're
657 <sect3 id=
"config-debug-etc">
658 <title>The [Debug], [Registry], and [programs] Sections
</title>
660 [Debug] is used to include or exclude debug messages, and to
661 output them to a file. The latter is rarely used.
<emphasis>These
662 are all optional and you probably don't need to add or
663 remove anything in this section to your config.
</emphasis> (In extreme
664 cases you may want to use these options to manage the amount
665 of information generated by
<parameter>WINEDEBUG=+relay
669 <programlisting>"File" =
"/blanco"</programlisting>
670 Sets the logfile for wine. Set to CON to log to standard out.
671 <emphasis>This is rarely used.
</emphasis>
674 <programlisting>"SpyExclude" =
"WM_SIZE;WM_TIMER;"</programlisting>
675 Excludes debug messages about
<constant>WM_SIZE
</constant>
676 and
<constant>WM_TIMER
</constant> in the logfile.
679 <programlisting>"SpyInclude" =
"WM_SIZE;WM_TIMER;"</programlisting>
680 Includes debug messages about
<constant>WM_SIZE
</constant>
681 and
<constant>WM_TIMER
</constant> in the logfile.
684 <programlisting>"RelayInclude" =
"user32.CreateWindowA;comctl32.*"</programlisting>
685 Include only the listed functions in a
686 <parameter>WINEDEBUG=+relay
</parameter> trace. This entry is
687 ignored if there is a
<parameter>RelayExclude
</parameter> entry.
690 <programlisting>"RelayExclude" =
"RtlEnterCriticalSection;RtlLeaveCriticalSection"</programlisting>
691 Exclude the listed functions in a
692 <parameter>WINEDEBUG=+relay
</parameter> trace. This entry
693 overrides any settings in a
<parameter>RelayInclude
</parameter>
694 entry. If neither entry is present then the trace includes
698 In both entries the functions may be specified either as a
699 function name or as a module and function. In this latter
700 case specify an asterisk for the function name to include/exclude
701 all functions in the module.
704 [Registry] can be used to tell wine where your old windows
705 registry files exist. This section is completely optional
706 and useless to people using wine without an existing
707 windows installation.
710 <programlisting>"UserFileName" =
"/dirs/to/user.reg"</programlisting>
711 The location of your old
<filename>user.reg
</filename> file.
714 [programs] can be used to say what programs run under
718 <programlisting>"Default" =
"/program/to/execute.exe"</programlisting>
719 Sets the program to be run if wine is started without specifying a program.
722 <programlisting>"Startup" =
"/program/to/execute.exe"</programlisting>
723 Sets the program to automatically be run at startup every time.
727 <sect3 id=
"config-winmm">
728 <title>The [WinMM] Section
</title>
730 [WinMM] is used to define which multimedia drivers have to be loaded. Since
731 those drivers may depend on the multimedia interfaces available on your system
732 (OSS, ALSA... to name a few), it's needed to be able to configure which driver
737 The content of the section looks like:
740 "Drivers" =
"wineoss.drv"
741 "WaveMapper" =
"msacm.drv"
742 "MidiMapper" =
"midimap.drv"
744 All the keys must be defined:
748 The
"Drivers" key is a ';' separated list of modules name, each of
749 them containing a low level driver. All those drivers will be loaded
750 when MMSYSTEM/WINMM is started and will provide their inner features.
755 The
"WaveMapper" represents the name of the module containing the Wave
756 Mapper driver. Only one wave mapper can be defined in the system.
761 The
"MidiMapper" represents the name of the module containing the MIDI
762 Mapper driver. Only one MIDI mapper can be defined in the system.
769 <sect3 id=
"config-network">
770 <title>The [Network] Section
</title>
772 [Network] contains settings related to
773 networking. Currently there is only one value that can be set.
777 <term>UseDnsComputerName
</term>
780 A boolean setting (default:
<literal>Y
</literal>)
781 that affects the way Wine sets the computer name. The computer
782 name in the Windows world is the so-called
<emphasis>NetBIOS name
</emphasis>.
783 It is contained in the
<varname>ComputerName
</varname> in the registry entry
784 <varname>HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ComputerName
</varname>.
787 If this option is set to
"Y" or missing, Wine will set the
788 NetBIOS name to the Unix host name of your computer, if
789 necessary truncated to
31 characters. The Unix hostname is the output
790 of the shell command
<command>hostname
</command>, up to but not
791 including the first dot ('.'). Among other things, this means that
792 Windows programs running under Wine cannot change the NetBIOS computer name.
795 If this option is set to
"N", Wine will use the registry value above
796 to set the NetBIOS name. Only if the registry entry doesn't exist (usually
797 only during the first wine startup) it will use the Unix hostname as
798 usual. Windows programs can change the NetBIOS name. The change
799 will be effective after a
"reboot", i.e. after restarting Wine.
806 <sect3 id=
"config-appdefaults">
807 <title>The [AppDefaults] Section
</title>
809 The section is used to overwrite certain settings of this file for a
810 special program with different settings.
811 [AppDefaults] is not the real name of the section. The real name
812 consists of the leading word AppDefaults followed by the name
813 of the executable the section is valid for.
814 The end of the section name is the name of the
815 corresponding
"standard" section of the configuration file
816 that should have some of its settings overwritten with the
817 program specific settings you define.
818 The three parts of the section name are separated by two backslashes.
821 Currently wine supports overriding selected settings within
822 the sections [DllOverrides], [x11drv], [version] and [dsound] only.
825 Here is an example that overrides the normal settings for a
833 ;; run install in desktop mode
834 [AppDefaults\\install.exe\\x11drv]
836 "Desktop" =
"800x600"
842 <sect2 id=
"config-trouble">
843 <title>What If It Doesn't Work?
</title>
845 There is always a chance that things will go wrong. If the
846 unthinkable happens, report the problem to
847 <ulink url=
"http://bugs.winehq.org/">Wine Bugzilla
</ulink>,
849 <systemitem>comp.emulators.ms-windows.wine
</systemitem>,
850 or the IRC channel
<systemitem>#WineHQ
</systemitem> found on
851 irc.freenode.net, or connected servers.
852 Make sure that you have looked over this document thoroughly,
858 <filename>README
</filename>
863 <filename>http://www.winehq.org/trouble/
</filename>
868 If indeed it looks like you've done your research, be
869 prepared for helpful suggestions. If you haven't, brace
870 yourself for heaving flaming.
875 <sect1 id=
"config-drive-main">
876 <title>The Wine File System And Drive Layer
</title>
878 <title>Extremely Important Prerequisites
</title>
880 If you're planning to include access to a CD-ROM drive in your Wine
881 configuration on Linux, then
<emphasis>make sure
</emphasis> to add
882 the
<quote>unhide
</quote> mount option to the CD-ROM file system
883 entry in
<filename>/etc/fstab
</filename>, e.g.:
884 <programlisting>/dev/cdrom /cdrom iso9660 ro,noauto,users,unhide
0 0</programlisting>
885 Several Windows program setup CD-ROMs or other CD-ROMs chose
886 to do such braindamaged things as marking very important setup
887 helper files on the CD-ROM as
<quote>hidden
</quote>.
888 That's no problem on Windows, since the Windows CD-ROM driver by
889 default displays even files that are supposed to be
890 <quote>hidden
</quote>. But on Linux, which chose to
891 <emphasis>hide
</emphasis> <quote>hidden
</quote> files on CD by
892 default, this is
<emphasis>FATAL
</emphasis>!
893 (the programs will simply abort with an
<quote>installation file not found
</quote> or similar error)
894 Thus you should never forget to add this setting.
899 <title>Short Introduction
</title>
901 Wine emulates drives by placing their virtual drive roots to
902 user-configurable points in the Unix filesystem, so it's your
903 choice where
<medialabel>C:
</medialabel>'s root should be
904 (
<filename>tools/wineinstall
</filename> will even ask you). If
905 you choose, say,
<filename>~/wine
</filename> (or, in other
906 words,
<filename>/home/user/wine
</filename>, since
"~"
907 indicates the home directory of a user), as the root of your
908 virtual drive
<medialabel>C:
</medialabel>, then you'd put this
909 into your Wine configuration file:
914 "Path" =
"%HOME%/wine"
919 With this configuration, what windows apps think of as
920 "c:\windows\system" would map to
921 <filename>/home/user/wine/windows/system
</filename> in the UNIX
926 <sect2 id=
"config-drive-dir">
927 <title>Windows Directory Structure
</title>
929 Here's the fundamental layout that Windows programs and
930 installers expect and that we thus need to configure properly
931 in Wine. Without it, they seldomly operate correctly. If you
932 intend to use a no-windows environment (not using an existing
933 Windows partition), then it is recommended to use either
934 <command>WineSetupTk
</command>'s or
935 <command>wineinstall
</command>'s capabilities to create an
936 initial windows directory tree, since creating a directory
937 structure manually is tiresome and error-prone.
941 C:\ Root directory of primary disk drive
942 Windows\ Windows directory, containing .INI files,
944 System\ Win3.x/
95/
98/ME directory for common DLLs
945 WinNT/
2000 directory for common
16-bit DLLs
946 System32\ WinNT/
2000 directory for common
32-bit DLLs
947 Start Menu\ Program launcher directory structure
948 Programs\ Program launcher links (.LNK files) to programs
949 Program Files\ Application binaries (.EXE and .DLL files)
953 <sect2 id=
"config-drive-sections">
954 <title>The [Drive x] Sections
</title>
956 These sections are supposed to make certain Unix
957 directory locations accessible to Wine as a DOS/Windows drive
958 (drive 'x:') and thus accessible to Windows programs
959 under the drive name you specified.
960 Every DOS/Windows program sort of expects at least a C:
961 drive (and sometimes also an A: floppy drive), so your
962 configuration file should at least contain the corresponding
963 sections, [Drive C] and [Drive A].
964 You need to decide on whether you want to use an existing Windows
965 partition as the C drive or whether you want to create your own
966 Wine drive C directory tree somewhere (take care about
968 Each drive section may specify up to
6 different settings
972 <programlisting>[Drive x]
</programlisting>
973 The above line begins the section for a drive whose letter is x
974 (DOS notation: drive 'x:').
975 You could e.g. create an equivalent to a drive 'C:'
976 under DOS/Windows by using a [Drive C] section name.
977 Note that the drive letter is case insensitive.
980 <programlisting>"Path" =
"/dir/to/path"</programlisting>
981 This specifies the directory where the drive will begin.
982 When Wine is browsing in drive x, it will be able
983 to see the files that are in the directory
984 <filename>/dir/to/path
</filename> and below.
985 (note that symlinks to directories won't get included!
986 see
"<link linkend="dirsymlinks
">ShowDirSymlinks</link>"
987 configuration setting)
988 You can also make use of environment variables like $HOME here,
989 an example for using a
<filename>mywinedrive
</filename>
990 directory in your home dir would be
991 <programlisting>"Path" =
"%HOME%/mywinedrive"</programlisting>,
992 but don't forget to put it as a DOS environment variable,
993 ie surrounded by '%' signs rather than preceded by a '$'.
994 Don't forget to leave off the trailing slash!
997 <programlisting>"Type" =
"hd|cdrom|network|floppy"</programlisting>
998 Sets up the type of drive Wine will see it as. Type must
999 equal one of the four
<literal>floppy
</literal>,
1000 <literal>hd
</literal>,
<literal>cdrom
</literal>, or
1001 <literal>network
</literal>. They are self-explanatory.
1002 (The |'s mean
"Type = '<one of the options>'".)
1003 Usually, you choose
"hd" for a drive (
"hd" is default anyway).
1004 For a home directory entry, it makes sense to choose
1005 "network" sometimes, since some home directories are being
1006 exported over the network via NFS and thus can have slow response
1010 <programlisting>"Device" =
"/dev/xx"</programlisting>
1012 Needed for raw device access and
<link linkend=
"config-drive-cdrom-labels">label and serial number reading
</link>.
1013 Use this
<emphasis>only
</emphasis> for floppy and cdrom devices. Using it on
1014 Extended2 or other Unix file systems can have dire results
1015 (when a windows app tries to do a lowlevel write,
1016 they do it in a FAT way -- FAT format is completely different from
1017 any Unix file system).
1018 Also, make sure that you have proper permissions to this device
1023 This setting is not really important; almost all apps
1024 will have no problem if it remains unspecified. For
1025 CD-ROMs it's quite useful in order to get automatic label
1026 detection, though. If you are unsure about specifying
1027 device names, just leave out this setting for your
1032 Here are a few sample entries:
1034 Here is a setup for Drive C, a generic hard drive:
1038 This is a setup for Drive E, a generic CD-ROM drive:
1040 "Path" =
"/mnt/cdrom"
1042 "Device" =
"/dev/cdrom"
1043 And here is a setup for Drive A, a generic floppy drive:
1046 "Path" =
"/mnt/floppy"
1047 "Device" =
"/dev/fd0"
1053 <title>File system settings in the [wine] section
</title>
1055 <programlisting>"Windows" =
"c:\\windows"</programlisting>
1056 This tells Wine and Windows programs where the
1057 <filename>Windows
</filename> directory is. It is
1058 recommended to have this directory somewhere on your
1059 configured
<medialabel>C
</medialabel> drive, and it's also
1060 recommended to just call the directory
"windows" (this is
1061 the default setup on Windows, and some stupid programs
1062 might rely on this). So in case you chose a
"Windows"
1063 setting of
"c:\\windows" and you chose to set up a drive C
1064 e.g. at
<filename>/usr/local/wine_c
</filename>, the
1065 corresponding directory would be
1066 <filename>/usr/local/wine_c/windows
</filename>. Make one
1067 if you don't already have one.
<emphasis>No trailing slash
</emphasis> (
<emphasis>not
</emphasis>
1068 <filename>C:\\windows\
</filename>)! Write access strongly
1069 recommended, as Windows programs always assume write access
1070 to the Windows directory!
1073 <programlisting>"System" =
"c:\\windows\\system"</programlisting>
1074 This sets up where the windows system files are. The Windows
1075 system directory should reside below the directory used for the
1076 <literal>Windows
</literal> setting.
1077 Thus when using the example above, the system directory would be
1078 <filename>/usr/local/wine_c/windows/system
</filename>.
1079 Again, no trailing slash, and write access!
1082 <programlisting>"Temp" =
"c:\\temp"</programlisting> This should
1083 be the directory you want your temp files stored in,
1084 /usr/local/wine_c/temp in our example.
1085 Again, no trailing slash, and
<emphasis>write
1089 <programlisting>"Path" =
"c:\\windows;c:\\windows\\system;c:\\blanco"</programlisting>
1090 Behaves like the
<envar>PATH
</envar> setting on UNIX
1091 boxes. When wine is run like
<userinput>wine
1092 sol.exe
</userinput>, if
<filename>sol.exe
</filename>
1093 resides in a directory specified in the
1094 <literal>Path
</literal> setting, wine will run it (Of
1095 course, if
<filename>sol.exe
</filename> resides in the
1096 current directory, wine will run that one). Make sure it
1097 always has your
<filename>windows
</filename> directory and
1098 system directory (For this setup, it must have
1099 <filename>"c:\\windows;c:\\windows\\system"</filename>).
1101 <para id=
"dirsymlinks">
1102 <programlisting>"ShowDirSymlinks" =
"1"</programlisting>
1103 Wine doesn't pass directory symlinks to Windows programs by
1104 default, as doing so may crash some programs that do
1105 recursive lookups of whole subdirectory trees
1106 whenever a directory symlink points back to itself or one of its
1108 That's why we disallowed the use of directory symlinks
1109 and added this setting to reenable (
"1") this functionality.
1110 If you
<emphasis>really
</emphasis> need Wine to take into
1111 account symlinked directories, then reenable it, but
1112 <emphasis>be prepared for crashes
</emphasis> in certain
1113 Windows programs when using the above method! (in other words:
1114 enabling it is certainly not recommended)
1119 <title>More detailed explanation about file system differences
</title>
1121 Windows uses a different (and inferior) way than Unix to describe the
1122 location of files in a computer. Thus Windows programs also expect
1123 to find this different way supported by the system.
1124 Since we intend to run Windows programs on
1125 a Unix system, we're in trouble, as we need to translate
1126 between these different file access techniques.
1129 Windows uses drive letters to describe drives or
1130 any other form of storage media and to access files on them.
1131 For example, common drive names are
1132 <filename>C:
</filename> for the main Windows system partition
1133 on the first harddisk and
<filename>A:
</filename> for the
1135 Also, Windows uses
<filename>\
</filename> (backslash) as the
1136 directory separator sign, whereas Unix uses
1137 <filename>/
</filename> (slash).
1138 Thus, an example document on the first data partition in
1139 Windows might be accessed by the name of
1140 <filename>D:\mywork\mydocument.txt
</filename>.
1143 So much for the Windows way of doing things.
1146 Well, the problem is, in Unix there is no such thing as
1147 <quote>drive letters
</quote>. Instead, Unix chose to go the
1148 much better way of having one single uniform directory tree
1149 (starting with the root directory
1150 <filename>/
</filename>), which has various storage devices
1151 such as e.g. harddisk partitions appended at various directory
1152 locations within the tree (an example would be
1153 <filename>/data1/mywork
</filename>, which is the first data
1154 partition mounted/attached to a directory called data1 in the
1155 root directory
<filename>/
</filename>; mywork is a sub
1156 directory of the data partition file system that's mounted
1157 under
<filename>/data1
</filename>).
1158 In Unix, the Windows example document mentioned above could e.g.
1159 be accessed by the name of
1160 <filename>/data1/mywork/mydocument.txt
</filename>,
1161 provided that the administrator decided to mount (attach) the first
1162 data partition at the directory /data1 inside the Unix
1163 directory tree. Note that in Unix, the administrator can
1164 <emphasis>choose
</emphasis> any custom partition location he
1165 wants (here,
<filename>/data1
</filename>), whereas in Windows the system
1166 <emphasis>selects
</emphasis> any drive letter it deems
1167 suitable for the first data partition (here,
1168 <filename>D:
</filename>), and, even worse, if there is some
1169 change in partition order, Windows automatically
1170 <emphasis>changes
</emphasis> the drive letter, and you might
1171 suddenly find yourself with a first data partition at drive
1172 letter
<filename>E:
</filename>, with all the file naming and
1173 referencing confusion that entails. Thus, the Windows way of
1174 using ever-changing drive letters is
<emphasis>clearly
1175 inferior
</emphasis> to the Unix way of assigning
1176 <emphasis>fixed
</emphasis> directory tree locations for every
1177 data storage medium.
1178 As we'll see soon, fortunately this Windows limitation of
1179 changing drive letters doesn't affect us in Wine at all, since
1180 we can properly map
<emphasis>never-changing
</emphasis> drive letters to
<emphasis>fixed
</emphasis> locations inside the Unix directory tree (and even if the location of the respective Unix directory changes, we can still simply update the Wine drive mapping to reflect the updated location and at the same time keep the original drive letter).
1183 OK, now that we know some theory about Windows and Unix drive
1184 and filename mapping, it's probably time to ask how Wine
1185 achieves the magic of mapping a Unix directory location to a
1189 Wine chose to do the following:
1190 In Wine, you don't assign some real physical storage medium
1191 (such as a harddisk partition or similar) to each drive letter
1193 Instead, you choose certain sub directory trees inside the Unix
1194 directory tree (that starts with
<filename>/
</filename>) that
1195 you would like to assign a drive letter to.
1198 Note that for every Unix sub directory tree that you intend to
1199 start Windows programs in, it is
<emphasis>absolutely
1200 required
</emphasis> to have a Wine drive mapping entry:
1203 For example, if you had a publicly writable
<quote>Windows
1204 directory space
</quote> under
<filename>/usr/mywine
</filename>, then in order to be
1205 able to access this sub directory tree from Wine, you should
1206 have a drive mapping entry that maps a certain drive letter
1207 (for example, let's take drive letter
<filename>P:
</filename>)
1208 either to
<filename>/usr/mywine
</filename> or
<filename>/usr
</filename> (to also access any directories belonging to the parent directory) or
<filename>/
</filename> (to also access any directory whatsoever on this system by this drive letter mapping). The DOS drive/directory location to access files in
<filename>/usr/mywine
</filename> <emphasis>in Wine
</emphasis> in these configuration cases would then be
<filename>P:\
</filename> or
<filename>P:\mywine
</filename> or
<filename>P:\usr\mywine
</filename>, respectively.
1212 <sect2 id=
"config-no-windows">
1213 <title>Installing Wine Without Windows
</title>
1216 A major goal of Wine is to allow users to run Windows programs
1217 without having to install Windows on their machine. Wine
1218 implements the functionality of the main DLLs usually
1219 provided with Windows. Therefore, once Wine is finished, you
1220 will not need to have Windows installed to use Wine.
1223 Wine has already made enough progress that it may be possible
1224 to run your target programs without Windows installed. If
1225 you want to try it, follow these steps:
1231 Point
<medialabel>[Drive C]
</medialabel> in
1232 <filename>~/.wine/config
</filename> to the directory where you want
1233 <filename>C:
</filename> to be. Refer to the wine.conf man page
1234 for more information.
1235 The directory to be used for emulating a C: drive will be
1236 the base directory for some Windows specific directories
1242 Within the directory to be used for C:, create empty
1243 <filename>windows
</filename>,
1244 <filename>windows/system
</filename>,
1245 <filename>windows/Start Menu
</filename>, and
1246 <filename>windows/Start Menu/Programs
</filename>
1247 directories. Do not point Wine to a
1248 <filename>Windows
</filename> directory full of old
1249 installations and a messy registry. (Wine creates a
1250 special registry in your
<filename >home
</filename>
1251 directory, in
<filename>$HOME/.wine/*.reg
</filename>.
1252 Perhaps you have to remove these files).
1254 mkdir -p windows windows/system windows/Start\ Menu windows/Start\ Menu/Programs
1259 Run and/or install your programs.
1265 Because Wine is not yet complete, some programs will work
1266 better with native Windows DLLs than with Wine's
1267 replacements. Wine has been designed to make this possible.
1268 Here are some tips by Juergen Schmied (and others) on how to
1269 proceed. This assumes that your
1270 <filename>C:\windows
</filename> directory in the configuration
1271 file does not point to a native Windows installation but is in
1272 a separate Unix file system. (For instance,
<quote>C:\windows
</quote> is
1273 really subdirectory
<quote>windows
</quote> located in
1274 <quote>/home/ego/wine/drives/c
</quote>).
1280 Run the program with
<parameter>WINEDEBUG=+loaddll
</parameter>
1281 to find out which files are
1282 needed. Copy the required DLLs one by one to the
1283 <filename>C:\windows\system
</filename> directory. Do not
1284 copy KERNEL/KERNEL32, GDI/GDI32, USER/USER32 or NTDLL. These
1285 implement the core functionality of the Windows API, and
1286 the Wine internal versions must be used.
1291 Edit the
<quote>[DllOverrides]
</quote> section of
1292 <filename>~/.wine/config
</filename> to specify
1293 <quote>native
</quote> before
<quote>builtin
</quote> for
1294 the Windows DLLs you want to use. For more information
1295 about this, see the Wine manpage.
1300 Note that some network DLLs are not needed even though
1301 Wine is looking for them. The Windows
1302 <filename>MPR.DLL
</filename> currently does not work; you
1303 must use the internal implementation.
1308 Copy SHELL.DLL/SHELL32.DLL, COMMDLG.DLL/COMDLG32.DLL
1309 and COMMCTRL.DLL/COMCTL32.DLL
1310 only as pairs to your Wine directory (these DLLs are
1311 <quote>clean
</quote> to use). Make sure you have these
1312 specified in the
<quote>[DllPairs]
</quote> section of
1313 <filename>~/.wine/config
</filename>.
1318 Be consistent: Use only DLLs from the same Windows version
1324 Put
<filename>regedit.exe
</filename> in the
1325 <filename>C:\windows
</filename> directory.
1326 (
<application>Office
95</application> imports a
1327 <filename>*.reg
</filename> file when it runs with an empty
1328 registry, don't know about
1329 <application>Office
97</application>).
1330 As of now, it might not be necessary any more to use
1331 regedit.exe, since Wine has its own regedit Winelib
1337 Also add
<filename>winhelp.exe
</filename> and
1338 <filename>winhlp32.exe
</filename> if you want to be able
1339 to browse through your programs' help function
1340 (or in case Wine's winhelp implementation in programs/winhelp/
1341 is not good enough, for example).
1347 <sect2 id=
"config-with-windows">
1348 <title>Installing Wine Using An Existing Windows Partition As Base
</title>
1350 Some people intend to use the data of an existing Windows partition
1351 with Wine in order to gain some better compatibility or to run already
1352 installed programs in a setup as original as possible.
1353 Note that many Windows programs assume that they have full write
1354 access to all windows directories.
1356 This means that you either have to configure the Windows
1357 partition mount point for write permission by your Wine user
1358 (see
<link linkend=
"config-drive-vfat">Dealing with FAT/VFAT partitions
</link>
1359 on how to do that), or you'll have to copy over (some parts of) the Windows
1360 partition content to a directory of a Unix partition and make
1361 sure this directory structure is writable by your user.
1362 We
<emphasis>HIGHLY DISCOURAGE
</emphasis> people from directly using a Windows partition with
1363 write access as a base for Wine!! (some programs, notably
1364 Explorer, corrupt large parts of the Windows partition in case
1365 of an incorrect setup; you've been warned).
1366 Not to mention that NTFS write support in Linux is still very
1367 experimental and
<emphasis>dangerous
</emphasis> (in case you're using an NT-based
1368 Windows version using the NTFS file system).
1369 Thus we advise you to go the Unix directory way.
1373 <sect2 id=
"config-drive-vfat">
1374 <title>Dealing With FAT/VFAT Partitions
</title>
1376 This document describes how FAT and
1377 VFAT file system permissions work in Linux
1378 with a focus on configuring them for Wine.
1382 <title>Introduction
</title>
1384 Linux is able to access DOS and Windows file systems using
1385 either the FAT (older
8.3 DOS filesystems) or VFAT (newer
1386 Windows
95 or later long filename filesystems) modules.
1387 Mounted FAT or VFAT filesystems provide the primary means
1388 for which existing programs and their data are accessed
1389 through Wine for dual boot (Linux + Windows) systems.
1392 Wine maps mounted FAT filesystems, such as
1393 <filename>/c
</filename>, to driver letters, such as
1394 <quote>c:
</quote>, as indicated by the
1395 <filename>~/.wine/config
</filename> file. The following excerpt
1396 from a
<filename>~/.wine/config
</filename> file does this:
1404 Although VFAT filesystems are preferable to FAT filesystems
1405 for their long filename support, the term
<quote>FAT
</quote>
1406 will be used throughout the remainder of this document to
1407 refer to FAT filesystems and their derivatives. Also,
1408 <quote>/c
</quote> will be used as the FAT mount point in
1409 examples throughout this document.
1412 Most modern Linux distributions either detect or allow
1413 existing FAT file systems to be configured so that they can be
1414 mounted, in a location such as
<filename>/c
</filename>,
1415 either persistently (on bootup) or on an as needed basis. In
1416 either case, by default, the permissions will probably be
1417 configured so that they look like:
1420 <prompt>~
></prompt><userinput>cd /c
</userinput>
1421 <prompt>/c
></prompt><userinput>ls -l
</userinput>
1422 <computeroutput>-rwxr-xr-x
1 root root
91 Oct
10 17:
58 autoexec.bat
1423 -rwxr-xr-x
1 root root
245 Oct
10 17:
58 config.sys
1424 drwxr-xr-x
41 root root
16384 Dec
30 1998 windows
</computeroutput>
1427 where all the files are owned by
"root", are in the
"root"
1428 group and are only writable by
"root"
1429 (
<literal>755</literal> permissions). This is restrictive in
1430 that it requires that Wine be run as root in order for
1431 programs to be able to write to any part of the
1435 There are three major approaches to overcoming the restrictive
1436 permissions mentioned in the previous paragraph:
1441 Run
<application>Wine
</application> as root
1446 Mount the FAT filesystem with less restrictive
1452 Shadow the FAT filesystem by completely or partially
1458 Each approach will be discussed in the following sections.
1463 <title>Running Wine as root
</title>
1465 Running Wine as root is the easiest and most thorough way of giving
1466 programs that Wine runs unrestricted access to FAT files systems.
1467 Running wine as root also allows programs to do things unrelated
1468 to FAT filesystems, such as listening to ports that are less than
1469 1024. Running Wine as root is dangerous since there is no limit to
1470 what the program can do to the system, so it's
<emphasis>HIGHLY DISCOURAGED
</emphasis>.
1475 <title>Mounting FAT filesystems
</title>
1477 The FAT filesystem can be mounted with permissions less restrictive
1478 than the default. This can be done by either changing the user that
1479 mounts the FAT filesystem or by explicitly changing the permissions
1480 that the FAT filesystem is mounted with. The permissions are
1481 inherited from the process that mounts the FAT filesystem. Since the
1482 process that mounts the FAT filesystem is usually a startup script
1483 running as root the FAT filesystem inherits root's permissions. This
1484 results in the files on the FAT filesystem having permissions similar
1485 to files created by root. For example:
1488 <prompt>~
></prompt><userinput>whoami
</userinput>
1489 <computeroutput>root
</computeroutput>
1490 <prompt>~
></prompt><userinput>touch root_file
</userinput>
1491 <prompt>~
></prompt><userinput>ls -l root_file
</userinput>
1492 <computeroutput></computeroutput>-rw-r--r--
1 root root
0 Dec
10 00:
20 root_file
1495 which matches the owner, group and permissions of files seen
1496 on the FAT filesystem except for the missing 'x's. The
1497 permissions on the FAT filesystem can be changed by changing
1498 root's umask (unset permissions bits). For example:
1501 <prompt>~
></prompt><userinput>umount /c
</userinput>
1502 <prompt>~
></prompt><userinput>umask
</userinput>
1503 <computeroutput>022</computeroutput>
1504 <prompt>~
></prompt><userinput>umask
073</userinput>
1505 <prompt>~
></prompt><userinput>mount /c
</userinput>
1506 <prompt>~
></prompt><userinput>cd /c
</userinput>
1507 <prompt>/c
></prompt><userinput>ls -l
</userinput>
1508 <computeroutput>-rwx---r--
1 root root
91 Oct
10 17:
58 autoexec.bat
1509 -rwx---r--
1 root root
245 Oct
10 17:
58 config.sys
1510 drwx---r--
41 root root
16384 Dec
30 1998 windows
</computeroutput>
1513 Mounting the FAT filesystem with a umask of
1514 <literal>000</literal> gives all users complete control over
1515 it. Explicitly specifying the permissions of the FAT
1516 filesystem when it is mounted provides additional control.
1517 There are three mount options that are relevant to FAT
1518 permissions:
<literal>uid
</literal>,
<literal>gid
</literal>
1519 and
<literal>umask
</literal>. They can each be specified
1520 when the filesystem is manually mounted. For example:
1523 <prompt>~
></prompt><userinput>umount /c
</userinput>
1524 <prompt>~
></prompt><userinput>mount -o uid=
500 -o gid=
500 -o umask=
002 /c
</userinput>
1525 <prompt>~
></prompt><userinput>cd /c
</userinput>
1526 <prompt>/c
></prompt><userinput>ls -l
</userinput>
1527 <computeroutput>-rwxrwxr-x
1 sle sle
91 Oct
10 17:
58 autoexec.bat
1528 -rwxrwxr-x
1 sle sle
245 Oct
10 17:
58 config.sys
1529 drwxrwxr-x
41 sle sle
16384 Dec
30 1998 windows
</computeroutput>
1532 which gives
"sle" complete control over
1533 <filename>/c
</filename>. The options listed above can be
1534 made permanent by adding them to the
1535 <filename>/etc/fstab
</filename> file:
1538 <prompt>~
></prompt><userinput>grep /c /etc/fstab
</userinput>
1539 <computeroutput>/dev/hda1 /c vfat uid=
500,gid=
500,umask=
002,exec,dev,suid,rw
1 1</computeroutput>
1542 Note that the umask of
<literal>002</literal> is common in
1543 the user private group file permission scheme. On FAT file
1544 systems this umask assures that all files are fully
1545 accessible by all users in the specified user group
1546 (
<literal>gid
</literal>).
1551 <title>Shadowing FAT filesystems
</title>
1553 Shadowing provides a finer granularity of control. Parts of
1554 the original FAT filesystem can be copied so that the
1555 program can safely work with those copied parts while
1556 the program continues to directly read the remaining
1557 parts. This is done with symbolic links. For example,
1558 consider a system where a program named
1559 <application>AnApp
</application> must be able to read and
1560 write to the
<filename>c:\windows
</filename> and
1561 <filename>c:\AnApp
</filename> directories as well as have
1562 read access to the entire FAT filesystem. On this system
1563 the FAT filesystem has default permissions which should not
1564 be changed for security reasons or can not be changed due to
1565 lack of root access. On this system a shadow directory
1566 might be set up in the following manner:
1569 <prompt>~
></prompt><userinput>cd /
</userinput>
1570 <prompt>/></prompt><userinput>mkdir c_shadow
</userinput>
1571 <prompt>/></prompt><userinput>cd c_shadow
</userinput>
1572 <prompt>/c_shadow
></prompt><userinput>ln -s /c_/* .
</userinput>
1573 <prompt>/c_shadow
></prompt><userinput>rm windows AnApp
</userinput>
1574 <prompt>/c_shadow
></prompt><userinput>cp -R /c_/{windows,AnApp} .
</userinput>
1575 <prompt>/c_shadow
></prompt><userinput>chmod -R
777 windows AnApp
</userinput>
1576 <prompt>/c_shadow
></prompt><userinput>perl -p -i -e 's|/c$|/c_shadow|g' ~/.wine/config
</userinput>
1579 The above gives everyone complete read and write access to
1580 the
<filename>windows
</filename> and
1581 <filename>AnApp
</filename> directories while only root has
1582 write access to all other directories.
1587 <sect2 id=
"config-drive-cdrom-labels">
1589 <title>Drive labels and serial numbers
</title>
1591 Until now, your only possibility of specifying drive volume
1592 labels and serial numbers was to set them manually in the wine
1593 configuration file. By now, wine can read them directly from the
1594 device as well. This may be useful for many Win
9x games or
1595 for setup programs distributed on CD-ROMs that check for
1600 <title>What's Supported?
</title>
1602 <informaltable frame=
"all">
1606 <entry>File System
</entry>
1607 <entry>Types
</entry>
1608 <entry>Comment
</entry>
1613 <entry>FAT systems
</entry>
1614 <entry>hd, floppy
</entry>
1615 <entry>reads labels and serial numbers
</entry>
1618 <entry>ISO9660
</entry>
1619 <entry>cdrom
</entry>
1620 <entry>reads labels and serial numbers (not mixed-mode CDs yet!)
</entry>
1629 <title>How To Set Up?
</title>
1631 Reading labels and serial numbers just works automatically
1632 if you specify a
<literal>"Device" =
</literal> line in the
1633 [Drive x] section in your
<filename>~/.wine/config
</filename>.
1634 Note that the device has to exist and must be accessible by the user
1635 running Wine if you do this, though.
1638 If you don't want to read labels and serial numbers directly from
1639 the device, you can create files at the root of the drive
1640 named
<filename>.windows-label
</filename> and
1641 <filename>.windows-serial
</filename> respectively. These are
1642 simple ASCII files that you can create with any text editor;
1643 the label can be set to any string you like, the serial
1644 number should be expressed as an hexadecimal number.
1649 <title>Examples
</title>
1651 Here's a simple example of CD-ROM and floppy:
1655 "Path" =
"/mnt/floppy"
1657 "Device" =
"/dev/fd0"
1660 "Path" =
"/mnt/cdrom"
1662 "Device" =
"/dev/hda1"
1667 <title>Todo / Open Issues
</title>
1670 The CD-ROM label can be read only if the data track of
1671 the disk resides in the first track and the cdrom is
1675 Support for labels/serial nums WRITING.
1678 What about reading ext2 volume label? ....
1687 <sect1 id=
"config-dll">
1688 <title>DLL configuration
</title>
1691 <title>Introduction
</title>
1693 If your programs don't work as expected, then it's often because one
1694 DLL or another is failing. This can often be resolved by changing
1695 certain DLLs from Wine built-in to native Windows DLL file and vice
1699 A very useful help to find out which DLLs are loaded as built-in and
1700 which are loaded as native Windows file can be the debug channel
1701 loaddll, activated via the environment variable
1702 <command>WINEDEBUG=+loaddll
</command>.
1707 <!-- FIXME intro!!! -->
1708 <title>Introduction To DLL Sections
</title>
1710 There are a few things you will need to know before
1711 configuring the DLL sections in your wine configuration
1715 <title>Windows DLL Pairs
</title>
1717 Most windows DLL's have a win16 (Windows
3.x) and win32
1718 (Windows
9x/NT) form. The combination of the win16 and
1719 win32 DLL versions are called the
"DLL pair". This is a
1720 list of the most common pairs:
1727 <entry>Win16
</entry>
1728 <entry>Win32
</entry>
1733 Is it possible to use native DLL with wine?
1742 <entry>KERNEL
</entry>
1743 <entry>KERNEL32
</entry>
1748 <entry>USER32
</entry>
1752 <entry>SHELL
</entry>
1753 <entry>SHELL32
</entry>
1758 <entry>GDI32
</entry>
1762 <entry>COMMDLG
</entry>
1763 <entry>COMDLG32
</entry>
1768 <entry>VERSION
</entry>
1777 <title>Different Forms Of DLL's
</title>
1779 There are a few different forms of DLL's wine can load:
1784 The DLL's that are included with windows. Many
1785 windows DLL's can be loaded in their native
1786 form. Many times these native versions work
1787 better than their non-Microsoft equivalent --
1788 other times they don't.
1792 <term>builtin
</term>
1794 The most common form of DLL loading. This is
1795 what you will use if the DLL is too system-specific
1796 or error-prone in native form (KERNEL for example),
1797 you don't have the native DLL, or you just want to be
1804 Native ELF libraries. Has became obsolete, ignored.
1810 ELF encapsulated windows DLL's.
1811 No longer used, ignored.
1819 <sect2 id=
"config-dll-overrides">
1820 <title>DLL Overrides
</title>
1823 The wine configuration file directives [DllDefaults]
1824 and [DllOverrides] are the subject of some confusion. The
1825 overall purpose of most of these directives are clear enough,
1826 though - given a choice, should Wine use its own built-in
1827 DLLs, or should it use
<filename>.DLL
</filename> files found
1828 in an existing Windows installation? This document explains
1829 how this feature works.
1833 <title>DLL types
</title>
1838 A
"native" DLL is a
<filename>.DLL
</filename> file
1839 written for the real Microsoft Windows.
1843 <term>builtin
</term>
1845 A
"built-in" DLL is a Wine DLL. These can either be a
1846 part of
<filename>libwine.so
</filename>, or more
1847 recently, in a special
<filename>.so
</filename> file
1848 that Wine is able to load on demand.
1855 <title>The [DllDefaults] section
</title>
1858 <term>DefaultLoadOrder
</term>
1860 This specifies in what order Wine should search for
1861 available DLL types, if the DLL in question was not
1862 found in the [DllOverrides] section.
1869 <title>The [DllPairs] section
</title>
1871 At one time, there was a section called [DllPairs] in the
1872 default configuration file, but this has been obsoleted
1873 because the pairing information has now been embedded into
1874 Wine itself. (The purpose of this section was merely to be
1875 able to issue warnings if the user attempted to pair
1876 codependent
16-bit/
32-bit DLLs of different types.) If you
1877 still have this in your
<filename>~/.wine/config
</filename> or
1878 <filename>wine.conf
</filename>, you may safely delete it.
1883 <title>The [DllOverrides] section
</title>
1885 This section specifies how you want specific DLLs to be
1886 handled, in particular whether you want to use
"native" DLLs
1887 or not, if you have some from a real Windows configuration.
1888 Because built-ins do not mix seamlessly with native DLLs yet,
1889 certain DLL dependencies may be problematic, but workarounds
1890 exist in Wine for many popular DLL configurations. Also see
1891 WWN's [
16]Status Page to figure out how well your favorite
1892 DLL is implemented in Wine.
1895 It is of course also possible to override these settings by
1896 explicitly using Wine's
<parameter>--dll
</parameter>
1897 command-line option (see the man page for details). Some
1898 hints for choosing your optimal configuration (listed by
1899 16/
32-bit DLL pair):
1903 <term>krnl386, kernel32
</term>
1905 Native versions of these will never work, so don't try. Leave
1906 at
<literal>builtin
</literal>.
1910 <term>gdi, gdi32
</term>
1912 Graphics Device Interface. No effort has been made at trying to
1913 run native GDI. Leave at
<literal>builtin
</literal>.
1917 <term>user, user32
</term>
1919 Window management and standard controls. It was
1920 possible to use Win95's
<literal>native
</literal>
1921 versions at some point (if all other DLLs that depend
1922 on it, such as comctl32 and comdlg32, were also run
1923 <literal>native
</literal>). However, this is no longer
1924 possible after the Address Space Separation, so leave
1925 at
<literal>builtin
</literal>.
1931 NT kernel API. Although badly documented, the
1932 <literal>native
</literal> version of this will never
1933 work. Leave at
<literal>builtin
</literal>.
1937 <term>w32skrnl
</term>
1939 Win32s (for Win3.x). The
<literal>native
</literal>
1940 version will probably never work. Leave at
1941 <literal>builtin
</literal>.
1947 Win16 support library for NT. The
1948 <literal>native
</literal> version will probably never
1949 work. Leave at
<literal>builtin
</literal>.
1955 Win16 kernel stuff. Will never work
1956 <literal>native
</literal>. Leave at
1957 <literal>builtin
</literal>.
1961 <term>display
</term>
1963 Display driver. Definitely leave at
<literal>builtin
</literal>.
1967 <term>toolhelp
</term>
1969 Tool helper routines. This is rarely a source of problems.
1970 Leave at
<literal>builtin
</literal>.
1974 <term>ver, version
</term>
1976 Versioning. Seldom useful to mess with.
1980 <term>advapi32
</term>
1982 Registry and security features. Trying the
1983 <literal>native
</literal> version of this may or may
1988 <term>commdlg, comdlg32
</term>
1990 Common Dialogs, such as color picker, font dialog,
1991 print dialog, open/save dialog, etc. It is safe to try
1992 <literal>native
</literal>.
1996 <term>commctrl, comctl32
</term>
1998 Common Controls. This is toolbars, status bars, list controls,
1999 the works. It is safe to try
<literal>native
</literal>.
2003 <term>shell, shell32
</term>
2005 Shell interface (desktop, filesystem, etc). Being one of the
2006 most undocumented pieces of Windows, you may have luck with the
2007 <literal>native
</literal> version, should you need it.
2011 <term>winsock, wsock32
</term>
2013 Windows Sockets. The
<literal>native
</literal> version
2014 will not work under Wine, so leave at
2015 <literal>builtin
</literal>.
2021 ICMP routines for wsock32. As with wsock32, leave at
2022 <literal>builtin
</literal>.
2028 The
<literal>native
</literal> version may not work due
2029 to thunking issues. Leave at
2030 <literal>builtin
</literal>.
2034 <term>lzexpand, lz32
</term>
2036 Lempel-Ziv decompression. Wine's
2037 <literal>builtin
</literal> version ought to work fine.
2041 <term>winaspi, wnaspi32
</term>
2043 Advanced SCSI Peripheral Interface. The
2044 <literal>native
</literal> version will probably never
2045 work. Leave at
<literal>builtin
</literal>.
2051 C Runtime library. The
<literal>native
</literal>
2052 version will easily work better than Wine's on this
2057 <term>winspool.drv
</term>
2059 Printer spooler. You are not likely to have more luck
2060 with the
<literal>native
</literal> version.
2066 DirectDraw/Direct3D. Since Wine does not implement the
2067 DirectX HAL, the
<literal>native
</literal> version
2068 will not work at this time.
2074 DirectInput. Running this
<literal>native
</literal>
2075 may or may not work.
2081 DirectSound. It may be possible to run this
2082 <literal>native
</literal>, but don't count on it.
2086 <term>dplay/dplayx
</term>
2088 DirectPlay. The
<literal>native
</literal> version
2089 ought to work best on this, if at all.
2093 <term>mmsystem, winmm
</term>
2095 Multimedia system. The
<literal>native
</literal>
2096 version is not likely to work. Leave at
2097 <literal>builtin
</literal>.
2101 <term>msacm, msacm32
</term>
2103 Audio Compression Manager. The
2104 <literal>builtin
</literal> version works best, if you
2105 set msacm.drv to the same.
2109 <term>msvideo, msvfw32
</term>
2111 Video for Windows. It is safe (and recommended) to try
2112 <literal>native
</literal>.
2116 <term>mcicda.drv
</term>
2118 CD Audio MCI driver.
2122 <term>mciseq.drv
</term>
2124 MIDI Sequencer MCI driver (
<filename>.MID
</filename>
2129 <term>mciwave.drv
</term>
2131 Wave audio MCI driver (
<filename>.WAV
</filename> playback).
2135 <term>mciavi.drv
</term>
2137 AVI MCI driver (
<filename>.AVI
</filename> video
2138 playback). Best to use
<literal>native
</literal>.
2142 <term>mcianim.drv
</term>
2144 Animation MCI driver.
2148 <term>msacm.drv
</term>
2150 Audio Compression Manager. Set to same as msacm32.
2154 <term>midimap.drv
</term>
2162 This is a pseudo-DLL used by Wine for thunking
2163 purposes. A
<literal>native
</literal> version of this
2171 <sect2 id=
"config-system-dlls">
2172 <title>System DLLs
</title>
2174 The Wine team has determined that it is necessary to create
2175 fake DLL files to trick many programs that check for
2176 file existence to determine whether a particular feature
2177 (such as Winsock and its TCP/IP networking) is available. If
2178 this is a problem for you, you can create empty files in the
2179 configured
<filename>c:\windows\system
</filename> directory
2180 to make the program think it's there, and Wine's built-in DLL
2181 will be loaded when the program actually asks for it.
2182 (Unfortunately,
<filename>tools/wineinstall
</filename> does
2183 not create such empty files itself.)
2186 Applications sometimes also try to inspect the version
2187 resources from the physical files (for example, to determine
2188 the DirectX version). Empty files will not do in this case,
2189 it is rather necessary to install files with complete
2190 version resources. This problem is currently being worked
2191 on. In the meantime, you may still need to grab some real
2192 DLL files to fool these apps with.
2195 And there are of course DLLs that wine does not currently
2196 implement very well (or at all). If you do not have a real
2197 Windows you can steal necessary DLLs from, you can always
2198 get some from one of the Windows DLL archive sites
2199 that can be found via internet search engine.
2200 Please make sure to obey any licenses on the DLLs you fetch...
2201 (some are redistributable, some aren't).
2205 <sect2 id=
"config-dll-missing">
2206 <title>Missing DLLs
</title>
2209 In case Wine complains about a missing DLL, you should check whether
2210 this file is a publicly available DLL or a custom DLL belonging
2211 to your program (by searching for its name on the internet).
2212 If you managed to get hold of the DLL, then you should make sure
2213 that Wine is able to find and load it.
2214 DLLs usually get loaded according to the mechanism of the
2215 SearchPath() function.
2216 This function searches directories in the following order:
2221 The directory the program was started from.
2226 The current directory.
2231 The Windows system directory.
2236 The Windows directory.
2241 The PATH variable directories.
2246 In short: either put the required DLL into your program
2247 directory (might be ugly), or usually put it into the Windows system
2248 directory. Just find out its directory by having a look at the Wine
2249 configuration file variable
"System" (which indicates the location of the
2250 Windows system directory) and the associated drive entry.
2251 Note that you probably shouldn't use NT-based native DLLs,
2252 since Wine's NT API support is somewhat weaker than its Win9x
2253 API support (thus leading to even worse compatibility with NT DLLs
2254 than with a no-windows setup!), so better use Win9x native DLLs
2255 instead or no native DLLs at all.
2259 <sect2 id=
"config-dll-windows">
2260 <title>Fetching native DLLs from a Windows CD
</title>
2263 The Linux
<command>cabextract
</command> utility can be used to
2264 extract native Windows .dll files from .cab files that are to be
2265 found on many Windows installation CDs.
2270 <sect1 id=
"config-graphics-driver">
2271 <title>Configuring the graphics driver (x11drv, ttydrv etc.)
</title>
2274 Wine currently supports several different display subsystems
2275 (graphics / text) that are available on various operating
2277 For each of these, Wine implements its own interfacing driver.
2278 This section explains how to select one of these drivers
2279 and how to further configure the respective driver.
2280 Once you're finished with that, you can consider your Wine installation
2285 The display drivers currently implemented in Wine are:
2286 x11drv, which is used for interfacing to X11 graphics
2287 (the one you'll most likely want to use) and ttydrv
2288 (used for text mode console apps mainly that don't really need
2289 any graphics output).
2290 Once you have decided which display driver to use, it is chosen
2291 with the
<literal>GraphicsDriver
</literal> option in the
2292 [wine] section of
<filename>~/.wine/config
</filename>.
2296 <title>Configuring the x11drv graphics driver
</title>
2299 <title>x11drv modes of operation
</title>
2302 The x11drv driver consists of two conceptually distinct
2303 pieces, the graphics driver (GDI part), and the windowing
2304 driver (USER part). Both of these are linked into the
2305 <filename>libx11drv.so
</filename> module, though (which you
2306 load with the
<literal>GraphicsDriver
</literal> option). In
2307 Wine, running on X11, the graphics driver must draw on
2308 drawables (window interiors) provided by the windowing
2309 driver. This differs a bit from the Windows model, where the
2310 windowing system creates and configures device contexts
2311 controlled by the graphics driver, and programs are
2312 allowed to hook into this relationship anywhere they like.
2313 Thus, to provide any reasonable tradeoff between
2314 compatibility and usability, the x11drv has three different
2320 <term>Managed
</term>
2323 The default. Specified by using the
<literal>Managed
</literal>
2324 wine configuration file option (see below).
2325 Ordinary top-level frame windows with thick borders,
2326 title bars, and system menus will be managed by your
2327 window manager. This lets these programs integrate
2328 better with the rest of your desktop, but may not
2329 always work perfectly (a rewrite of this mode of
2330 operation, to make it more robust and less patchy, is
2331 currently being done, though, and it's planned to be
2332 finished before the Wine
1.0 release).
2337 <term>Unmanaged / Normal
</term>
2340 Window manager independent (any running
2341 window manager is ignored completely). Window
2342 decorations (title bars, borders, etc) are drawn by
2343 Wine to look and feel like the real Windows. This is
2344 compatible with programs that depend on being able
2345 to compute the exact sizes of any such decorations, or
2346 that want to draw their own.
2347 Unmanaged mode is only used if both Managed and Desktop
2348 are set to disabled.
2353 <term>Desktop-in-a-Box
</term>
2356 Specified by using the
<literal>Desktop
</literal>
2357 wine configuration file option (see below).
2358 (adding a geometry, e.g.
<literal>800x600
</literal>
2359 for a such-sized desktop, or
2360 even
<literal>800x600+
0+
0</literal> to
2361 automatically position the desktop at the upper-left
2362 corner of the display). This is the mode most
2363 compatible with the Windows model. All program
2364 windows will just be Wine-drawn windows inside the
2365 Wine-provided desktop window (which will itself be
2366 managed by your window manager), and Windows
2367 programs can roam freely within this virtual
2368 workspace and think they own it all, without
2369 disturbing your other X apps.
2370 Note: currently there's one desktop window for every
2371 program; this will be fixed at some time.
2379 <title>The [x11drv] section
</title>
2383 <term>Managed
</term>
2386 Wine can let frame windows be managed by your window
2387 manager. This option specifies whether you want that
2393 <term>Desktop
</term>
2396 Creates a main desktop window of a specified size
2397 to display all Windows programs in.
2398 The size argument could e.g. be
"800x600".
2406 If you don't use DGA, you may want an alternative
2407 means to convince the mouse cursor to stay within the
2408 game window. This option does that. Of course, as with
2409 DGA, if Wine crashes, you're in trouble (although not
2410 as badly as in the DGA case, since you can still use
2411 the keyboard to get out of X).
2419 This specifies whether you want DirectDraw to use
2420 XFree86's
<firstterm>Direct Graphics
2421 Architecture
</firstterm> (DGA), which is able to
2422 take over the entire display and run the game
2423 full-screen at maximum speed. (With DGA1 (XFree86
2424 3.x), you still have to configure the X server to the
2425 game's requested bpp first, but with DGA2 (XFree86
2426 4.x), runtime depth-switching may be possible,
2427 depending on your driver's capabilities.) But be aware
2428 that if Wine crashes while in DGA mode, it may not be
2429 possible to regain control over your computer without
2430 rebooting. DGA normally requires either root
2431 privileges or read/write access to
2432 <filename>/dev/mem
</filename>.
2437 <term>DesktopDoubleBuffered
</term>
2440 Applies only if you use the
2441 <parameter>--desktop
</parameter> command-line option
2442 to run in a desktop window. Specifies whether to
2443 create the desktop window with a double-buffered
2444 visual, something most OpenGL games need to run
2450 <term>AllocSystemColors
</term>
2453 Applies only if you have a palette-based display, i.e.
2454 if your X server is set to a depth of
8bpp, and if you
2455 haven't requested a private color map. It specifies
2456 the maximum number of shared colormap cells (palette
2457 entries) Wine should occupy. The higher this value,
2458 the less colors will be available to other
2464 <term>PrivateColorMap
</term>
2467 Applies only if you have a palette-based display, i.e.
2468 if your X server is set to a depth of
8bpp. It
2469 specifies that you don't want to use the shared color
2470 map, but a private color map, where all
256 colors are
2471 available. The disadvantage is that Wine's private
2472 color map is only seen while the mouse pointer is
2473 inside a Wine window, so psychedelic flashing and
2474 funky colors will become routine if you use the mouse
2480 <term>Synchronous
</term>
2483 To be used for debugging X11 operations.
2484 If Wine crashes with an X11 error, then you should enable
2485 Synchronous mode to disable X11 request caching in order
2486 to make sure that the X11 error happens directly after
2487 the corresponding X11 call in the log file appears.
2488 Will slow down X11 output!
2493 <term>ScreenDepth
</term>
2496 Applies only to multi-depth displays. It specifies
2497 which of the available depths Wine should use (and
2498 tell Windows apps about).
2503 <term>Display
</term>
2506 This specifies which X11 display to use, and if
2507 specified, will override the
2508 <envar>DISPLAY
</envar> environment variable.
2513 <term>PerfectGraphics
</term>
2516 This option only determines whether fast X11 routines
2517 or exact Wine routines will be used for certain ROP
2518 codes in blit operations. Most users won't notice any
2528 <title>Configuring the ttydrv graphics driver
</title>
2530 Currently, the ttydrv doesn't have any special configuration
2531 options to set in the configuration file.
2537 <sect1 id=
"config-windows-versions">
2539 <title>Setting the Windows and DOS version value
</title>
2542 The windows and DOS version value a program gets e.g. by calling the
2543 Windows function GetVersion() plays a very important role:
2544 If your Wine installation for whatever reason fails to provide
2545 to your program the correct version value that it expects,
2546 then the program might assume some very bad things and fail (in
2547 the worst case even silently!).
2549 Fortunately Wine contains some more or less intelligent Windows
2550 version guessing algorithm that will try to guess the Windows
2551 version a program might expect and pass that one on to the
2554 Thus you should
<emphasis>not
</emphasis> lightly configure a version value, as this will be a
"forced" value and thus turn out to be rather harmful to proper operation. In other words: only explicitly set a Windows version value in case Wine's own version detection was unable to provide the correct Windows version and the program fails.
2558 <title>How to configure the Windows and DOS version value Wine
2559 should return
</title>
2562 The version values can be configured in the wine configuration file in
2563 the [Version] section.
2568 <term>"Windows" =
"<version string>"</term>
2571 default: none; chosen by semi-intelligent detection
2572 mechanism based on DLL environment.
2573 Used to specify which Windows version to return to
2574 programs (forced value, overrides standard detection
2575 mechanism!). Valid settings are e.g.
"win31",
"win95",
2576 "win98",
"win2k",
"winxp".
2578 <link linkend=
"config-appdefaults">AppDefaults
</link>
2579 setting (recommended/preferred use).
2584 <term>"DOS"=
"<version string>"</term>
2587 Used to specify the DOS version that should be returned
2588 to programs. Only takes effect in case Wine acts as
2589 "win31" Windows version! Common DOS version settings
2590 include
6.22,
6.20,
6.00,
5.00,
4.00,
3.30,
3.10.
2592 <link linkend=
"config-appdefaults">AppDefaults
</link>
2593 setting (recommended/preferred use).
2604 <sect1 id=
"config-scsi-support">
2605 <title>SCSI Support
</title>
2607 This file describes setting up the Windows ASPI interface.
2608 ASPI is a direct link to SCSI devices from windows programs.
2609 ASPI just forwards the SCSI commands that programs send
2610 to it to the SCSI bus.
2613 If you use the wrong SCSI device in your setup file, you can send
2614 completely bogus commands to the wrong device - An example would be
2615 formatting your hard drives (assuming the device gave you permission -
2616 if you're running as root, all bets are off).
2619 So please make sure that
<emphasis>all
</emphasis> SCSI devices not needed by the program
2620 have their permissions set as restricted as possible!
2624 <title>Windows requirements
</title>
2628 The software needs to use the
"Adaptec"
2629 compatible drivers (ASPI). At least with Mustek, they
2630 allow you the choice of using the built-in card or the
2631 "Adaptec (AHA)" compatible drivers. This will not work
2632 any other way. Software that accesses the scanner via a
2633 DOS ASPI driver (e.g. ASPI2DOS) is supported, too.
2638 You probably need a real windows install of the software
2639 to set the LUN's/SCSI id's up correctly. I'm not exactly
2647 <title>Linux requirements
</title>
2651 Your SCSI card must be supported under Linux. This will
2652 not work with an unknown SCSI card. Even for cheap'n
2653 crappy
"scanner only" controllers some special Linux
2654 drivers exist on the net.
2655 If you intend to use your IDE device, you need to use the
2658 <ulink url=
"http://www.linuxdoc.org/HOWTO/CD-Writing-HOWTO.html">
2659 http://www.linuxdoc.org/HOWTO/CD-Writing-HOWTO.html
</ulink>
2660 for ide-scsi setup instructions.
2665 Compile generic SCSI drivers into your kernel.
2670 This seems to be not required any more for newer (
2.2.x) kernels:
2671 Linux by default uses smaller SCSI buffers than Windows.
2672 There is a kernel build define
<literal>SG_BIG_BUFF
</literal> (in
2673 <filename>sg.h
</filename>) that is by default set too
2674 low. The SANE project recommends
2675 <literal>130560</literal> and this seems to work just
2676 fine. This does require a kernel rebuild.
2681 Make the devices for the scanner (generic SCSI devices)
2682 - look at the SCSI programming HOWTO at
2683 <ulink url=
"http://www.linuxdoc.org/HOWTO/SCSI-Programming-HOWTO.html">
2684 http://www.linuxdoc.org/HOWTO/SCSI-Programming-HOWTO.html
</ulink>
2685 for device numbering.
2690 I would recommend making the scanner device writable by
2691 a group. I made a group called
2692 <literal>scanner
</literal> and added myself to it.
2693 Running as root increases your risk of sending bad SCSI
2694 commands to the wrong device. With a regular user, you
2695 are better protected.
2700 For Win32 software (WNASPI32), Wine has auto-detection in place.
2701 For Win16 software (WINASPI), you need to add a SCSI device entry
2702 for your particular scanner to ~/.wine/config. The format is
2703 <literal>[scsi cCtTdD]
</literal> where
2704 <literal>"C" =
"controller"</literal>,
2705 <literal>"T" =
"target"</literal>,
<literal>D=LUN
</literal>
2708 For example, I set mine up as controller
<literal>0</literal>,
2709 Target
<literal>6</literal>, LUN
<literal>0</literal>.
2712 "Device" =
"/dev/sgi"
2714 Yours will vary with your particular SCSI setup.
2721 <title>Notes
</title>
2723 The biggest drawback is that it only works under Linux at the moment.
2724 The ASPI code has only been tested with:
2729 a Mustek
800SP with a Buslogic controller under Linux [BM]
2734 a Siemens Nixdorf
9036 with Adaptec AVA-
1505 under Linux
2735 accessed via DOSASPI. Note that I had color problems,
2736 though (barely readable result) [AM]
2741 a Fujitsu M2513A MO drive (
640MB) using generic SCSI
2742 drivers. Formatting and ejecting worked perfectly.
2743 Thanks to Uwe Bonnes for access to the hardware! [AM]
2750 <sect1 id=
"config-odbc">
2751 <title>Using ODBC
</title>
2753 This section describes how ODBC works within Wine and how to configure it.
2756 The ODBC system within Wine, as with the printing system, is designed
2757 to hook across to the Unix system at a high level. Rather than
2758 ensuring that all the windows code works under wine it uses a suitable
2759 Unix ODBC provider, such as UnixODBC. Thus if you configure Wine to
2760 use the built-in odbc32.dll, that Wine DLL will interface to your
2761 Unix ODBC package and let that do the work, whereas if you configure
2762 Wine to use the native odbc32.dll it will try to use the native
2766 <title>Using a Unix ODBC system with Wine
</title>
2768 The first step in using a Unix ODBC system with Wine is, of course,
2769 to get the Unix ODBC system working itself. This may involve
2770 downloading code or RPMs etc. There are several Unix ODBC systems
2771 available; the one the author is used to is unixODBC (with the
2772 IBM DB2 driver). Typically such systems will include a tool, such
2773 as
<command>isql
</command>, which will allow you to access the data from the command
2774 line so that you can check that the system is working.
2777 The next step is to hook the Unix ODBC library to the wine built-in
2778 odbc32 DLL. The built-in odbc32 (currently) looks to the
2779 environment variable
<emphasis>LIB_ODBC_DRIVER_MANAGER
</emphasis>
2780 for the name of the ODBC library. For example in the author's
2781 .bashrc file is the line:
2784 export LIB_ODBC_DRIVER_MANAGER=/usr/lib/libodbc.so
.1.0.0
2787 If that environment variable is not set then it looks for a
2788 library called libodbc.so and so you can add a symbolic link to
2789 equate that to your own library. For example as root you could
2793 <prompt>#
</prompt><userinput>ln -s libodbc.so
.1.0.0 /usr/lib/libodbc.so
</userinput>
2794 <prompt>#
</prompt><userinput>/sbin/ldconfig
</userinput>
2797 The last step in configuring this is to ensure that Wine is set up
2798 to run the built-in version of odbc32.dll, by modifying the DLL
2799 configuration. This built-in DLL merely acts as a stub between the
2800 calling code and the Unix ODBC library.
2803 If you have any problems then you can use the debugmsg channel
2804 odbc32 to trace what is happening. One word of warning. Some
2805 programs actually cheat a little and bypass the ODBC library. For
2806 example the Crystal Reports engine goes to the registry to check on
2807 the DSN. The fix for this is documented at unixODBC's site where
2808 there is a section on using unixODBC with Wine.
2812 <title>Using Windows ODBC drivers
</title>
2814 Native ODBC drivers have been reported to work for many types of
2815 databases including MSSQL and Oracle. In fact, some like MSSQL can
2816 only be accessed on Linux through a Winelib app. Rather than
2817 just copying DLL files, most ODBC drivers require a Windows-based
2818 installer to run to properly configure things such as registry keys.
2821 In order to set up MSSQL support you will first need to download
2822 and run the mdac_typ.exe installer from microsoft.com. In order to
2823 configure your ODBC connections you must then run CLICONFG.EXE and
2824 ODBCAD32.EXE under Wine. You can find them in the windows\system
2825 directory after mdac_typ runs. Compare the output of these programs
2826 with the output on a native Windows machine. Some things, such
2827 as protocols, may be missing because they rely on being installed
2828 along with the operating system. If so, you may be able to copy
2829 missing functionality from an existing Windows installation as
2830 well as any registry values required. A native Windows installation
2831 configured to be used by Wine should work the same way it did
2835 Types successfully tested under wine:
2841 <entry>DB Type
</entry>
2842 <entry>Usefulness
</entry>
2847 <entry>MS SQL
</entry>
2854 Please report any other successes to the
2855 <ulink url=
"mailto:wine-devel@winehq.org">wine-devel
</ulink>
2863 <!-- Keep this comment at the end of the file
2866 sgml-parent-document:("wine-user.sgml" "set" "book" "chapter" "")