<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Wine User Guide</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"></HEAD
><BODY
CLASS="BOOK"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="BOOK"
><A
NAME="INDEX"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="TITLE"
><A
NAME="AEN2"
>Wine User Guide</A
></H1
><HR></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#INTRODUCTION"
>Introduction</A
></DT
><DD
><DL
><DT
><A
HREF="#OVERVIEW"
>Overview / About</A
></DT
><DD
><DL
><DT
><A
HREF="#AEN8"
>Purpose of this document and intended audience</A
></DT
><DT
><A
HREF="#AEN11"
>Further questions and comments</A
></DT
><DT
><A
HREF="#AEN17"
>Content overview / Steps to take</A
></DT
><DT
><A
HREF="#AEN23"
>Quick start</A
></DT
></DL
></DD
><DT
><A
HREF="#WHAT-IS-WINE"
>What is Wine?</A
></DT
><DD
><DL
><DT
><A
HREF="#AEN49"
>Windows and Linux</A
></DT
><DT
><A
HREF="#AEN53"
>What is Wine, and how can it help me?</A
></DT
><DT
><A
HREF="#WINE-FEATURES"
>Wine features</A
></DT
></DL
></DD
><DT
><A
HREF="#WINE-VERSIONS"
>Versions of Wine</A
></DT
><DD
><DL
><DT
><A
HREF="#AEN90"
>Wine from Wine HQ</A
></DT
><DT
><A
HREF="#AEN94"
>Other Versions of Wine</A
></DT
></DL
></DD
><DT
><A
HREF="#ALTERNATIVES"
>Alternatives to Wine you might want to consider</A
></DT
><DD
><DL
><DT
><A
HREF="#AEN119"
>Native Applications</A
></DT
><DT
><A
HREF="#AEN122"
>Another Operating System</A
></DT
><DT
><A
HREF="#AEN127"
>Virtual Machines</A
></DT
></DL
></DD
></DL
></DD
><DT
><A
HREF="#GETTING-WINE"
>Getting Wine</A
></DT
><DD
><DL
><DT
><A
HREF="#INSTALLATION-METHODS"
>Wine Installation Methods</A
></DT
><DD
><DL
><DT
><A
HREF="#INSTALLATION-METHODS-PACKAGE"
>Installation from a package</A
></DT
><DT
><A
HREF="#INSTALLATION-METHODS-SOURCE"
>Installation from a source archive</A
></DT
><DT
><A
HREF="#INSTALLATION-METHODS-GIT"
>Installation from a Git tree</A
></DT
></DL
></DD
><DT
><A
HREF="#INSTALLING-WINE-PACKAGE"
>Installing Wine from a package</A
></DT
><DD
><DL
><DT
><A
HREF="#AEN160"
>Installing a fresh package</A
></DT
><DT
><A
HREF="#AEN164"
>Different Distributions</A
></DT
></DL
></DD
><DT
><A
HREF="#INSTALLING-WINE-SOURCE"
>Installing Wine from source</A
></DT
><DD
><DL
><DT
><A
HREF="#AEN172"
>Getting the Build Dependencies</A
></DT
><DT
><A
HREF="#COMPILING-WINE"
>Compiling Wine</A
></DT
><DT
><A
HREF="#UNINSTALLING-WINE-SOURCE"
>Uninstalling Wine from Source</A
></DT
></DL
></DD
></DL
></DD
><DT
><A
HREF="#CONFIG-WINE-MAIN"
>Configuring Wine</A
></DT
><DD
><DL
><DT
><A
HREF="#USING-WINECFG"
>Using Winecfg</A
></DT
><DD
><DL
><DT
><A
HREF="#CONFIG-WINDOWS-VERSIONS"
>Application Settings</A
></DT
><DT
><A
HREF="#AEN241"
>Libraries Settings</A
></DT
><DT
><A
HREF="#AEN281"
>Graphics Settings</A
></DT
><DT
><A
HREF="#AEN288"
>Drive Settings</A
></DT
><DT
><A
HREF="#AEN305"
>Audio Settings</A
></DT
><DT
><A
HREF="#AEN309"
>Desktop Integration</A
></DT
></DL
></DD
><DT
><A
HREF="#USING-REGEDIT"
>Using the Registry and Regedit</A
></DT
><DD
><DL
><DT
><A
HREF="#AEN327"
>Registry Structure</A
></DT
><DT
><A
HREF="#AEN349"
>Registry Files</A
></DT
><DT
><A
HREF="#AEN376"
>Using Regedit</A
></DT
><DT
><A
HREF="#AEN384"
>System Administration Tips</A
></DT
><DT
><A
HREF="#AEN401"
>Complete List of Registry Keys</A
></DT
></DL
></DD
><DT
><A
HREF="#MISC-THINGS-TO-CONFIGURE"
>Other Things to Configure</A
></DT
><DD
><DL
><DT
><A
HREF="#AEN408"
>Serial and Parallel Ports</A
></DT
><DT
><A
HREF="#AEN416"
>Network Shares</A
></DT
><DT
><A
HREF="#AEN425"
>Fonts</A
></DT
><DT
><A
HREF="#AEN430"
>Printers</A
></DT
><DT
><A
HREF="#AEN444"
>Scanners</A
></DT
><DT
><A
HREF="#AEN448"
>ODBC Databases</A
></DT
></DL
></DD
></DL
></DD
><DT
><A
HREF="#RUNNING"
>Running Wine</A
></DT
><DD
><DL
><DT
><A
HREF="#BASIC-USAGE"
>Basic usage: applications and control panel applets</A
></DT
><DT
><A
HREF="#RUNNING-WINE"
>How to run Wine</A
></DT
><DT
><A
HREF="#EXPLORER-LIKE-WINE"
>Explorer-like graphical Wine environments</A
></DT
><DT
><A
HREF="#COMMAND-LINE-OPTIONS"
>Wine Command Line Options</A
></DT
><DD
><DL
><DT
><A
HREF="#AEN537"
>--help</A
></DT
><DT
><A
HREF="#AEN540"
>--version</A
></DT
></DL
></DD
><DT
><A
HREF="#AEN543"
>Environment variables</A
></DT
><DD
><DL
><DT
><A
HREF="#AEN545"
>WINEDEBUG=[channels]</A
></DT
><DT
><A
HREF="#AEN877"
>WINEDLLOVERRIDES=[DLL Overrides]</A
></DT
></DL
></DD
><DT
><A
HREF="#WINESERVER-COMMAND-LINE-OPTIONS"
>wineserver Command Line Options</A
></DT
><DD
><DL
><DT
><A
HREF="#WINESERVER-CONFIG-PARAMETER"
>-d&#60;n&#62;</A
></DT
><DT
><A
HREF="#AEN894"
>-h</A
></DT
><DT
><A
HREF="#AEN897"
>-k[n]</A
></DT
><DT
><A
HREF="#AEN900"
>-p[n]</A
></DT
><DT
><A
HREF="#AEN904"
>-w</A
></DT
></DL
></DD
><DT
><A
HREF="#ENVIRONMENT-VARIABLES"
>Setting Windows/DOS environment variables</A
></DT
><DT
><A
HREF="#CUI-PROGRAMS"
>Text mode programs (CUI: Console User Interface)</A
></DT
><DD
><DL
><DT
><A
HREF="#CUI-PROGRAMS-CONFIG"
>Configuration of CUI executables</A
></DT
></DL
></DD
></DL
></DD
><DT
><A
HREF="#BUGS"
>Troubleshooting / Reporting bugs</A
></DT
><DD
><DL
><DT
><A
HREF="#TROUBLESHOOTING"
>What to do if some program still doesn't work?</A
></DT
><DD
><DL
><DT
><A
HREF="#AEN1052"
>Verify your wine configuration</A
></DT
><DT
><A
HREF="#AEN1058"
>Use different windows version settings</A
></DT
><DT
><A
HREF="#AEN1062"
>Use different startup paths</A
></DT
><DT
><A
HREF="#AEN1067"
>Fiddle with DLL configuration</A
></DT
><DT
><A
HREF="#AEN1070"
>Check your system environment !</A
></DT
><DT
><A
HREF="#AEN1073"
>Use different GUI (Window Manager) modes</A
></DT
><DT
><A
HREF="#AEN1076"
>Check your app !</A
></DT
><DT
><A
HREF="#AEN1081"
>Check your Wine environment !</A
></DT
><DT
><A
HREF="#AEN1084"
>Reconfigure Wine</A
></DT
><DT
><A
HREF="#AEN1090"
>Check out further information</A
></DT
><DT
><A
HREF="#AEN1120"
>Debug it!</A
></DT
></DL
></DD
><DT
><A
HREF="#BUG-REPORTING"
>How To Report A Bug</A
></DT
><DD
><DL
><DT
><A
HREF="#AEN1127"
>All Bug Reports</A
></DT
><DT
><A
HREF="#AEN1160"
>Crashes</A
></DT
></DL
></DD
></DL
></DD
><DT
><A
HREF="#GLOSSARY"
>Glossary</A
></DT
></DL
></DIV
><DIV
CLASS="CHAPTER"
><HR><H1
><A
NAME="INTRODUCTION"
></A
>Introduction</H1
><DIV
CLASS="SECT1"
><H2
CLASS="SECT1"
><A
NAME="OVERVIEW"
>Overview / About</A
></H2
><DIV
CLASS="SECT2"
><H3
CLASS="SECT2"
><A
NAME="AEN8"
>Purpose of this document and intended audience</A
></H3
><P
>          This document, called the Wine User Guide, is both an easy
          installation guide and an extensive reference guide.  This guide
          is for both the new Wine user and the experienced Wine user,
          offering full step-by-step installation and configuration
          instructions, as well as featuring extensive reference material
          by documenting all configuration features and support areas.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN11"
>Further questions and comments</A
></H3
><P
>          If, after examining this guide, the FAQ, and other relevant
          documentation there is still something you cannot figure out,
          we would love to hear from you.  The <A
HREF="http://www.winehq.org/site/forums"
TARGET="_top"
>mailing lists</A
>
          section contains several mailing lists and an IRC channel, all
          of which are great places to seek help and offer suggestions.
          If you are particularly savvy, and believe that something can be
          explained better, you can file a <A
HREF="http://bugs.winehq.org/"
TARGET="_top"
>bug report</A
> or <A
HREF="http://www.winehq.org/site/sending_patches"
TARGET="_top"
>post a
          patch</A
> on Wine's documentation itself.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN17"
>Content overview / Steps to take</A
></H3
><P
>          In order to be able to use Wine, you must first have a working
          installation.  This guide will help you to move your system
          from an empty, Wineless void to one boasting a fresh, up to
          date Wine install.  The first step, <A
HREF="#GETTING-WINE"
>Getting Wine</A
>, illustrates the
          various methods of getting Wine's files onto your computer.
          The second step, <A
HREF="#CONFIG-WINE-MAIN"
>Configuring
          Wine</A
>, shows how to customize a Wine installation depending
          on your individual needs.  The final step, <A
HREF="#RUNNING"
>Running Wine</A
>, covers the specific
          steps you can take to get a particular application to run
          better under Wine, and provides useful links in case you need
          further help.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN23"
>Quick start</A
></H3
><P
>          The process of installing and running wine can be summarised as 
          follows:
          <P
></P
><UL
><LI
><P
>                Get a distribution as indicated in <A
HREF="#GETTING-WINE"
>Getting Wine</A
> and see 
                the <A
HREF="http://www.winehq.org/site/download"
TARGET="_top"
>Wine 
                Downloads</A
> page. For the casual or new user the simplest 
                is to get an rpm distribution.    
              </P
></LI
><LI
><P
>                Configure wine using the <A
HREF="#CONFIG-WINE-MAIN"
><I
CLASS="EMPHASIS"
><TT
CLASS="FILENAME"
>winecfg</TT
></I
>
                </A
> command. For most people wine should now be usable.         
              </P
></LI
><LI
><P
>                To test your installation run wine's Windows 3.1 like file 
                manager using the <TT
CLASS="FILENAME"
>wine winefile</TT
> command.
              </P
></LI
><LI
><P
>                Run wine using the <A
HREF="#RUNNING"
><I
CLASS="EMPHASIS"
><TT
CLASS="FILENAME"
>wine</TT
> 
                <TT
CLASS="FILENAME"
>filespec/appname.exe</TT
></I
></A
> command.
              </P
><P
>                The first command you will run will be to install a package. 
                Typically something like <TT
CLASS="FILENAME"
>wine 
                /media/cdrom/setup.exe</TT
> or the equivalent.
              </P
></LI
></UL
>
        </P
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="WHAT-IS-WINE"
>What is Wine?</A
></H2
><DIV
CLASS="SECT2"
><H3
CLASS="SECT2"
><A
NAME="AEN49"
>Windows and Linux</A
></H3
><P
>          Different software programs are designed for different
          operating systems, and most won't work on systems that they
          weren't designed for.  Windows programs, for example, won't run
          in Linux because they contain instructions that the system can't
          understand until they're translated by the Windows environment.
          Linux programs, likewise, won't run under the Windows operating
          system because Windows is unable to interpret all of their
          instructions.
        </P
><P
>          This situation presents a fundamental problem for anyone who
          wants to run software for both Windows and Linux.  A common
          solution to this problem is to install both operating systems on
          the same computer, known as "dual booting."  When a Windows
          program is needed, the user boots the machine into Windows to
          run it; when a Linux program is then needed, the user then
          reboots the machine into Linux.  This option presents great
          difficulty: not only must the user endure the frustration of
          frequent rebooting, but programs for both platforms can't be
          run simultaneously.  Having Windows on a system also creates
          an added burden: the software is expensive, requires a separate
          disk partition, and is unable to read most filesystem formats,
          making the sharing of data between operating systems difficult.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN53"
>What is Wine, and how can it help me?</A
></H3
><P
>          Wine makes it possible to run Windows programs alongside any
          Unix-like operating system, particularly Linux.  At its heart,
          Wine is an implementation of the Windows Application
          Programing Interface (API) library, acting as a bridge between
          the Windows program and Linux.  Think of Wine as a compatibility
          layer, when a Windows program tries to perform a function that
          Linux doesn't normally understand, Wine will translate that
          program's instruction into one supported by the system.  For
          example, if a program asks the system to create a Windows
          pushbutton or text-edit field, Wine will convert that
          instruction into its Linux equivalent in the form of a command
          to the window manager using the standard X11 protocol.
        </P
><P
>          If you have access to the Windows program's source code, Wine
          can also be used to recompile a program into a format that Linux
          can understand more easily.  Wine is still needed to launch the
          program in its recompiled form, however there are many advantages
          to compiling a Windows program natively within Linux.  For more
          information, see the Winelib User Guide.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="WINE-FEATURES"
>Wine features</A
></H3
><P
>          Throughout the course of its development, Wine has continually
          grown in the features it carries and the programs it can run.
          A partial list of these features follows: 
        </P
><P
>          <P
></P
><UL
><LI
><P
>                Support for running Win32 (Win 95/98, NT/2000/XP), Win16
                (Win 3.1) and DOS programs
              </P
></LI
><LI
><P
>                Optional use of external vendor DLL files (such as those
                included with Windows)
              </P
></LI
><LI
><P
>                X11-based graphics display, allowing remote display to any
                X terminal, as well as a text mode console
              </P
></LI
><LI
><P
>                Desktop-in-a-box or mixable windows 
              </P
></LI
><LI
><P
>                DirectX support for games
              </P
></LI
><LI
><P
>                Good support for various sound drivers including OSS and ALSA
              </P
></LI
><LI
><P
>                Support for alternative input devices 
              </P
></LI
><LI
><P
>                Printing: PostScript interface driver (psdrv) to standard
                Unix PostScript print services 
              </P
></LI
><LI
><P
>                Modem, serial device support
              </P
></LI
><LI
><P
>                Winsock TCP/IP networking support
              </P
></LI
><LI
><P
>                ASPI interface (SCSI) support for scanners, CD writers,
                and other devices
              </P
></LI
><LI
><P
>                Advanced unicode and foreign language support
              </P
></LI
><LI
><P
>                Full-featured Wine debugger and configurable trace
                logging messages for easier troubleshooting
              </P
></LI
></UL
>
        </P
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="WINE-VERSIONS"
>Versions of Wine</A
></H2
><DIV
CLASS="SECT2"
><H3
CLASS="SECT2"
><A
NAME="AEN90"
>Wine from Wine HQ</A
></H3
><P
>             Wine is an open source project, and there are accordingly
             many different versions of Wine for you to choose from.  The
             standard version of Wine comes in intermittent releases
             (roughly twice a month), and can be downloaded over the
             internet in both prepackaged binary form and ready to compile
             source code form.  Alternatively, you can install a development
             version of Wine by using the latest available source code from
             the Git repository.  See the next chapter, <A
HREF="#GETTING-WINE"
>Getting Wine</A
>, for further details.
          </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN94"
>Other Versions of Wine</A
></H3
><P
>            There are a number of programs that are derived from the
            standard Wine codebase in some way or another.  Some of these
            are commercial products from companies that actively contribute
            to the Wine project.
          </P
><P
>            These products try to stand out or distinguish themselves
            from the standard version of Wine by offering greater
            compatibility, easier configuration, and commercial support.
            If you require such things, it is a good idea to consider
            purchasing these products.
          </P
><DIV
CLASS="TABLE"
><A
NAME="AEN98"
></A
><P
><B
>Table 1. Various Wine offerings</B
></P
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
>Product</TH
><TH
>Description</TH
><TH
>Distribution Form</TH
></TR
></THEAD
><TBODY
><TR
><TD
>                <A
HREF="http://www.codeweavers.com/products/office"
TARGET="_top"
>CodeWeavers CrossOver Office</A
>
              </TD
><TD
>                CrossOver Office allows you to install your favorite
                Windows productivity applications in Linux, without
                needing a Microsoft Operating System license. CrossOver
                includes an easy to use, single click interface, which
                makes installing a Windows application simple and fast.
              </TD
><TD
>                Commercial; 30-day fully-functional demo available.
              </TD
></TR
><TR
><TD
>                <A
HREF="http://www.codeweavers.com/products/cxofficeserver"
TARGET="_top"
>CodeWeavers CrossOver Office Server Edition</A
>
              </TD
><TD
>                CrossOver Office Server Edition allows you to run your
                favorite Windows productivity applications in a
                distributed thin-client environment under Linux, without
                needing Microsoft Operating System licenses for each
                client machine. CrossOver Office Server Edition allows you
                to satisfy the needs of literally hundreds of concurrent
                users, all from a single server.
              </TD
><TD
>&nbsp;</TD
></TR
></TBODY
></TABLE
></DIV
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="ALTERNATIVES"
>Alternatives to Wine you might want to consider</A
></H2
><P
>          There are many ways to run software other than through Wine.  If
          you are considering using Wine to run an application you might
          want to think about the viability of these approaches if you
          encounter difficulty.
      </P
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN119"
>Native Applications</A
></H3
><P
>          Instead of running a particular Windows application with Wine,
          one frequently viable alternative is to simply run a different
          application.  Many Windows applications, particularly more
          commonly used ones such as media players, instant messengers,
          and filesharing programs have very good open source equivalents.
          Furthermore, a sizable number of Windows programs have been
          ported to Linux directly, eliminating the need for Wine (or
          Windows) entirely.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN122"
>Another Operating System</A
></H3
><P
>          Probably the most obvious method of getting a Windows
          application to run is to simply run it on Windows.  However,
          security, license cost, backward-compatibility, and machine
          efficiency issues can make this a difficult proposition, which
          is why Wine is so useful in the first place.
        </P
><P
>          Another alternative is to use <A
HREF="http://www.reactos.com"
TARGET="_top"
>ReactOS</A
>, which is a fully
          open source alternative to Windows.  ReactOS shares code
          heavily with the Wine project, but rather than running Windows
          applications on top of Linux they are instead run on top of the
          ReactOS kernel.  ReactOS also offers compatibility with Windows
          driver files, allowing the use of hardware without functional
          Linux drivers.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN127"
>Virtual Machines</A
></H3
><P
>          Rather than installing an entirely new operating system on your
          machine, you can instead run a virtual machine at the software
          level and install a different operating system on it.  Thus, you
          could run a Linux system and at the same time run Windows along
          with your application in a virtual machine simultaneously on the
          same hardware.  Virtual machines allow you to install and run
          not only different versions of Windows on the same hardware, but
          also other operating systems, including ReactOS.
        </P
><P
>          There are several different virtual machine offerings out there,
          and some are also able to emulate x86 hardware on different
          platforms.  The open source <A
HREF="http://bochs.sourceforge.net/"
TARGET="_top"
>Bochs</A
> and <A
HREF="http://www.qemu.org/"
TARGET="_top"
>QEMU</A
> can run
          both Windows and ReactOS virtually.  Other, commercial virtual
          machine offerings include <A
HREF="http://www.vmware.com/"
TARGET="_top"
>VMware</A
> and Microsoft's
          <A
HREF="http://www.microsoft.com/windows/virtualpc/"
TARGET="_top"
>VirtualPC</A
>.
        </P
><P
>          There are significant drawbacks to using virtual machines,
          however.  Unlike Wine, such programs <I
CLASS="EMPHASIS"
>are</I
>
          emulators, so there is an inevitable speed decrease which can
          be quite substantial.  Furthermore, running an application
          inside a virtual machine prevents fully integrating the
          application within the current environment.  You won't, for
          example, be able to have windows system tray icons or program
          shortcuts sitting alongside your desktop Linux ones, since
          instead the Windows applications must reside completely within
          the virtual machine.
        </P
></DIV
></DIV
></DIV
><DIV
CLASS="CHAPTER"
><HR><H1
><A
NAME="GETTING-WINE"
></A
>Getting Wine</H1
><DIV
CLASS="SECT1"
><H2
CLASS="SECT1"
><A
NAME="INSTALLATION-METHODS"
>Wine Installation Methods</A
></H2
><P
>        Once you've decided that Wine is right for your needs, the next step is 
        to decide how you want to install it.  There are three methods for 
        installing Wine from WineHQ, each with their own advantages and 
        disadvantages.
      </P
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="INSTALLATION-METHODS-PACKAGE"
>Installation from a package</A
></H3
><P
>          By far the easiest method for installing Wine is to use a prepackaged 
          version of Wine.  These packages contain ready-to-run Wine binary 
          files specifically compiled for your distribution, and they are 
          tested regularly by the packagers for both functionality and 
          completeness.
        </P
><P
>          Packages are the recommended method for installing Wine.  We make 
          them easily available at the 
          <A
HREF="http://www.winehq.org/site/download"
TARGET="_top"
>WineHQ downloads page
          </A
>, and these are always the latest packages available.  Being 
          popular, Wine packages can also be found elsewhere in official 
          distribution repositories.  These can, however, sometimes be out of 
          date, depending on the distribution.  Packages are easily upgradable 
          as well, and many distributions can upgrade Wine seamlessly with a 
          few clicks.  Building your own installable binary package from a 
          source package is also possible, although it is beyond the scope of 
          this guide.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="INSTALLATION-METHODS-SOURCE"
>Installation from a source archive</A
></H3
><P
>          Sometimes the Wine packages don't fit your needs exactly.  Perhaps 
          they're not available for your architecture or distribution, or 
          perhaps you want to build wine using your own compiler optimizations 
          or with some options disabled, or perhaps you need to modify a 
          specific part of the source code before compilation.  Being an open 
          source project, you are free to do all of these things with Wine's 
          source code, which is provided with every Wine release. This method 
          of installation can be done by downloading a Wine source archive and 
          compiling from the command line.  If you are comfortable with such 
          things and have special needs, this option may be for you.
        </P
><P
>          Getting Wine source archives is simple.  Every release, we put a 
          source package in compressed tar.bz2 format at the 
          <A
HREF="http://www.winehq.org/site/download"
TARGET="_top"
>WineHQ downloads 
          page</A
>.  Compiling and installing Wine from source is slightly 
          more difficult than using a package, however we will cover it in 
          depth and attempt to hold your hand along the way.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="INSTALLATION-METHODS-GIT"
>Installation from a Git tree</A
></H3
><P
>          If you wish to try out the bleeding edge of Wine development, or 
          would even like to help develop Wine yourself, you can download the 
          very latest source code from our Git repository.  Instructions for 
          downloading from the Wine Git repository are available at <A
HREF="http://www.winehq.org/site/git"
TARGET="_top"
>http://www.winehq.org/site/git
          </A
>.
        </P
><P
>          Please take note that the usual warnings for using a developmental 
          version still apply.  The source code on the Git repository is largely 
          untested and may not even compile properly.  It is, however, the 
          best way to test out how Wine will work in the next version, and if 
          you're modifying source code it's best to get the latest copy.  The 
          Git repository is also useful for application maintainers interested 
          in testing if an application will still work right for the next 
          release, or if a recent patch actually improves things.  If you're 
          interested in helping us to get an application working in Wine, see 
          the <A
HREF="http://www.winehq.org/site/howto"
TARGET="_top"
>HowTo</A
>.
        </P
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="INSTALLING-WINE-PACKAGE"
>Installing Wine from a package</A
></H2
><DIV
CLASS="SECT2"
><H3
CLASS="SECT2"
><A
NAME="AEN160"
>Installing a fresh package</A
></H3
><P
>          Installing a package on a fresh system is remarkably straightforward. 
          Simply download and install the package using whatever utility your 
          distribution provides.  There is usually no need to explicitly 
          remove old packages before installing, as modern Linux distributions 
          should upgrade and replace them automatically.  If you installed 
          Wine from source code, however, you should remove it before 
          installing a Wine package.  See the section on <A
HREF="#UNINSTALLING-WINE-SOURCE"
>uninstalling Wine from source
          </A
> for proper instructions.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN164"
>Different Distributions</A
></H3
><P
>          Wine works on a huge amount of different Linux distributions, as well 
          other Unix-like systems such as Solaris and FreeBSD, each with their 
          own specific way of installing and managing packages.  Fortunately, 
          however, the same general ideas apply to all of them, and installing 
          Wine should be no more difficult than installing any other software, 
          no matter what distribution you use.  Uninstalling Wine packages is 
          simple as well, and in modern Linux distributions is usually done 
          through the same easy interface as package installation.
        </P
><P
>          We won't cover the specifics of installing or uninstalling Wine 
          packages among the various systems' methods of packaging and package 
          management in this guide, however, up to date installation notes for 
          particular distributions can be found at the WineHQ website in the 
          <A
HREF="http://www.winehq.org/site/howto"
TARGET="_top"
>HowTo</A
>.
          If you need further help figuring 
          out how to simply install a Wine package, we suggest consulting your 
          distribution's documentation, support forums, or IRC channels.
        </P
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="INSTALLING-WINE-SOURCE"
>Installing Wine from source</A
></H2
><P
>          Before installing Wine from source, make sure you uninstall any Wine 
          binary packages you may have on your system.  Installing from source 
          requires use of the terminal window as well as a full copy of the 
          Wine source code.  Once having downloaded the source from Git or 
          extracted it from an archive, navigate to it using the terminal and 
          then follow the remaining steps.
      </P
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN172"
>Getting the Build Dependencies</A
></H3
><P
>          Wine makes use of many open source libraries during its operation.  
          While Wine is not strictly dependent on these libraries and will 
          compile without most of them, much of Wine's functionality is 
          improved by having them available at compile time.  In the past, 
          many user problems were caused by people not having the necessary 
          development libraries when they built Wine from source; because of 
          this reason and others, we highly recommend installing via binary 
          packages or by building source packages which can automatically 
          satisfy their build dependencies.
        </P
><P
>          If you wish to install build dependencies by hand, there are several 
          ways to see if you're missing some useful development libraries.  
          The most straightforward approach is to watch the configure program's 
          output before you compile Wine and see if anything important is 
          missing; if it is, simply install what's missing and rerun configure 
          before compiling.  You can also check the file configure generates, 
          (include/config.h) and see if what files configure is looking for 
          but not finding.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="COMPILING-WINE"
>Compiling Wine</A
></H3
><P
>          Once you've installed the build dependencies you need, you're ready 
          to compile the package.  In the terminal window, after having 
          navigated to the Wine source tree, run the following commands:
            <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>            <TT
CLASS="PROMPT"
>$ </TT
><KBD
CLASS="USERINPUT"
>./configure</KBD
>
            <TT
CLASS="PROMPT"
>$ </TT
><KBD
CLASS="USERINPUT"
>make depend</KBD
>
            <TT
CLASS="PROMPT"
>$ </TT
><KBD
CLASS="USERINPUT"
>make</KBD
>
            <TT
CLASS="PROMPT"
># </TT
><KBD
CLASS="USERINPUT"
>make install</KBD
>
            </PRE
></TD
></TR
></TABLE
>
          The last command requires root privileges.  Although you should 
          never run Wine as root, you will need to install it this way.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="UNINSTALLING-WINE-SOURCE"
>Uninstalling Wine from Source</A
></H3
><P
>          To uninstall Wine from source, once again navigate to the same 
          source folder that you used to install Wine using the terminal.  
          Then, run the following command:
            <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>            <TT
CLASS="PROMPT"
># </TT
><KBD
CLASS="USERINPUT"
>make uninstall</KBD
>
            </PRE
></TD
></TR
></TABLE
>
          This command will require root privileges, and should remove all of 
          the Wine binary files from your system.  It will not, however, 
          remove your Wine configuration and applications located in your 
          user's home directory, so you are free to install another version of 
          Wine or delete that configuration by hand.
        </P
></DIV
></DIV
></DIV
><DIV
CLASS="CHAPTER"
><HR><H1
><A
NAME="CONFIG-WINE-MAIN"
></A
>Configuring Wine</H1
><P
>        Most of the most common configuration changes can be done with the
        Winecfg tool.  We'll go through an easy, step-by-step introduction
        to Winecfg and outline the options available.
        In the next section we'll go over more advanced changes you can make
        using regedit as well as provide a complete reference to all Wine
        configuration settings.  Finally, some things you might want to
        configure fall out of the scope of Winecfg and regedit, and we'll
        go over those.
      </P
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="USING-WINECFG"
>Using Winecfg</A
></H2
><P
>        In the past, Wine used a special configuration file that could be
         found in <TT
CLASS="FILENAME"
>~/.wine/config</TT
>.  If you are still using
         a version of Wine that references this file (older than June, 2005)
         you should upgrade before doing anything else.  All settings are now
         stored directly in the registry and accessed by Wine when it starts.
       </P
><P
>         Winecfg should have been installed on your computer along with the
         rest of the Wine programs.  If you can't figure out how to start it,
         try running the command:
         <TT
CLASS="PROMPT"
>$ </TT
><KBD
CLASS="USERINPUT"
>/usr/local/bin/winecfg</KBD
>
        </P
><P
>	 or possibly just:
         <TT
CLASS="PROMPT"
>$ </TT
><KBD
CLASS="USERINPUT"
>winecfg</KBD
>
        </P
><P
>          When the program starts you'll notice there are tabs along the top
          of the window for:
          <P
></P
><UL
><LI
><P
>                Applications
              </P
></LI
><LI
><P
>                Libraries
              </P
></LI
><LI
><P
>                Graphics
              </P
></LI
><LI
><P
>                Desktop Integration
              </P
></LI
><LI
><P
>                Drives
              </P
></LI
><LI
><P
>                Audio
              </P
></LI
><LI
><P
>                About
              </P
></LI
></UL
>
        </P
><P
>          Changing settings in the
          <I
CLASS="EMPHASIS"
>Applications</I
> and <I
CLASS="EMPHASIS"
>Libraries</I
>
          tab will have the most impact on getting an application to run.   The
          other settings focus on getting Wine itself to behave the way
          you want it to. 
        </P
><P
>	  Note: The Applications, Libraries, and Graphics tabs are linked
          together!  If you have Default Settings selected under Applications,
          all of the changes made within the Libraries and Graphics tabs will
          be changed for all applications.  If you've configured a specfic
          application under the Applications tab and have it selected, then
          any changes made in Libraries or Graphics will affect only that 
          application.  This allows for custom settings for specific 
          applications. 
        </P
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="CONFIG-WINDOWS-VERSIONS"
>Application Settings</A
></H3
><P
>          Wine has the ability to mimic the behavior of different versions of
          Windows.  In general, the biggest difference is whether Wine
          behaves as a Win9x version or an NT version.  Some applications
          require a specific behavior in order to function and changing
          this setting may cause a buggy app to work.  Recently Wine's
          default Windows version has changed to Windows 2000.  It's known
          that many applications will perform better if you choose Windows
          98.
       </P
><P
>         Within the tab you'll notice there is a
         <I
CLASS="EMPHASIS"
>Default Settings</I
> entry. If you select that
         you'll see the current default <I
CLASS="EMPHASIS"
>Windows Version</I
> 
         for all applications.  A troublesome application
         is best configured separately from the Default Settings.  To do that:
          <P
></P
><OL
TYPE="1"
><LI
><P
>                Click on the <I
CLASS="EMPHASIS"
>Add application</I
> button.
              </P
></LI
><LI
><P
>                Browse until you locate the .exe
              </P
></LI
><LI
><P
>                After it's been added you can choose the specific Windows
               version Wine will emulate for that application.
              </P
></LI
></OL
>
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN241"
>Libraries Settings</A
></H3
><P
>          Likewise, some applications require specific libraries in order
          to run.  Wine reproduces the Windows system libraries (so-called
          native DLL's) with completely custom versions designed to
          function exactly the same way but without requiring licenses
          from Microsoft.  Wine has many known deficiencies in it's
          built-in versions, but in many instances the functionality
          is sufficient.  Using only builtin DLL's ensures that your
          system is Microsoft-free.  However, Wine has the ability to
          load native Windows DLL's.
        </P
><DIV
CLASS="SECT3"
><HR><H4
CLASS="SECT3"
><A
NAME="WINECFG-DLL-OVERRIDES"
>DLL Overrides</A
></H4
><P
>            It's not always possible to run an application on builtin
            DLL's.  Sometimes native DLL's simply work better.  After
            you've located a native DLL on a Windows system, you'll
            need to put it in suitable place for Wine to find it
            and then configure it to be used.  Generally the place
            you need to put it is in the directory you've configured
            to be <TT
CLASS="FILENAME"
>c:\windows\system32</TT
> (more on that in
            the drives section).  There are four DLL's you should never
            try to use the native versions of:
            <TT
CLASS="FILENAME"
>kernel32.dll</TT
>,
            <TT
CLASS="FILENAME"
>gdi32.dll</TT
>,
            <TT
CLASS="FILENAME"
>user32.dll</TT
>,
            and <TT
CLASS="FILENAME"
>ntdll.dll</TT
>.  These libraries require
            low-level Windows kernel access that simply doesn't exist
            within Wine.	
          </P
><P
>            With that in mind, once you've copied the DLL you just need to
            tell Wine to try to use it.  You can configure Wine to choose
            between native and builtin DLL's at two different levels.
            If you have <I
CLASS="EMPHASIS"
>Default Settings</I
> selected
            in the <I
CLASS="EMPHASIS"
>Applications</I
> tab, the changes you
            make will affect all applications.  Or, you can override the 
            global settings on a per-application level by adding and 
            selecting an application in the <I
CLASS="EMPHASIS"
>Applications</I
>  
            tab.
         </P
><P
>           To add an override for FOO.DLL, enter "FOO" into the box
           labeled <I
CLASS="EMPHASIS"
>New override for library:</I
> and
           click on the <I
CLASS="EMPHASIS"
>Add</I
> button.  To change how
           the DLL behaves, select it within the <I
CLASS="EMPHASIS"
>Existing
           overrides:</I
> box and choose <I
CLASS="EMPHASIS"
>Edit</I
>.  
           By default the new load order will be native Windows libraries
           before Wine's own builtin ones (<I
CLASS="EMPHASIS"
>Native then 
           Builtin</I
>).  You can also choose native only, builtin
           only, or disable it altogether.
         </P
></DIV
><DIV
CLASS="SECT3"
><HR><H4
CLASS="SECT3"
><A
NAME="AEN262"
>Notes About System DLL's</A
></H4
><P
>            The Wine team has determined that it is necessary to create fake DLL
            files to trick many programs that check for file existence to
            determine whether a particular feature (such as Winsock and its
            TCP/IP networking) is available. If this is a problem for you, you
            can create empty files in the configured c:\windows\system32 directory
            to make the program think it's there, and Wine's built-in DLL will
            be loaded when the program actually asks for it. (Unfortunately,
            tools/wineinstall does not create such empty files itself.)
         </P
><P
>           Applications sometimes also try to inspect the version resources
           from the physical files (for example, to determine the DirectX
           version). Empty files will not do in this case, it is rather
           necessary to install files with complete version resources. This
           problem is already fixed for many files.  For others, you may still
           need to grab some real DLL files to fool these apps with.
         </P
><P
>           There are of course DLLs that Wine does not currently implement
           very well (or at all). If you do not have a real Windows you can
           copy necessary DLLs from, you can always get some from one of the
           Windows DLL archive sites that can be found via internet search
           engine. Please make sure to obey any licenses on the DLLs you
           fetch; some are redistributable, some aren't.
         </P
></DIV
><DIV
CLASS="SECT3"
><HR><H4
CLASS="SECT3"
><A
NAME="AEN267"
>Missing DLL's</A
></H4
><P
>           In case Wine complains about a missing DLL, you should check whether
           this file is a publicly available DLL or a custom DLL belonging
           to your program (by searching for its name on the internet).
           After you've located the DLL, you need to make sure Wine is able to
           use it.  DLLs usually get loaded in the following order:
           <P
></P
><OL
TYPE="1"
><LI
><P
>                 The directory the program was started from.
               </P
></LI
><LI
><P
>                 The current directory.
               </P
></LI
><LI
><P
>                 The Windows system directory.
               </P
></LI
><LI
><P
>                 The Windows directory.
               </P
></LI
><LI
><P
>                 The PATH variable directories.
               </P
></LI
></OL
>
           In short: either put the required DLL into your program
           directory (might be ugly), or put it into the Windows system
           directory.  Also, if possible you probably shouldn't use NT-based 
           native DLLs, since Wine's NT API support is somewhat weaker than 
           its Win9x API support (possibly leading to even worse compatibility 
           with NT DLLs than with a no-windows setup!). 
          </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN281"
>Graphics Settings</A
></H3
><P
>          There are basically five different graphics settings you
          can configure.  For most people the defaults are fine.
        </P
><P
>          The first few settings primarily affect games and are somewhat
          self-explanatory.  You can prevent the mouse from leaving the
          window of a DirectX program (i.e. a game.) and the default is
          to have that box checked.  There's lots of
          reasons you might want to do that, not the least of which
          includes it's easier to play the game if the cursor is
          confined to a smaller area.  The other reason to turn this
          option on is for more precise control of the mouse - Wine
          warps the location of the mouse to mimic the way Windows
          works.  Similarly, "desktop double buffering" allows for
          smoother updates to the screen, which games can benefit from,
          and the default is to leave it turned on.  The tradeoff is
          increased memory use.
        </P
><P
>          You may find it helpful to <I
CLASS="EMPHASIS"
>Emulate a virtual 
          desktop</I
>.
          In this case, all programs will run in a separate window. You
          may find this useful as a way to test buggy games that change
          (possibly unsuccessfully) the screen resolution.  Confining them
          to a window can allow for more control over them at the possible
          expense of decreased usability.  Sizes you might want to try are
          640x480 (the default) or 800x600.
        </P
><P
>          Finally, you can configure some Direct3D settings.  For the
          most part these settings are detected automatically, but you
          can force them to behave in a specific manner.  Some games
          attempt to probe the underlying system to see if it supports
          specific features.  By turning these off Wine won't report
          the ability to render games in a certain way.  It may lead
          to the game running faster at the expense of the quality of
          the graphics or the game may not run at all.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN288"
>Drive Settings</A
></H3
><P
>            Windows requires a fairly rigid drive configuration that Wine
            imitates.  Most people are familiar with the standard notation
            of the "A:" drive representing the floppy disk, the "C:"
            drive representing the primary system disk, etc.   Wine uses
            the same concept and maps those drives to the underlying native
            filesystem.
          </P
><P
>            Wine's drive configuration is relatively simple.
            In Winecfg under the <I
CLASS="EMPHASIS"
>Drives</I
> tab you'll
            see buttons to add and remove available drives.
            When you choose to add a drive, a new entry will be made
            and a default drive mapping will appear.  You can change where
            this drives points to by changing what's in the 
            <I
CLASS="EMPHASIS"
>Path:</I
> box.  If you're unsure of the
            exact path you can choose "Browse" to search for it.
            Removing a drive is as easy as selecting the drive and
            clicking "Remove".
           </P
><P
>            Winecfg has the ability to automatically detect the drives
            available on your system.  It's recommended you try this
            before attempting to configure drives manually.  Simply
            click on the <I
CLASS="EMPHASIS"
>Autodetect</I
> button to
            have Wine search for drives on your system.
           </P
><P
>            You may be interested in configuring your drive settings
            outside of Winecfg, in which case you're in luck because it's
            quite easy.  All of the drive settings reside in a special
            directory, <TT
CLASS="FILENAME"
>~/.wine/dosdevices</TT
>.  Each "drive" 
            is simply a link to where it actually resides.  Wine automatically
            sets up two drives the first time you run Wine:
           </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>             $ ls -la ~/.wine/dosdevices/
             lrwxrwxrwx  1 wineuser wineuser   10 Jul 23 15:12 c: -&#62; ../drive_c
             lrwxrwxrwx  1 wineuser wineuser    1 Jul 23 15:12 z: -&#62; /
           </PRE
></TD
></TR
></TABLE
><P
>             To add another drive, for example your CD-ROM, just create a new
             link pointing to it:
               <TT
CLASS="PROMPT"
>$ </TT
>
               <KBD
CLASS="USERINPUT"
>ln -s /mnt/cdrom ~/.wine/dosdevices/d:</KBD
>
             Take note of the DOS-style naming convention used for links -
             the format is a letter followed by a colon, such as "a:".  So,
             if the link to your c: drive points to
               <TT
CLASS="FILENAME"
> ~/.wine/drive_c</TT
>, you
             can interpret references to <TT
CLASS="FILENAME"
>c:\windows\system32</TT
>
             to mean <TT
CLASS="FILENAME"
>~/.wine/drive_c/windows/system32</TT
>.
	  </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN305"
>Audio Settings</A
></H3
><P
>          Wine can work with quite a few different audio subsystems
          which you can choose under the "Audio" tab.  winecfg figures out all 
          available drivers for you, but you can manually select which driver 
          will be used.  Older
          Linux distributions using the 2.4 kernel or earlier typically
          use the "OSS" driver.  Usually 2.6 kernels have switched to "ALSA".
          The "aRts" driver was recently deactivated due to the general lack
          of maintenance of the "aRts" subsystem.
          If you're using GNOME you can probably use EsounD.  The OSS and ALSA 
          audio drivers get the most testing, so it's recommended you stick 
          with them if possible.  
          If you need to use "Jack", "NAS" or "CoreAudio" you probably already know why.
        </P
><P
> 
          DirectSound settings are primarily used by games.  You can
          choose what level of hardware acceleration you'd like, but
          for most people "Full" is fine.  
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN309"
>Desktop Integration</A
></H3
><P
>        Wine can load Windows themes if you have them available.  While
        this certainly isn't necessary in order to use Wine or applications,
        it does allow you to customize the look and feel of a program.  Wine
        supports the newer MSStyles typ of themese.  Unlike the older Microsoft
        Plus! style themes, the uxtheme engine supports special .msstyles files
        that can retheme all of the Windows controls. This is more or less the 
        same kind of theming that modern Linux desktops have supported for 
        years. If you'd like to try this out:
          <P
></P
><OL
TYPE="1"
><LI
><P
>                Download a Windows XP theme. Be sure it contains a .msstyles 
                file.
              </P
></LI
><LI
><P
>                Create a set of new directories in your fake Windows drive:
                <TT
CLASS="PROMPT"
>$ </TT
>
                <KBD
CLASS="USERINPUT"
>mkdir -p ~/.wine/drive_c/windows/Resources/themes/name-of-your-theme</KBD
>
              </P
></LI
><LI
><P
> 
                Move the .msstyles to that new name-of-your-theme directory.
             </P
></LI
><LI
><P
>                Use the Desktop Integration tab of winecfg to select the new theme.
              </P
></LI
></OL
>
        </P
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="USING-REGEDIT"
>Using the Registry and Regedit</A
></H2
><P
>        All of the settings you change in Winecfg, with exception of
        the drive settings, are ultimately stored in the registry.
        In Windows, this is a central repository for the configuration
        of applications and the operating system.  Likewise, Wine
        implements a registry and some settings not found in Winecfg
        can be changed within it.  (There's actually more of a chance
        you'll need to dip into the registry to change an applications'
        settings than Wine itself.)
      </P
><P
>        Now, the fact that Wine itself uses the registry to store settings
        has been controversial.  Some people argue that it's too much like
        Windows.  To counter this, there's several things to consider.
        First, it's impossible to avoid implementing a registry simply
        because applications expect to be able to store their settings there.
        In order for Wine to store and access settings in a separate
        configuration file would require a separate set of code to basically
        do the same thing as the Win32 API's Wine already implements.
        Finally, unlike Windows, the Wine registry is written in plain text
        and can be changed using your favorite text editor.  While most sane 
        system administrators (and Wine developers) curse madly at the twisted 
        nature of the Windows registry, it is still necessary for Wine to 
        support it somehow.
      </P
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN327"
>Registry Structure</A
></H3
><P
>          Okay.. with that out of the way, let's dig into the registry a bit
          to see how it's laid out.  The Windows registry is an elaborate tree
          structure, and not even most Windows programmers are fully aware of
          how the registry is laid out, with its different "hives" and numerous
          links between them; a full coverage is out of the scope of
          this document. But here are the basic registry keys you might
          need to know about for now:
        </P
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
>HKEY_LOCAL_MACHINE</DT
><DD
><P
>                This fundamental root key (in win9x it's stored in the
                hidden file <TT
CLASS="FILENAME"
>system.dat</TT
>) contains
                everything pertaining to the current Windows
                installation.  This is often abbreviated HKLM.
              </P
></DD
><DT
>HKEY_USERS</DT
><DD
><P
>                This fundamental root key (in win9x it's stored in the
                hidden file <TT
CLASS="FILENAME"
>user.dat</TT
>) contains
                configuration data for every user of the installation.
              </P
></DD
><DT
>HKEY_CLASSES_ROOT</DT
><DD
><P
>                This is a link to HKEY_LOCAL_MACHINE\Software\Classes.
                It contains data describing things like file
                associations, OLE document handlers, and COM classes.
              </P
></DD
><DT
>HKEY_CURRENT_USER</DT
><DD
><P
>                This is a link to HKEY_USERS\your_username, i.e., your
                personal configuration.
              </P
></DD
></DL
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN349"
>Registry Files</A
></H3
><P
>          Now, what you're probably wondering is how that translates
          into Wine's structure.   The registry layout described above
          actually lives in three different files within each user's
          ~/.wine directory:
        </P
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
><TT
CLASS="FILENAME"
>system.reg</TT
></DT
><DD
><P
>                This file contains HKEY_LOCAL_MACHINE.
              </P
></DD
><DT
><TT
CLASS="FILENAME"
>user.reg</TT
></DT
><DD
><P
>                This file contains HKEY_CURRENT_USER.
              </P
></DD
><DT
><TT
CLASS="FILENAME"
>userdef.reg</TT
></DT
><DD
><P
>                This file contains HKEY_USERS\.Default (i.e. the default
                user settings).
              </P
></DD
></DL
></DIV
><P
>          These files are automatically created by
          <B
CLASS="COMMAND"
>wineprefixcreate</B
> the first time you use
          Wine.  A set of global settings is stored in the
          <TT
CLASS="FILENAME"
>c:\windows\inf\wine.inf</TT
> and is processed by the
          <TT
CLASS="FILENAME"
>rundll32.exe</TT
> program.  The first time you run
          Wine the <TT
CLASS="FILENAME"
>wine.inf</TT
> file gets processed to 
          populate the initial registry.  For more details, check
          out the <TT
CLASS="FILENAME"
>wineprefixcreate</TT
> script to see how
          it's all done. After updating Wine, <B
CLASS="COMMAND"
>wineprefixcreate</B
>
          can also be used to update the default registry entries.
        </P
><P
>          Like we mentioned, you can edit those .reg files using whatever text
          editor you want.  Just make sure Wine isn't running when you do
          it, otherwise all of the changes will be lost.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN376"
>Using Regedit</A
></H3
><P
>          An easier way to access and change the registry is with the
          tool <TT
CLASS="FILENAME"
>regedit</TT
>.  Similar to the Windows
          program it replaces, regedit serves to provide a system level
          view of the registry containing all of the keys.  Simply run
          <I
CLASS="EMPHASIS"
>regedit</I
> and it should pop up.  You'll 
          immediately notice that the cryptic keys displayed in the text file 
          are organized in a hierarchical fashion.
        </P
><P
>          To navigate through the registry, click on the keys on the
          left to drill down deeper. To delete a key, click on it and
          choose "Delete" from the Edit menu.  To add a key or value,
          locate where you want to put it and choose "New" from the
          Edit menu.  Likewise, you modify an existing key by highlighting
          it in the right-hand window pane and choosing "Modify" from the
          Edit menu.  Another way to perform these same actions is to
          right-click on the key or value.
        </P
><P
>          Of particular interest to Wine users are the settings stored in
          <TT
CLASS="FILENAME"
>HKEY_CURRENT_USER\Software\Wine</TT
>.  Most of
          the settings you change within winecfg are written to this area
          of the registry.  
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN384"
>System Administration Tips</A
></H3
><P
>          With the above file structure, it is possible for a system
          administrator to configure the system so that a system Wine
          installation (and applications) can be shared by all the
          users, and still let the users all have their own personalized
          configuration. An administrator can, after having installed
          Wine and any Windows application software he wants the users
          to have access to, copy the resulting
          <TT
CLASS="FILENAME"
>system.reg</TT
> and
          over to the global registry files (which we assume will reside in
          <TT
CLASS="FILENAME"
>/usr/local/etc</TT
> here), with:
        </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>          cd ~root/.wine
          cp system.reg /usr/local/etc/wine.systemreg
        </PRE
></TD
></TR
></TABLE
><P
>          and perhaps even symlink these back to the administrator's
          account, to make it easier to install apps system-wide later:
        </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>          ln -sf /usr/local/etc/wine.systemreg system.reg
        </PRE
></TD
></TR
></TABLE
><P
>          You might be tempted to do the same for <TT
CLASS="FILENAME"
>user.reg</TT
>
          as well, however that file contains user specific settings.
          Every user should have their own copy of that file along with
          the permissions to modify it.
        </P
><P
>          You'll want to pay attention to drive mappings.  If
          you're sharing the system.reg file you'll want to make sure
          the registry settings are compatible with the drive mappings
          in <TT
CLASS="FILENAME"
>~/.wine/dosdevices</TT
>
          of each individual user.  As a general rule of thumb, the closer
          you keep your drive mappings to the default configuration
          provided by <B
CLASS="COMMAND"
>wineprefixcreate</B
>, the easier
          this will be to manage.  You may or may not be able to share
          some or all of the actual "<TT
CLASS="FILENAME"
>c:</TT
>" drive you 
          originally installed the application to.  Some applications 
          require the ability to write specific settings to the drive, 
          especially those designed for Windows 95/98/ME.   
        </P
><P
>          Note that the <TT
CLASS="FILENAME"
>tools/wineinstall</TT
> script
          used to do some of this if you installed Wine source as root, however
          it no longer does.
        </P
><P
>          A final word of caution: be careful with what you do with the 
          administrator account - if you do copy or link the administrator's 
          registry to the global registry, any user might be able to read the
          administrator's preferences, which might not be good if
          sensitive information (passwords, personal information, etc)
          is stored there. Only use the administrator account to install
          software, not for daily work; use an ordinary user account for
          that.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN401"
>Complete List of Registry Keys</A
></H3
><P
>          You'll find an up-to-date list of useful registry keys and values in
          the <A
HREF="http://wiki.winehq.org/UsefulRegistryKeys"
TARGET="_top"
>developer's wiki</A
>.
        </P
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="MISC-THINGS-TO-CONFIGURE"
>Other Things to Configure</A
></H2
><P
>      This section is meant to cover the rest of the things you can configure.
      It also serves as a collection of tips and tricks to get the most out
      of using Wine.  
    </P
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN408"
>Serial and Parallel Ports</A
></H3
><P
>          Serial and parallel port configuration is very similar to drive
          configuration - simply create a symbolic link in
          <TT
CLASS="FILENAME"
>~/.wine/dosdevices</TT
> with the name of the
          device.  Windows serial ports follow a naming convention of the
          word "com" followed by a number, such as
          <TT
CLASS="FILENAME"
>com1</TT
>, <TT
CLASS="FILENAME"
>com2</TT
>, etc.
          Similarly, parallel ports use "lpt" followed by a number, such as
          <TT
CLASS="FILENAME"
>lpt1</TT
>.
          You should link these directly to the corresponding Unix
          devices, such as /dev/ttyS0 and /dev/lp0.  For example, to configure
          one serial port and one parallel port, run the following commands:
        </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>          ln -s /dev/ttyS0 com1
          ln -s /dev/lp0 lpt1
        </PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN416"
>Network Shares</A
></H3
><P
>          Windows shares can are mapped into the <TT
CLASS="FILENAME"
>unc/</TT
>
          directory so anything trying to access
          <TT
CLASS="FILENAME"
>\\myserver\some\file</TT
> will look in
          <TT
CLASS="FILENAME"
>~/.wine/dosdevices/unc/myserver/some/file/</TT
>.
          For example, if you used Samba to mount
          <TT
CLASS="FILENAME"
>\\myserver\some</TT
> on
          <TT
CLASS="FILENAME"
>/mnt/smb/myserver/some</TT
> then you can do
          <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>            ln -s /mnt/smb/myserver/some unc/myserver/some
          </PRE
></TD
></TR
></TABLE
>

          to make it available in wine (don't forget to create the unc
          directory if it doesn't alrady exist).
         </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN425"
>Fonts</A
></H3
><P
>          Font configuration, once a nasty problem, is now much simpler.
          If you have a collection of TrueType fonts in Windows it's
          simply a matter of copying the <TT
CLASS="FILENAME"
>.ttf</TT
> files
          into <TT
CLASS="FILENAME"
>c:\windows\fonts</TT
>.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN430"
>Printers</A
></H3
><P
>          Wine can interact directly with the local CUPS printing system to
          find the printers available on your system.  Configuring
          printers with Wine is as simple as making sure your CUPS 
          configuration works. Wine still needs the command
          <KBD
CLASS="USERINPUT"
>lpr</KBD
>(from CUPS), when printing a Document.
        </P
><P
>          If you do not use CUPS, the old BSD-Printing system is used:
          <P
></P
><UL
><LI
><P
>                All Printers from <TT
CLASS="FILENAME"
>/etc/printcap</TT
> are installed automatically in Wine.
              </P
></LI
><LI
><P
>                Wine needs a PPD-File for every Printer (generic.ppd comes with Wine)
              </P
></LI
><LI
><P
>                The command <KBD
CLASS="USERINPUT"
>lpr</KBD
> is called when printing a Document
              </P
></LI
></UL
>
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN444"
>Scanners</A
></H3
><P
>          In Windows, scanners use the TWAIN API to access the underlying
          hardware.  Wine's builtin TWAIN DLL simply forwards those requests
          to the Linux SANE libraries.  So, to utilize your scanner under
          Wine you'll first need to make sure you can access it using
          SANE.  After that you'll need to make sure you have 
          <TT
CLASS="FILENAME"
>xscanimage</TT
> available for use.  Currently
          xscanimage is shipped with the sane-frontends package but it
          may not be installed with your distribution.  Scanner access
          is currently known to have problems.  If you find it works for
          you, please consider updating this section of the user guide to
          provide details on using SANE with Wine.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN448"
>ODBC Databases</A
></H3
><P
>          The ODBC system within Wine, as with the printing system, is designed
          to hook across to the Unix system at a high level.  Rather than
          ensuring that all the windows code works under wine it uses a suitable
          Unix ODBC provider, such as UnixODBC.  Thus if you configure Wine to
          use the built-in odbc32.dll, that Wine DLL will interface to your
          Unix ODBC package and let that do the work, whereas if you configure
          Wine to use the native odbc32.dll it will try to use the native
          ODBC32 drivers etc.
        </P
><DIV
CLASS="SECT3"
><HR><H4
CLASS="SECT3"
><A
NAME="AEN451"
>Configuring ODBC on Unix</A
></H4
><P
>          The first step in using a Unix ODBC system with Wine is, of course,
          to get the Unix ODBC system working itself.  This may involve
          downloading code or RPMs etc.  There are several Unix ODBC systems
          available; the one the author is used to is unixODBC (with the
          IBM DB2 driver). There is also and ODBC-ODBC bridge that can be used
          to access a Microsoft Access database.  Typically such systems will 
          include a tool, such as <B
CLASS="COMMAND"
>isql</B
>, which will allow 
          you to access the data from the command line so that you can check 
          that the system is working.
        </P
><P
>          The next step is to hook the Unix ODBC library to the wine built-in
          odbc32 DLL.  The built-in odbc32 (currently) looks to the
          environment variable <I
CLASS="EMPHASIS"
>LIB_ODBC_DRIVER_MANAGER</I
>
          for the name of the ODBC library.  For example in the author's
          .bashrc file is the line:
        </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>          export LIB_ODBC_DRIVER_MANAGER=/usr/lib/libodbc.so.1.0.0
        </PRE
></TD
></TR
></TABLE
><P
>          If that environment variable is not set then it looks for a
          library called libodbc.so and so you can add a symbolic link to
          equate that to your own library.  For example as root you could
          run the commands:
        </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>        <TT
CLASS="PROMPT"
>$ </TT
><KBD
CLASS="USERINPUT"
>ln -s libodbc.so.1.0.0 /usr/lib/libodbc.so</KBD
>
        <TT
CLASS="PROMPT"
>$ </TT
><KBD
CLASS="USERINPUT"
>/sbin/ldconfig</KBD
>
        </PRE
></TD
></TR
></TABLE
><P
>          The last step in configuring this is to ensure that Wine is set up
          to run the built-in version of odbc32.dll, by modifying the DLL
          configuration.  This built-in DLL merely acts as a stub between the
          calling code and the Unix ODBC library.
        </P
><P
>          If you have any problems then you can use WINEDEBUG=+odbc32 command
          before running wine to trace what is happening.  One word of
          warning. Some programs actually cheat a little and bypass the ODBC
          library. For example the Crystal Reports engine goes to the registry
          to check on the DSN.  The fix for this is documented at unixODBC's
          site where there is a section on using unixODBC with Wine.
        </P
></DIV
><DIV
CLASS="SECT3"
><HR><H4
CLASS="SECT3"
><A
NAME="AEN466"
>Using Windows ODBC drivers</A
></H4
><P
>            Native ODBC drivers have been reported to work for many types of
            databases including MSSQL and Oracle. In fact, some like MSSQL can
            only be accessed on Linux through a Winelib app.   Rather than
            just copying DLL files, most ODBC drivers require a Windows-based
            installer to run to properly configure things such as registry keys.
          </P
><P
>            In order to set up MSSQL support you will first need to download
            and run the mdac_typ.exe installer from microsoft.com.  In order to
            configure your ODBC connections you must then run CLICONFG.EXE and
            ODBCAD32.EXE under Wine.  You can find them in the windows\system
            directory after mdac_typ runs.  Compare the output of these programs
            with the output on a native Windows machine.  Some things, such
            as protocols, may be missing because they rely on being installed
            along with the operating system.  If so, you may be able to copy
            missing functionality from an existing Windows installation as
            well as any registry values required.  A native Windows installation
            configured to be used by Wine should work the same way it did
            when run natively.
          </P
><P
>            Types successfully tested under wine:
          </P
><DIV
CLASS="INFORMALTABLE"
><P
></P
><A
NAME="AEN471"
></A
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
>DB Type</TH
><TH
>Usefulness</TH
></TR
></THEAD
><TBODY
><TR
><TD
>MS SQL</TD
><TD
>100%</TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
><P
>            Please report any other successes to the
            <A
HREF="mailto:wine-devel@winehq.org"
TARGET="_top"
>wine-devel</A
>
            mailing list.
          </P
></DIV
></DIV
></DIV
></DIV
><DIV
CLASS="CHAPTER"
><HR><H1
><A
NAME="RUNNING"
></A
>Running Wine</H1
><P
>      This chapter will describe all aspects of running Wine, like e.g.
      basic Wine invocation, command line parameters of various Wine
      support programs etc.
    </P
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="BASIC-USAGE"
>Basic usage: applications and control panel applets</A
></H2
><P
>	Assuming you are using a fake Windows installation, you install
	applications into Wine in the same way you would in Windows: by
	running the installer. You can just accept the defaults for
	where to install, most installers will default to "C:\Program
	Files", which is fine. If the application installer requests it,
	you may find that Wine creates icons on your desktop and in your
	app menu. If that happens, you can start the app by clicking on
	them.
      </P
><P
>	The standard way to uninstall things is for the application to
	provide an uninstaller, usually registered with the "Add/Remove
	Programs" control panel applet.
	To access the Wine equivalent, run the <B
CLASS="COMMAND"
>uninstaller</B
>
	program (it is located in the
	<TT
CLASS="FILENAME"
>programs/uninstaller/</TT
> directory in a Wine
	source directory) in a <I
CLASS="GLOSSTERM"
>terminal</I
>:
      </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>        <TT
CLASS="PROMPT"
>$</TT
> <KBD
CLASS="USERINPUT"
>uninstaller</KBD
>
      </PRE
></TD
></TR
></TABLE
><P
>	Some programs install associated control panel applets, examples
	of this would be Internet Explorer and QuickTime. You can access
	the Wine control panel by running in a
	<I
CLASS="GLOSSTERM"
>terminal</I
>:
      </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>	 <TT
CLASS="PROMPT"
>$</TT
> <KBD
CLASS="USERINPUT"
>wine control</KBD
>
      </PRE
></TD
></TR
></TABLE
><P
>	which will open a window with the installed control panel
	applets in it, as in Windows.
      </P
><P
>	If the application doesn't install menu or desktop items, you'll
	need to run the app from the command line. Remembering where you
	installed to, something like:
      </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>	 <TT
CLASS="PROMPT"
>$</TT
> <KBD
CLASS="USERINPUT"
>wine "c:\program files\appname\appname.exe"</KBD
>
      </PRE
></TD
></TR
></TABLE
><P
>	will probably do the trick. The path isn't case sensitive, but
	remember to include the double quotes.  Some programs don't
	always use obvious naming for their directories and EXE files,
	so you might have to look inside the program files directory to
	see what was put where.
      </P
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="RUNNING-WINE"
>How to run Wine</A
></H2
><P
>        You can simply invoke the <B
CLASS="COMMAND"
>wine</B
> command to
        get a small help message:
      </P
><P
>        <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>Wine 20040405
Usage: wine PROGRAM [ARGUMENTS...]   Run the specified program
       wine --help                   Display this help and exit
       wine --version                Output version information and exit
        </PRE
></TD
></TR
></TABLE
>
      </P
><P
>        The first argument should be the name of the file you
        want <B
CLASS="COMMAND"
>wine</B
> to execute.  If the executable is
        in the <TT
CLASS="PARAMETER"
><I
>Path</I
></TT
> environment variable, you can
        simply give the executable file name. However, if the executable
        is not in <TT
CLASS="PARAMETER"
><I
>Path</I
></TT
>, you must give the full path to
        the executable (in Windows format, not UNIX format!).  For
        example, given a <TT
CLASS="PARAMETER"
><I
>Path</I
></TT
> of the following:
      </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>Path="c:\windows;c:\windows\system;e:\;e:\test;f:\"
      </PRE
></TD
></TR
></TABLE
><P
>        You could run the file
        <TT
CLASS="FILENAME"
>c:\windows\system\foo.exe</TT
> with:
      </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>$</TT
> <KBD
CLASS="USERINPUT"
>wine foo.exe</KBD
>
      </PRE
></TD
></TR
></TABLE
><P
>        However, you would have to run the file
        <TT
CLASS="FILENAME"
>c:\myapps\foo.exe</TT
> with this command:
      </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>$</TT
> <KBD
CLASS="USERINPUT"
>wine c:\\myapps\\foo.exe</KBD
>
      </PRE
></TD
></TR
></TABLE
><P
>      (note the backslash-escaped "\" !)
      </P
><P
>	For details on running text mode (CUI) executables, read the 
	<A
HREF="#CUI-PROGRAMS"
>section</A
> below.
      </P
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="EXPLORER-LIKE-WINE"
>Explorer-like graphical Wine environments</A
></H2
><P
>	If you prefer using a graphical interface to manage your
	files you might want to consider using Winefile.  This Winelib
	application comes with Wine and can be found with the other
	Wine programs.  It is a useful way to view your drive configuration 
	and locate files, plus you can execute programs directly from 
	Winefile.  Please note, many functions are not yet implemented.
      </P
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="COMMAND-LINE-OPTIONS"
>Wine Command Line Options</A
></H2
><DIV
CLASS="SECT2"
><H3
CLASS="SECT2"
><A
NAME="AEN537"
>--help</A
></H3
><P
>          Shows a small command line help page.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN540"
>--version</A
></H3
><P
>	  Shows the Wine version string. Useful to verify your installation.
        </P
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN543"
>Environment variables</A
></H2
><DIV
CLASS="SECT2"
><H3
CLASS="SECT2"
><A
NAME="AEN545"
>WINEDEBUG=[channels]</A
></H3
><P
>          Wine isn't perfect, and many Windows applications still
          don't run without bugs under Wine (but then, a lot of programs
          don't run without bugs under native Windows either!).  To
          make it easier for people to track down the causes behind
          each bug, Wine provides a number of <I
CLASS="FIRSTTERM"
>debug
          channels</I
> that you can tap into.
        </P
><P
>          Each debug channel, when activated, will trigger logging
          messages to be displayed to the console where you invoked
          <B
CLASS="COMMAND"
>wine</B
>.  From there you can redirect the
          messages to a file and examine it at your leisure.  But be
          forewarned!  Some debug channels can generate incredible
          volumes of log messages.  Among the most prolific offenders
          are <TT
CLASS="PARAMETER"
><I
>relay</I
></TT
> which spits out a log
          message every time a win32 function is called,
          <TT
CLASS="PARAMETER"
><I
>win</I
></TT
> which tracks windows message
          passing, and of course <TT
CLASS="PARAMETER"
><I
>all</I
></TT
> which is
          an alias for every single debug channel that exists.  For a
          complex application, your debug logs can easily top 1 MB and
          higher.  A <TT
CLASS="PARAMETER"
><I
>relay</I
></TT
> trace can often
          generate more than 10 MB of log messages, depending on how
          long you run the application.  (You'll want to check out
          RelayExclude registry key to 
          modify what the <TT
CLASS="PARAMETER"
><I
>relay</I
></TT
> trace reports).
          Logging does slow down Wine
          quite a bit, so don't use <TT
CLASS="PARAMETER"
><I
>WINEDEBUG</I
></TT
>
          unless you really do want log files.
        </P
><P
>          Within each debug channel, you can further specify a
          <I
CLASS="FIRSTTERM"
>message class</I
>, to filter out the
          different severities of errors.  The four message classes
          are:
          <TT
CLASS="PARAMETER"
><I
>trace</I
></TT
>, <TT
CLASS="PARAMETER"
><I
>fixme</I
></TT
>, <TT
CLASS="PARAMETER"
><I
>warn</I
></TT
>, <TT
CLASS="PARAMETER"
><I
>err</I
></TT
>.
        </P
><P
>          To turn on a debug channel, use the form
          <TT
CLASS="PARAMETER"
><I
>class+channel</I
></TT
>.  To turn it off, use
          <TT
CLASS="PARAMETER"
><I
>class-channel</I
></TT
>.  To list more than one
          channel in the same <TT
CLASS="PARAMETER"
><I
>WINEDEBUG</I
></TT
>
          option, separate them with commas.  For example, to request
          <TT
CLASS="PARAMETER"
><I
>warn</I
></TT
> class messages in the
          <TT
CLASS="PARAMETER"
><I
>heap</I
></TT
> debug channel, you could invoke
          <B
CLASS="COMMAND"
>wine</B
> like this:
        </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>$</TT
> <KBD
CLASS="USERINPUT"
>WINEDEBUG=warn+heap wine <TT
CLASS="REPLACEABLE"
><I
>program_name</I
></TT
></KBD
>
        </PRE
></TD
></TR
></TABLE
><P
>          If you leave off the message class, <B
CLASS="COMMAND"
>wine</B
>
          will display messages from all four classes for that channel:
        </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>$</TT
> <KBD
CLASS="USERINPUT"
>WINEDEBUG=heap wine <TT
CLASS="REPLACEABLE"
><I
>program_name</I
></TT
></KBD
>
        </PRE
></TD
></TR
></TABLE
><P
>          If you wanted to see log messages for everything except the
          relay channel, you might do something like this:
        </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>$</TT
> <KBD
CLASS="USERINPUT"
>WINEDEBUG=+all,-relay wine <TT
CLASS="REPLACEABLE"
><I
>program_name</I
></TT
></KBD
>
        </PRE
></TD
></TR
></TABLE
><P
>	  Here is a list of the debug channels and classes in Wine.
	  More channels will be added to (or subtracted from) later
	  versions.
        </P
><DIV
CLASS="TABLE"
><A
NAME="AEN591"
></A
><P
><B
>Table 1. Debug Channels</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
>accel</TD
><TD
>adpcm</TD
><TD
>advapi</TD
><TD
>animate</TD
><TD
>aspi</TD
></TR
><TR
><TD
>atom</TD
><TD
>avicap</TD
><TD
>avifile</TD
><TD
>bidi</TD
><TD
>bitblt</TD
></TR
><TR
><TD
>bitmap</TD
><TD
>cabinet</TD
><TD
>capi</TD
><TD
>caret</TD
><TD
>cdrom</TD
></TR
><TR
><TD
>cfgmgr32</TD
><TD
>class</TD
><TD
>clipboard</TD
><TD
>clipping</TD
><TD
>combo</TD
></TR
><TR
><TD
>comboex</TD
><TD
>comm</TD
><TD
>commctrl</TD
><TD
>commdlg</TD
><TD
>computername</TD
></TR
><TR
><TD
>console</TD
><TD
>crtdll</TD
><TD
>crypt</TD
><TD
>curses</TD
><TD
>cursor</TD
></TR
><TR
><TD
>d3d</TD
><TD
>d3d_shader</TD
><TD
>d3d_surface</TD
><TD
>datetime</TD
><TD
>dc</TD
></TR
><TR
><TD
>ddeml</TD
><TD
>ddraw</TD
><TD
>ddraw_fps</TD
><TD
>ddraw_geom</TD
><TD
>ddraw_tex</TD
></TR
><TR
><TD
>debugstr</TD
><TD
>devenum</TD
><TD
>dialog</TD
><TD
>dinput</TD
><TD
>dll</TD
></TR
><TR
><TD
>dma</TD
><TD
>dmband</TD
><TD
>dmcompos</TD
><TD
>dmfile</TD
><TD
>dmfiledat</TD
></TR
><TR
><TD
>dmime</TD
><TD
>dmloader</TD
><TD
>dmscript</TD
><TD
>dmstyle</TD
><TD
>dmsynth</TD
></TR
><TR
><TD
>dmusic</TD
><TD
>dosfs</TD
><TD
>dosmem</TD
><TD
>dplay</TD
><TD
>dplayx</TD
></TR
><TR
><TD
>dpnhpast</TD
><TD
>driver</TD
><TD
>dsound</TD
><TD
>dsound3d</TD
><TD
>edit</TD
></TR
><TR
><TD
>enhmetafile</TD
><TD
>environ</TD
><TD
>event</TD
><TD
>eventlog</TD
><TD
>exec</TD
></TR
><TR
><TD
>file</TD
><TD
>fixup</TD
><TD
>font</TD
><TD
>fps</TD
><TD
>g711</TD
></TR
><TR
><TD
>gdi</TD
><TD
>global</TD
><TD
>glu</TD
><TD
>graphics</TD
><TD
>header</TD
></TR
><TR
><TD
>heap</TD
><TD
>hook</TD
><TD
>hotkey</TD
><TD
>icmp</TD
><TD
>icon</TD
></TR
><TR
><TD
>imagehlp</TD
><TD
>imagelist</TD
><TD
>imm</TD
><TD
>int</TD
><TD
>int21</TD
></TR
><TR
><TD
>int31</TD
><TD
>io</TD
><TD
>ipaddress</TD
><TD
>iphlpapi</TD
><TD
>jack</TD
></TR
><TR
><TD
>joystick</TD
><TD
>key</TD
><TD
>keyboard</TD
><TD
>listbox</TD
><TD
>listview</TD
></TR
><TR
><TD
>loaddll</TD
><TD
>local</TD
><TD
>mapi</TD
><TD
>mci</TD
><TD
>mcianim</TD
></TR
><TR
><TD
>mciavi</TD
><TD
>mcicda</TD
><TD
>mcimidi</TD
><TD
>mciwave</TD
><TD
>mdi</TD
></TR
><TR
><TD
>menu</TD
><TD
>menubuilder</TD
><TD
>message</TD
><TD
>metafile</TD
><TD
>midi</TD
></TR
><TR
><TD
>mmaux</TD
><TD
>mmio</TD
><TD
>mmsys</TD
><TD
>mmtime</TD
><TD
>module</TD
></TR
><TR
><TD
>monthcal</TD
><TD
>mpeg3</TD
><TD
>mpr</TD
><TD
>msacm</TD
><TD
>msdmo</TD
></TR
><TR
><TD
>msg</TD
><TD
>mshtml</TD
><TD
>msi</TD
><TD
>msimg32</TD
><TD
>msisys</TD
></TR
><TR
><TD
>msrle32</TD
><TD
>msvcrt</TD
><TD
>msvideo</TD
><TD
>mswsock</TD
><TD
>nativefont</TD
></TR
><TR
><TD
>netapi32</TD
><TD
>netbios</TD
><TD
>nls</TD
><TD
>nonclient</TD
><TD
>ntdll</TD
></TR
><TR
><TD
>odbc</TD
><TD
>ole</TD
><TD
>oledlg</TD
><TD
>olerelay</TD
><TD
>opengl</TD
></TR
><TR
><TD
>pager</TD
><TD
>palette</TD
><TD
>pidl</TD
><TD
>powermgnt</TD
><TD
>print</TD
></TR
><TR
><TD
>process</TD
><TD
>profile</TD
><TD
>progress</TD
><TD
>propsheet</TD
><TD
>psapi</TD
></TR
><TR
><TD
>psdrv</TD
><TD
>qcap</TD
><TD
>quartz</TD
><TD
>ras</TD
><TD
>rebar</TD
></TR
><TR
><TD
>reg</TD
><TD
>region</TD
><TD
>relay</TD
><TD
>resource</TD
><TD
>richedit</TD
></TR
><TR
><TD
>rundll32</TD
><TD
>sblaster</TD
><TD
>scroll</TD
><TD
>seh</TD
><TD
>selector</TD
></TR
><TR
><TD
>server</TD
><TD
>setupapi</TD
><TD
>shdocvw</TD
><TD
>shell</TD
><TD
>shlctrl</TD
></TR
><TR
><TD
>snmpapi</TD
><TD
>snoop</TD
><TD
>sound</TD
><TD
>static</TD
><TD
>statusbar</TD
></TR
><TR
><TD
>storage</TD
><TD
>stress</TD
><TD
>string</TD
><TD
>syscolor</TD
><TD
>system</TD
></TR
><TR
><TD
>tab</TD
><TD
>tape</TD
><TD
>tapi</TD
><TD
>task</TD
><TD
>text</TD
></TR
><TR
><TD
>thread</TD
><TD
>thunk</TD
><TD
>tid</TD
><TD
>timer</TD
><TD
>toolbar</TD
></TR
><TR
><TD
>toolhelp</TD
><TD
>tooltips</TD
><TD
>trackbar</TD
><TD
>treeview</TD
><TD
>ttydrv</TD
></TR
><TR
><TD
>twain</TD
><TD
>typelib</TD
><TD
>uninstaller</TD
><TD
>updown</TD
><TD
>urlmon</TD
></TR
><TR
><TD
>uxtheme</TD
><TD
>ver</TD
><TD
>virtual</TD
><TD
>vxd</TD
><TD
>wave</TD
></TR
><TR
><TD
>wc_font</TD
><TD
>win</TD
><TD
>win32</TD
><TD
>wineboot</TD
><TD
>winecfg</TD
></TR
><TR
><TD
>wineconsole</TD
><TD
>wine_d3d</TD
><TD
>winevdm</TD
><TD
>wing</TD
><TD
>winhelp</TD
></TR
><TR
><TD
>wininet</TD
><TD
>winmm</TD
><TD
>winsock</TD
><TD
>winspool</TD
><TD
>wintab</TD
></TR
><TR
><TD
>wintab32</TD
><TD
>wnet</TD
><TD
>x11drv</TD
><TD
>x11settings</TD
><TD
>xdnd</TD
></TR
><TR
><TD
>xrandr</TD
><TD
>xrender</TD
><TD
>xvidmode</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
></TR
></TBODY
></TABLE
></DIV
><P
>          For more details about debug channels, check out the
          <A
HREF="http://www.winehq.org/site/docs/winedev-guide/"
TARGET="_top"
>            The Wine Developer's Guide</A
>.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN877"
>WINEDLLOVERRIDES=[DLL Overrides]</A
></H3
><P
>          It's not always possible to run an application on builtin
          DLL's.  Sometimes native DLL's simply work better. Altough 
          these DLL overrides can be set using winecfg you might want
          to use the WINEDLLOVERRIDES environment variable to set them.
        </P
><P
>          For example, if you wanted wine to use native ole32.dll, 
          oleaut32.dll and rpcrt4 you could run <B
CLASS="COMMAND"
>wine</B
> like this:
        </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>$</TT
> <KBD
CLASS="USERINPUT"
>WINEDLLOVERRIDES="ole32,oleaut32,rpcrt4=n" wine <TT
CLASS="REPLACEABLE"
><I
>program_name</I
></TT
></KBD
>
        </PRE
></TD
></TR
></TABLE
><P
>          For more information about DLL overrides, please refer to the <A
HREF="#WINECFG-DLL-OVERRIDES"
>DLL overrides</A
> section of this guide.
        </P
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="WINESERVER-COMMAND-LINE-OPTIONS"
>wineserver Command Line Options</A
></H2
><P
>        wineserver usually gets started automatically by Wine whenever
	the first wine process gets started.
	However, wineserver has some useful command line options that
	you can add if you start it up manually, e.g. via a user login
	script or so.
      </P
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="WINESERVER-CONFIG-PARAMETER"
>-d&#60;n&#62;</A
></H3
><P
>	  Sets the debug level for debug output in the terminal that
	  wineserver got started in at level &#60;n&#62;.
	  In other words: everything greater than 0 will enable
	  wineserver specific debugging output.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN894"
>-h</A
></H3
><P
>	  Display wineserver command line options help message.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN897"
>-k[n]</A
></H3
><P
>	  Kill the current wineserver, optionally with signal n.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN900"
>-p[n]</A
></H3
><P
>	  This parameter makes wineserver persistent, optionally for n
	  seconds. It will prevent wineserver from shutting down immediately.
	</P
><P
>	  Usually, wineserver quits almost immediately after the last
	  wine process using this wineserver terminated.
	  However, since wineserver loads a lot of things on startup
	  (such as the whole Windows registry data), its startup might
	  be so slow that it's very useful to keep it from exiting after
	  the end of all Wine sessions, by making it persistent.
	</P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN904"
>-w</A
></H3
><P
>          This parameter makes a newly started wineserver wait until the
	  currently active wineserver instance terminates.
        </P
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="ENVIRONMENT-VARIABLES"
>Setting Windows/DOS environment variables</A
></H2
><P
>        Your program might require some environment variable to be set
	properly in order to run successfully.
	In this case you need to set this environment variable in the
	Linux shell, since Wine will pass on the entire shell environment
	variable settings to the Windows environment variable space.
	Example for the bash shell (other shells may have a different syntax
	!):
        <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>	  export MYENVIRONMENTVAR=myenvironmentvarsetting
	</PRE
></TD
></TR
></TABLE
>
	This will make sure your Windows program can access the
	MYENVIRONMENTVAR environment variable once you start your program
	using Wine.
	If you want to have MYENVIRONMENTVAR set permanently, then you can
	place the setting into /etc/profile, or also ~/.bashrc in the case of
	bash.
      </P
><P
>Note however that there are some exceptions to the rule:
        If you want to change the PATH, SYSTEM or TEMP variables, the of course
        you can't modify it that way, since this will alter the Unix environment
        settings. Instead, you should set them into the registry. To set them
        you should launch <KBD
CLASS="USERINPUT"
>wine regedit</KBD
> and then go to the
        <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>HKEY_CURRENT_USER/Environment</PRE
></TD
></TR
></TABLE
> key. Now you can create
        or modify the values of the variables you need
      </P
><P
>        <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>"System" = "c:\\windows\\system"</PRE
></TD
></TR
></TABLE
>
        This sets up where the windows system files are. The Windows
          system directory should reside below the directory used for the
        <TT
CLASS="LITERAL"
>Windows</TT
> setting.
          Thus when using /usr/local/wine_c_windows as Windows path,
          the system directory would be
          <TT
CLASS="FILENAME"
>/usr/local/wine_c/windows/system</TT
>.
        It must be set with no trailing slash, and you must be sure that
        you have write access to it.
      </P
><P
>        <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>"Temp" = "c:\\temp"</PRE
></TD
></TR
></TABLE
> This should
        be the directory you want your temp files stored in,
          /usr/local/wine_c/temp in our previous example.
        Again, no trailing slash, and <I
CLASS="EMPHASIS"
>write
          access</I
>!!
      </P
><P
>        <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>"Path" = "c:\\windows;c:\\windows\\system;c:\\blanco"</PRE
></TD
></TR
></TABLE
>
        Behaves like the <CODE
CLASS="ENVAR"
>PATH</CODE
> setting on UNIX
        boxes. When wine is run like <KBD
CLASS="USERINPUT"
>wine
          sol.exe</KBD
>, if <TT
CLASS="FILENAME"
>sol.exe</TT
>
        resides in a directory specified in the
        <TT
CLASS="LITERAL"
>Path</TT
> setting, wine will run it (Of
        course, if <TT
CLASS="FILENAME"
>sol.exe</TT
> resides in the
        current directory, wine will run that one). Make sure it
        always has your <TT
CLASS="FILENAME"
>windows</TT
> directory and
        system directory (For this setup, it must have
        <TT
CLASS="FILENAME"
>"c:\\windows;c:\\windows\\system"</TT
>).
      </P
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="CUI-PROGRAMS"
>Text mode programs (CUI: Console User Interface)</A
></H2
><P
>Text mode programs are program which output is only made
	out of text (surprise!). In Windows terminology, they are
	called CUI (Console User Interface) executables, by opposition
	to GUI (Graphical User Interface) executables. Win32 API
	provide a complete set of APIs to handle this situation, which
	goes from basic features like text printing, up to high level
	functionalities (like full screen editing, color support,
	cursor motion, mouse support), going through features like
	line editing or raw/cooked input stream support
      </P
><P
>        Given the wide scope of features above, and the current usage
	in Un*x world, Wine comes out with three different ways for
	running a console program (aka a CUI executable):
	<P
></P
><UL
><LI
><P
>	      bare streams
	    </P
></LI
><LI
><P
>	      wineconsole with user backend
	    </P
></LI
><LI
><P
>	      wineconsole with curses backend
	    </P
></LI
></UL
>
      </P
><P
>The names here are a bit obscure. "bare streams" means
	that no extra support of wine is provide to map between the
	unix console access and Windows console access. The two other
	ways require the use of a specific Wine program (wineconsole)
	which provide extended facilities. The following table
	describes what you can do (and cannot do) with those three 
	ways.
	<DIV
CLASS="TABLE"
><A
NAME="AEN942"
></A
><P
><B
>Table 2. Basic differences in consoles</B
></P
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
>Function</TH
><TH
>Bare streams</TH
><TH
>Wineconsole &#38; user backend</TH
><TH
>Wineconsole &#38; curses backend</TH
></TR
></THEAD
><TBODY
><TR
><TD
>How to run (assuming executable is called foo.exe)</TD
><TD
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>$</TT
> <KBD
CLASS="USERINPUT"
>wine foo.exe</KBD
></PRE
></TD
></TR
></TABLE
></TD
><TD
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>$</TT
> <KBD
CLASS="USERINPUT"
>wineconsole -- --backend=user foo.exe</KBD
></PRE
></TD
></TR
></TABLE
></TD
><TD
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>$</TT
> <KBD
CLASS="USERINPUT"
>wineconsole foo.exe</KBD
></PRE
></TD
></TR
></TABLE
>You can also use --backend=curses as an option</TD
></TR
><TR
><TD
>Good support for line oriented CUI applications
		  (which print information line after line)
		  </TD
><TD
>Yes</TD
><TD
>Yes</TD
><TD
>Yes</TD
></TR
><TR
><TD
>Good support for full screen CUI
		  applications (including but not limited to color
		  support, mouse support...)</TD
><TD
>No</TD
><TD
>Yes</TD
><TD
>Yes</TD
></TR
><TR
><TD
>Can be run even if X11 is not running</TD
><TD
>Yes</TD
><TD
>No</TD
><TD
>Yes</TD
></TR
><TR
><TD
>Implementation</TD
><TD
>Maps the standard Windows streams to the
		  standard Unix streams (stdin/stdout/stderr)
		</TD
><TD
>		  Wineconsole will create a new Window (hence
		  requiring the USER32 DLL is available) where all
		  information will be displayed
		</TD
><TD
>		  Wineconsole will use existing unix console
		  (from which the program is run) and with the help of
		  the (n)curses library take control of all the terminal
		  surface for interacting with the user
		</TD
></TR
><TR
><TD
>Known limitations</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>		  Will produce strange behavior if two (or more)
		  Windows consoles are used on the same Un*x terminal.
		</TD
></TR
></TBODY
></TABLE
></DIV
>
      </P
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="CUI-PROGRAMS-CONFIG"
>Configuration of CUI executables</A
></H3
><P
>	  When wineconsole is used, several configuration options are
	  available. Wine (as Windows do) stores, on a per application
	  basis, several options in the registry. This let a user, for
	  example, define the default screen-buffer size he would like
	  to have for a given application.
	</P
><P
>	  As of today, only the USER backend allows you to edit those
	  options (we don't recommend editing by hand the registry
	  contents). This edition is fired when a user right click in
	  the console (this popups a menu), where you can either
	  choose from:
	  <P
></P
><UL
><LI
><P
>		Default: this will edit the settings shared by all
		applications which haven't been configured yet. So,
		when an application is first run (on your machine,
		under your account) in wineconsole, wineconsole will
		inherit this default settings for the
		application. Afterwards, the application will have its
		own settings, that you'll be able to modify at your will.
	      </P
><P
>		Properties: this will edit the application's
		settings. When you're done, with the edition, you'll
		be prompted whether you want to:
		<P
></P
><OL
TYPE="1"
><LI
><P
>		      Keep these modified settings only for this
		      session (next time you run the application, you
		      will not see the modification you've just made).
		    </P
></LI
><LI
><P
>		      Use the settings for this session and save them
		      as well, so that next you run your application,
		      you'll use these new settings again.
		    </P
></LI
></OL
>
	      </P
></LI
></UL
>
	</P
><P
>	  Here's the list of the items you can configure, and their
	  meanings:
	  <DIV
CLASS="TABLE"
><A
NAME="AEN1008"
></A
><P
><B
>Table 3. Wineconsole configuration options</B
></P
><TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
>Configuration option</TH
><TH
>Meaning</TH
></TR
></THEAD
><TBODY
><TR
><TD
>Cursor's size</TD
><TD
>		    Defines the size of the cursor. Three options are
		    available: small (33% of character height), medium
		    (66%) and large (100%)
		  </TD
></TR
><TR
><TD
>Popup menu</TD
><TD
>		    It's been said earlier that wineconsole
		    configuration popup was triggered using a right
		    click in the console's window. However, this can
		    be an issue when the application you run inside
		    wineconsole expects the right click events to be
		    sent to it. By ticking control or shift you select
		    additional modifiers on the right click for
		    opening the popup. For example, ticking shift will
		    send events to the application when you right
		    click the window without shift being hold down,
		    and open the window when you right-click while
		    shift being hold down.
		  </TD
></TR
><TR
><TD
>Quick edit</TD
><TD
>		    This tick box lets you decide whether left-click
		    mouse events shall be interpreted as events to be
		    sent to the underlying application (tick off) or
		    as a selection of rectangular part of the screen
		    to be later on copied onto the clipboard (tick on).
		  </TD
></TR
><TR
><TD
>History</TD
><TD
>		    This lets you pick up how many commands you want
		    the console to recall. You can also drive whether
		    you want, when entering several times the same
		    command - potentially intertwined with others -
		    whether you want to store all of them (tick off)
		    or only the last one (tick on).
		  </TD
></TR
><TR
><TD
>Police</TD
><TD
>		    The Police property sheet allows you to pick the
		    default font for the console (font file, size,
		    background and foreground color).
		  </TD
></TR
><TR
><TD
>Screenbuffer &#38; window size</TD
><TD
>		    The console as you see it is made of two different
		    parts. On one hand there's the screenbuffer which
		    contains all the information your application puts
		    on the screen, and the window which displays a
		    given area of this screen buffer. Note that the
		    window is always smaller or of the same size than
		    the screen buffer. Having a strictly smaller window
		    size will put on scrollbars on the window so that
		    you can see the whole screenbuffer's content.
		  </TD
></TR
><TR
><TD
>Close on exit</TD
><TD
>		    If it's ticked, then the wineconsole will exit
		    when the application within terminates. Otherwise,
		    it'll remain opened until the user manually closes
		    it: this allows seeing the latest information of a
		    program after it has terminated.
		  </TD
></TR
><TR
><TD
>Edition mode</TD
><TD
>		    <P
>			When the user enter commands, he or she can
			choose between several edition modes:
			<P
></P
><UL
><LI
><P
>			      Emacs: the same keybindings as under
			      emacs are available. For example, Ctrl-A
			      will bring the cursor to the beginning
			      of the edition line. See your emacs
			      manual for the details of the commands.
			    </P
></LI
><LI
><P
>			      Win32: these are the standard Windows
			      console key-bindings (mainly using
			      arrows).
			    </P
></LI
></UL
>
		      </P
>
		  </TD
></TR
></TBODY
></TABLE
></DIV
>
	</P
></DIV
></DIV
></DIV
><DIV
CLASS="CHAPTER"
><HR><H1
><A
NAME="BUGS"
></A
>Troubleshooting / Reporting bugs</H1
><DIV
CLASS="SECT1"
><H2
CLASS="SECT1"
><A
NAME="TROUBLESHOOTING"
>What to do if some program still doesn't work?</A
></H2
><P
>      There are times when you've been trying everything, you even killed a cat
      at full moon and ate it with rotten garlic and foul fish
      while doing the Devil's Dance, yet nothing helped to make some damn
      program work on some Wine version.
      Don't despair, we're here to help you...
      (in other words: how much do you want to pay ?)
      </P
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1052"
>Verify your wine configuration</A
></H3
><P
>          Look at the output from <TT
CLASS="PROMPT"
>$ </TT
>
          <KBD
CLASS="USERINPUT"
>wine --version</KBD
> to make sure you're running
          a recent version of Wine.  Launch winecfg and look over the 
          settings to make sure you have settings that look normal.  Look
          in <TT
CLASS="FILENAME"
>~/.wine/dosdevices</TT
> to make sure you're
          c: points to where you think it should. 
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1058"
>Use different windows version settings</A
></H3
><P
>	In several cases using <A
HREF="#CONFIG-WINDOWS-VERSIONS"
>different windows version settings</A
> can help.
        </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1062"
>Use different startup paths</A
></H3
><P
>	  This sometimes helps, too:

	  Try to use both
	  <B
CLASS="COMMAND"
>wine prg.exe</B
>
	  and
	  <B
CLASS="COMMAND"
>wine x:\\full\\path\\to\\prg.exe</B
>
	</P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1067"
>Fiddle with DLL configuration</A
></H3
><P
>	  Run with WINEDEBUG=+loaddll to figure out which DLLs are
	  being used, and whether they're being loaded as native or
	  built-in.
	  Then make sure you have proper native DLL files in your
	  configured C:\windows\system directory and fiddle with DLL
	  load order settings at command line or in config file.
	</P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1070"
>Check your system environment !</A
></H3
><P
>	  Just an idea: could it be that your Wine build/execution
	  environment is broken ?

	  Make sure that there are no problems whatsoever with the
	  packages
	  that Wine depends on (gcc, glibc, X libraries, OpenGL (!), ...)

	  E.g. some people have strange failures to find stuff when
	  using "wrong" header files for the "right" libraries !!!
	  (which results in days of debugging to desperately try to find
	  out why that lowlevel function fails in a way that is completely
	  beyond imagination... ARGH !)
	</P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1073"
>Use different GUI (Window Manager) modes</A
></H3
><P
>	  Instruct Wine via config file to use either desktop mode,
	  managed mode or plain ugly "normal" mode.
	  That can make one hell of a difference, too.
	</P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1076"
>Check your app !</A
></H3
><P
>	  Maybe your app is using some kind of copy protection ?

	  Many copy protections currently don't work on Wine.
	  Some might work in the future, though.
	  (the CD-ROM layer isn't really full-featured yet).
	</P
><P
>	  Go to <A
HREF="http://www.gamecopyworld.com"
TARGET="_top"
>GameCopyWorld</A
>
	  and try to find a decent crack for your game that gets rid of
	  that ugly copy protection.
	  I hope you do have a legal copy of the program, though... :-)
	</P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1081"
>Check your Wine environment !</A
></H3
><P
>	  Running with or without a Windows partition can have a
	  dramatic impact.

	  Configure Wine to do the opposite of what you used to have.

	  Also, install DCOM98 or DCOM95. This can be very beneficial.
	</P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1084"
>Reconfigure Wine</A
></H3
><P
>	  Sometimes wine installation process changes and new versions of
	  Wine account on these changes.
	  This is especially true if your setup was created long time ago.

	  Rename your existing <TT
CLASS="FILENAME"
>~/.wine</TT
> directory
	  for backup purposes.
	  Use the setup process that's recommended for your Wine distribution
	  to create new configuration.
	  Use information in old <TT
CLASS="FILENAME"
>~/.wine</TT
>
	  directory as a reference.
	  For source wine distribution to configure Wine run
	  tools/wineinstall script as a user you want to do the configuration
	  for.
	  This is a pretty safe operation. Later you can remove the new
	  <TT
CLASS="FILENAME"
>~/.wine</TT
> directory and rename your old one back.
	</P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1090"
>Check out further information</A
></H3
><P
>	There is a really good chance that someone has already tried
	to do the same thing as you.  You may find the 
	following resources helpful:
      </P
><P
>	<P
></P
><UL
><LI
><P
>		Search <A
HREF="http://appdb.winehq.org"
TARGET="_top"
>WineHQ's
		Application Database</A
> to check for any tips
		relating to the program.  If your specific version of
		the program isn't listed you may find a different one
		contains enough information to help you out.
	    </P
></LI
><LI
><P
>		<A
HREF="http://www.frankscorner.org"
TARGET="_top"
>Frank's Corner</A
>
		contains a list of applications and detailed instructions
		for setting them up.  Further help can be found in the user
		forums.
	    </P
></LI
><LI
><P
>		<A
HREF="http://www.google.com"
TARGET="_top"
>Google</A
> can be
		useful depending on how you use it.  You may
		find it helpful to search 
		<A
HREF="http://groups.google.com"
TARGET="_top"
>Google Groups</A
>,
		in particular the 
		<A
HREF="http://groups.google.com/groups?hl=en&#38;lr=&#38;ie=UTF-8&#38;group=comp.emulators.ms-windows.wine"
TARGET="_top"
>comp.emulators.ms-windows.wine</A
>
		group.  
	    </P
></LI
><LI
><P
>		<A
HREF="http://www.freenode.net"
TARGET="_top"
>Freenode.net</A
>
		hosts an IRC channel for Wine.  You can access it by using
		any IRC client such as Xchat.  The settings you'll need are:
		server = irc.freenode.net, port = 6667, and channel = #winehq
	    </P
></LI
><LI
><P
>		If you have a program that needs the Visual Basic Runtime Environment,
		you can download it from
		<A
HREF="http://www.microsoft.com/downloads/details.aspx?FamilyID=bf9a24f9-b5c5-48f4-8edd-cdf2d29a79d5&#38;DisplayLang=en/"
TARGET="_top"
>this Microsoft site</A
>
	    </P
></LI
><LI
><P
>		If you know you are missing a DLL, such as mfc42,
		you may be able to find it at
		<A
HREF="http://www.dll-files.com/"
TARGET="_top"
>www.dll-files.com</A
>
	    </P
></LI
><LI
><P
>		Wine's <A
HREF="http://www.winehq.org/site/forums#ml"
TARGET="_top"
>mailing
		lists</A
> may also help, especially wine-users.  The
		wine-devel list may be appropriate depending on the type of
		problem you are experiencing.  If you post to wine-devel you
		should be prepared to do a little work to help diagnose the
		problem.  Read the section below to find out how to debug
		the source of your problem.
	    </P
></LI
><LI
><P
>		If all else fails, you may wish to investigate commercial
		versions of Wine to see if your application is supported. 
	    </P
></LI
></UL
>  
      </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1120"
>Debug it!</A
></H3
><P
>	  Finding the source of your problem is the next step to take.
	  There is a wide spectrum of possible problems
	  ranging from simple configurations issues to completely unimplemented
	  functionality in Wine.  The next section will describe how to 
	  file a bug report and how to begin debugging a crash.  For more
	  information on using Wine's debugging facilities be sure to read
	  the Wine Developers Guide.
	</P
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="BUG-REPORTING"
>How To Report A Bug</A
></H2
><P
>        Please report all bugs along any relevant information to
	<A
HREF="http://bugs.winehq.org/"
TARGET="_top"
>Wine Bugzilla</A
>.
        Please, search the Bugzilla database to check whether your problem
        is already reported. If it is already reported please add
        any relevant information to the original bug report.
      </P
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1127"
>All Bug Reports</A
></H3
><P
>          Some simple advice on making your bug report more useful
          (and thus more likely to get answered and fixed):
        </P
><P
></P
><OL
TYPE="1"
><LI
><P
>            Post as much relevant information as possible.
          </P
><P
>            This means we need more information than a simple "MS
            Word crashes whenever I run it.  Do you know why?"
            Include at least the following information:
          </P
><P
></P
><UL
COMPACT="COMPACT"
><LI
><P
>              Which version of Wine you're using (run <B
CLASS="COMMAND"
>wine --version</B
>)
            </P
></LI
><LI
><P
>              The name of the Operating system you're using, what distribution (if
              any), and what version. (i.e., Linux Red Hat 7.2)
            </P
></LI
><LI
><P
>              Which compiler and version, (run <B
CLASS="COMMAND"
>gcc -v</B
>).
              If you didn't compile wine then the name of the package and
              where you got it from.
            </P
></LI
><LI
><P
>              Windows version, if used with Wine.
              Mention if you don't use Windows.
            </P
></LI
><LI
><P
>              The name of the program you're trying to run, its version number,
              and a URL for where the program can be obtained (if
              available).
            </P
></LI
><LI
><P
>              The exact command line you used to start wine. 
              (i.e., <B
CLASS="COMMAND"
>wine "C:\Program Files\Test\program.exe"</B
>).
             </P
></LI
><LI
><P
>              The exact steps required to reproduce the bug.
            </P
></LI
><LI
><P
>              Any other information you think may be relevant or
              helpful, such as X server version in case of X
              problems, libc version etc.
            </P
></LI
></UL
></LI
><LI
><P
>            Re-run the program with the WINEDEBUG environment variable <TT
CLASS="PARAMETER"
><I
>            WINEDEBUG=+relay</I
></TT
> option (i.e., <B
CLASS="COMMAND"
>WINEDEBUG=+relay
            wine sol.exe</B
>).
          </P
><P
>            This will output additional information at the console 
            that may be helpful in debugging the program. It also
            slows the execution of program. There are some cases where 
            the bug seems to disappear when <TT
CLASS="PARAMETER"
><I
> +relay 
            </I
></TT
> is used. Please mention that in the bug report.
          </P
></LI
></OL
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1160"
>Crashes</A
></H3
><P
>           If Wine crashes while running your program, it is
           important that we have this information to have a chance
           at figuring out what is causing the crash.  This can put
           out quite a lot (several MB) of information, though, so
           it's best to output it to a file.  When the <TT
CLASS="PROMPT"
>Wine-dbg&#62;</TT
>
           prompt appears, type <KBD
CLASS="USERINPUT"
>quit</KBD
>.
        </P
><P
>           You might want to try
           <TT
CLASS="PARAMETER"
><I
>+relay,+snoop</I
></TT
> instead of
           <TT
CLASS="PARAMETER"
><I
>+relay</I
></TT
>, but please note that
           <TT
CLASS="PARAMETER"
><I
>+snoop</I
></TT
> is pretty unstable and
           often will crash earlier than a simple
           <TT
CLASS="PARAMETER"
><I
>+relay</I
></TT
>! If this is the case, then
           please use <I
CLASS="EMPHASIS"
>only</I
> <TT
CLASS="PARAMETER"
><I
>+relay</I
></TT
>!!
           A bug report with a crash in <TT
CLASS="PARAMETER"
><I
>+snoop</I
></TT
>
           code is useless in most cases!
           You can also turn on other parameters, depending on the nature
           of the problem you are researching. See wine man page for full list
           of the parameters.
         </P
><P
>           To get the trace output, use one of the following methods:
         </P
><DIV
CLASS="SECT3"
><HR><H4
CLASS="SECT3"
><A
NAME="AEN1174"
>The Easy Way</A
></H4
><P
></P
><OL
TYPE="1"
><LI
><P
>               This method is meant to allow even a total novice to
               submit a relevant trace log in the event of a crash.
             </P
><P
>               Your computer <I
CLASS="EMPHASIS"
>must</I
> have perl on it
               for this method to work. To find out if you have perl,
               run <B
CLASS="COMMAND"
>which perl</B
>. If it returns something like
               <TT
CLASS="FILENAME"
>/usr/bin/perl</TT
>, you're in business.
               Otherwise, skip on down to "The Hard Way". If you aren't
               sure, just keep on going. When you try to run the
               script, it will become <I
CLASS="EMPHASIS"
>very</I
> apparent
	       if you don't have perl.
             </P
></LI
><LI
><P
>               Change directory to <TT
CLASS="FILENAME"
>&#60;dirs to wine&#62;/tools</TT
>
             </P
></LI
><LI
><P
>               Type in <B
CLASS="COMMAND"
>./bug_report.pl</B
> and follow
               the directions.
             </P
></LI
><LI
><P
>               Post the bug to
               <A
HREF="http://bugs.winehq.org/"
TARGET="_top"
>Wine Bugzilla</A
>.
               Please, search Bugzilla database to check whether your problem is
               already found before posting a bug report.
               Include your own detailed description of the problem with
               relevant information. Attach the "Nice Formatted Report"
               to the submitted bug. Do not cut and paste the report
               in the bug description - it is pretty big.
               Keep the full debug output in case it will be needed by
               Wine developers.
             </P
></LI
></OL
></DIV
><DIV
CLASS="SECT3"
><HR><H4
CLASS="SECT3"
><A
NAME="AEN1193"
>The Hard Way</A
></H4
><P
>             It is likely that only the last 100 or so lines of the
             trace are necessary to find out where the program crashes. 
             In order to get those last 100 lines we need to do the following
           </P
><P
></P
><OL
TYPE="1"
><LI
><P
>               Redirect all the output of <TT
CLASS="PARAMETER"
><I
> WINEDEBUG </I
></TT
>
               to a file.
             </P
></LI
><LI
><P
>               Separate the last 100 lines to another file using
               <B
CLASS="COMMAND"
>tail</B
>.
             </P
></LI
></OL
><P
>             This can be done using one of the following methods.
           </P
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
>all shells:</DT
><DD
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>$ </TT
>echo quit | WINEDEBUG=+relay wine [other_options] program_name &#62;&#38; filename.out;
<TT
CLASS="PROMPT"
>$ </TT
>tail -n 100 filename.out &#62; report_file
             </PRE
></TD
></TR
></TABLE
><P
>               (This will print wine's debug messages only to the file 
               and then auto-quit. It's probably a good idea to use this 
               command, since wine prints out so many debug msgs that 
               they flood the terminal, eating CPU cycles.)
             </P
></DD
><DT
>tcsh and other csh-like shells:</DT
><DD
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>$ </TT
>WINEDEBUG=+relay wine [other_options] program_name |&#38; tee filename.out;
<TT
CLASS="PROMPT"
>$ </TT
>tail -n 100 filename.out &#62; report_file
             </PRE
></TD
></TR
></TABLE
></DD
><DT
>bash and other sh-like shells:</DT
><DD
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="PROMPT"
>$ </TT
>WINEDEBUG=+relay wine [other_options] program_name 2&#62;&#38;1 | tee filename.out;
<TT
CLASS="PROMPT"
>$ </TT
>tail -n 100 filename.out &#62; report_file
             </PRE
></TD
></TR
></TABLE
></DD
></DL
></DIV
><P
>            <TT
CLASS="FILENAME"
>report_file</TT
> will now contain the
            last hundred lines of the debugging output, including
            the register dump and backtrace, which are the most
            important pieces of information.  Please do not delete
            this part, even if you don't understand what it means.
          </P
><P
>            Post the bug to 
            <A
HREF="http://bugs.winehq.org/"
TARGET="_top"
>Wine Bugzilla</A
>.
            You need to attach the output file <TT
CLASS="FILENAME"
>report_file</TT
>
            from part 2). Along with the the relevant information 
            used to create it. Do not cut and paste the report
            in the bug description - it is pretty big and it will
            make a mess of the bug report.
            If you do this, your chances of receiving some sort of
            helpful response should be very good.
          </P
><P
>            Please, search the Bugzilla database to check whether your problem
            is already reported. If it is already reported attach the
            output file <TT
CLASS="FILENAME"
>report_file</TT
> to the original
            bug report and add any other relevant information.
          </P
></DIV
></DIV
></DIV
></DIV
><DIV
CLASS="GLOSSARY"
><H1
><A
NAME="GLOSSARY"
></A
>Glossary</H1
><DIV
CLASS="GLOSSDIV"
><H1
CLASS="GLOSSDIV"
><A
NAME="AEN1233"
></A
></H1
><DL
><DT
><B
>Binary</B
></DT
><DD
><P
>    A file which is in machine executable, compiled form: hex data (as opposed to a source code file).
  </P
></DD
><DT
><B
>Distribution</B
></DT
><DD
><P
>    A distribution is usually the way in which some "vendor" ships operating system CDs (usually mentioned in the context of Linux).
    A Linux environment can be shipped in lots of different configurations: e.g. distributions could be built to be suitable for games, scientific
    applications, server operation, desktop systems, etc.
  </P
></DD
><DT
><B
>DLL</B
></DT
><DD
><P
>    A DLL (Dynamic Link Library) is a file that can be loaded and executed by programs dynamically. Basically it's an external code repository for programs.
    Since usually several different programs reuse the same DLL instead of having that code in their own file, this dramatically reduces required storage space.
    A synonym for a DLL would be library.
  </P
></DD
><DT
><B
>Editor</B
></DT
><DD
><P
>    An editor is usually a program to create or modify text files.
    There are various graphical and text mode editors available on
    Linux.
  </P
><P
>    Examples of graphical editors are: nedit, gedit, kedit, xemacs,
    gxedit.
  </P
><P
>    Examples of text mode editors are: joe, ae, emacs, vim, vi.
    In a <I
CLASS="GLOSSTERM"
>terminal</I
>, simply run them via:
  </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>    <TT
CLASS="PROMPT"
>$ </TT
><KBD
CLASS="USERINPUT"
><TT
CLASS="REPLACEABLE"
><I
>editorname</I
></TT
>
    <TT
CLASS="REPLACEABLE"
><I
>filename</I
></TT
></KBD
>
  </PRE
></TD
></TR
></TABLE
></DD
><DT
><B
>Environment variable</B
></DT
><DD
><P
>    Environment variables are text definitions used in a <I
CLASS="GLOSSTERM"
>Shell</I
> to store important system settings.
    In a <B
CLASS="COMMAND"
>bash</B
> shell (the most commonly used one in Linux),
    you can view all environment variables by executing:
  </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>    <KBD
CLASS="USERINPUT"
>set</KBD
>
  </PRE
></TD
></TR
></TABLE
><P
>    If you want to change an environment variable, you could run:
  </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>    <KBD
CLASS="USERINPUT"
>export <TT
CLASS="REPLACEABLE"
><I
>MYVARIABLE</I
></TT
>=<TT
CLASS="REPLACEABLE"
><I
>mycontent</I
></TT
></KBD
>
  </PRE
></TD
></TR
></TABLE
><P
>    For deleting an environment variable, use:
  </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>    <KBD
CLASS="USERINPUT"
>unset <TT
CLASS="REPLACEABLE"
><I
>MYVARIABLE</I
></TT
></KBD
>
  </PRE
></TD
></TR
></TABLE
></DD
><DT
><B
>Git</B
></DT
><DD
><P
>    Git is a fast directory content manager, originally written for use with
    large repositories, such as the Linux Kernel source. 
    See the Git chapter in the Wine Developers Guide for detailed usage information.
  </P
></DD
><DT
><B
>Package</B
></DT
><DD
><P
>    A package is a compressed file in a
    <I
CLASS="GLOSSTERM"
>distribution</I
> specific format. It contains the
    files for a particular program you want to install. Packages are
    usually installed via the <B
CLASS="COMMAND"
>dpkg</B
> or
    <B
CLASS="COMMAND"
>rpm</B
> package managers.
  </P
></DD
><DT
><B
>root</B
></DT
><DD
><P
>    root is the account name of the system administrator.
    In order to run programs as root, simply open a
    <I
CLASS="GLOSSTERM"
>Terminal</I
> window, then run:
  </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>    <TT
CLASS="PROMPT"
>$ </TT
><KBD
CLASS="USERINPUT"
>su -</KBD
>
  </PRE
></TD
></TR
></TABLE
><P
>    This will prompt you for the password of the root user of your system,
    and after that you will be able to system administration tasks
    that require special root privileges. The root account is indicated by the
  </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>    <TT
CLASS="PROMPT"
># </TT
>
  </PRE
></TD
></TR
></TABLE
><P
>    prompt, whereas '$' indicates a normal user account.
  </P
></DD
><DT
><B
>Shell</B
></DT
><DD
><P
>    A shell is a tool to enable users to interact with the
    system. Usually shells are text based and command line oriented.
    Examples of popular shells include <B
CLASS="COMMAND"
>bash</B
>,
    <B
CLASS="COMMAND"
>tcsh</B
> and <B
CLASS="COMMAND"
>ksh</B
>. Wine assumes
    that for Wine installation tasks, you use <B
CLASS="COMMAND"
>bash</B
>,
    since this is the most popular shell on Linux.
    Shells are usually run in a <I
CLASS="GLOSSTERM"
>Terminal</I
> window.
  </P
></DD
><DT
><B
>Source code</B
></DT
><DD
><P
>    Source code is the code that a program consists of before the program
    is being compiled, i.e. it's the original building instructions of a
    program that tell a compiler what the program should look like once
    it's been compiled to a <I
CLASS="GLOSSTERM"
>Binary</I
>.
  </P
></DD
><DT
><B
>Terminal</B
></DT
><DD
><P
>    A terminal window is usually a graphical window that one uses to
    execute a <B
CLASS="COMMAND"
>Shell</B
>. If Wine asks you to open a
    terminal, then you usually need to click on an icon on your desktop
    that shows a big black window (or, in other cases, an icon displaying a
    maritime shell).
    Wine assumes you're using the <B
CLASS="COMMAND"
>bash</B
> shell in a
    terminal window, so if your terminal happens to use a different
    shell program, simply type:
  </P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
>    <KBD
CLASS="USERINPUT"
>bash</KBD
>
  </PRE
></TD
></TR
></TABLE
><P
>    in the terminal window.
  </P
></DD
></DL
></DIV
></DIV
></DIV
></BODY
></HTML
>
