PCLinuxOS New User Guide : ConfiguringWine

HomePage :: PCLinuxOS Forum | Index | Categories | Changes | Login/Register
Most recent edit on 2007-05-21 19:54:01 by SySy [moved]

Additions:
moved to http://docs.mypclinuxos.com/Wine

Deletions:

Configuring Wine

Back to Advanced Topics
THIS PAGE BEING MOVED TO http://docs.mypclinuxos.com/Wine

Introduction Windows On Linux

Wine is an open source implementation of Windows API. The name was derived from the recursive acronym "Wine Is Not an Emulator" (it implements a compatibility layer). In layman's terms, wine allows a user to run Windows programs under linux. Wine is still in beta release form, and as such, still has some unimplemented functions and bugs, which may make running certain Windows program impossible. However, the Wine project is making huge strides to support as much software as possible and many of the commonly used programs can run fairly comfortably under Wine. For a (somewhat) complete listing of "supported" applications, visit Wine App Database. There are a number of Wine-related projects that can act as alternatives, among them are CrossOver Office (see PCLOS page on CrossOver), TransGaming Cedega, and VMWare (see PCLOS page on VMWare).

Installing Wine

To install Wine, use Synaptic. The wine package contains the binary files needed to run WIndows software under Linux. The wine-devel package contains headers and libraries needed to develop programs under wine, and is not needed for most users.

User Configuration

Since configuring Wine has to be done through the command line, it may at first seem a little daunting (especially to a new user). But don't worry - this guide will walk you through it step by step. Unlike some of the alpha versions (usually identified by YYYYMMDD versions such as 20050725), the beta versions (identified by 0.9.x versions) are much easier to configure. To start, simply run wine from the command line:
prompt> wine
This will create a .wine hidden directory inside the current user's home directory. To view its content,
prompt> ls -al ~/.wine
Inside the .wine directory will be another directory called drive_c, and possibly a symbolic link c to drive_c. This directory will serve as wine's equivalent to C:, the windows root directory. All additional wine related files (such as installed program and DLLs) and directories (such as Program Files and Windows) will reside within drive_c. Note: since the .wine directory resides in a particular user's home directory, every user will have their own .wine directory with their own copies of the installed programs!
The rest of configuration is done through the winecfg tool, which can be started by
prompt> winecfg
This wine configuration GUI will allow the user to
To assist in further configuration, a number of people have created several configuration tools, such as WIneTools and ies4linux. These programs allow the user to easily install system utilities like Windows fonts, Internet Explorer, Flashplayer, and many other programs and utilities.

Running Programs under Wine

Running installed programs and installing new programs is actually the same topic since both are achieved by running a .exe file. In other words, to start a program (even a setup.exe program), simply type
 prompt> wine /path/to/windows/program.exe
to start the execution. For most programs, running an exe from the terminal will display a lot of debug information (such as certain functionality is not supported, or error loading some library). Hopefully, none of those messages will be show-stoppers and the started program will just work. However, if it doesn't, don't despair. Look in the terminal and see if you can make sense of what is displayed there. It may be possible to fix the problem by running winecfg and selecting a different Windows version or redefining some DLLs. Please remember that even though wine is making great strides to improve its functionality, it is still a beta. If all else fails and your installed program simply won't run and you want to recover the disk space, you can uninstall programs by running
prompt> uninstaller
and removing the installed wine program.

Understanding Wine File Structure

Note: This is an advanced topic. Linux noobies beware! The easiest say to understand the wine file structure is through the eyes of a Linux file structure. Let's say your system is dual boot with windows: your windows partition is /dev/sda1 your root partition is /dev/sda2, and your home partition is /dev/sda3. Then, your filesystem may look like:
/                           <= PCLOS root (mount point of /dev/sda2)
|-/dev
| |-/mnt
| |-/floppy
| |-/win_c                  <= existing windows partition "root" (mount point of /dev/sda1)
|   |-/Program Files
|   | |-/Application1
|   |   |-/program1.exe     <= program on windows partition installed through windows
|   |-/Windows
|-/home                     <= user home directory (mount point of /dev/sda3)
| |-/.wine       
|   |-/drive_c              <= wine's fake windows "root"
|     |-/Program Files
|     | |-/Application2
|     |   |-/program2.exe   <= program installed through wine
|     |-/windows
|-/usr

All programs that were already installed on your Windows partition can be started by typing in the following
 prompt> wine "/mnt/win_c/Program Files/Application1/program1.exe"
into the command window. Note that this is case sensitive, and you must have the quotes around the path because it contains spaces. If you have installed new programs through wine, then those can be started by typing in the following
 prompt> wine "~/.wine/drive_c/Program Files/Application2/program2.exe"
into the command window. Again, note the case and the quotes.

Upgrading Wine

The wine project is rather good at releasing upgrades on a regular basis. Eventually, you will want to upgrade your wine installation (be it through Synaptic or by building your own source). Don't panic: your ~/.wine directory will remain intact even if you remove the old version of wine and install a new version later. This way, your installed programs will still be there even after the upgrade.

CategoryAdvanced




Edited on 2007-05-17 19:27:47 by IanDawson [Porting to new wiki]

Additions:
THIS PAGE BEING MOVED TO http://docs.mypclinuxos.com/Wine



Edited on 2006-05-03 10:50:53 by LexNL [Corrected CXO link]

Additions:
Wine is an open source implementation of Windows API. The name was derived from the recursive acronym "Wine Is Not an Emulator" (it implements a compatibility layer). In layman's terms, wine allows a user to run Windows programs under linux. Wine is still in beta release form, and as such, still has some unimplemented functions and bugs, which may make running certain Windows program impossible. However, the Wine project is making huge strides to support as much software as possible and many of the commonly used programs can run fairly comfortably under Wine. For a (somewhat) complete listing of "supported" applications, visit Wine App Database. There are a number of Wine-related projects that can act as alternatives, among them are CrossOver Office (see PCLOS page on CrossOver), TransGaming Cedega, and VMWare (see PCLOS page on VMWare).

Deletions:
Wine is an open source implementation of Windows API. The name was derived from the recursive acronym "Wine Is Not an Emulator" (it implements a compatibility layer). In layman's terms, wine allows a user to run Windows programs under linux. Wine is still in beta release form, and as such, still has some unimplemented functions and bugs, which may make running certain Windows program impossible. However, the Wine project is making huge strides to support as much software as possible and many of the commonly used programs can run fairly comfortably under Wine. For a (somewhat) complete listing of "supported" applications, visit Wine App Database. There are a number of Wine-related projects that can act as alternatives, among them are CrossOver Office (see PCLOS page on CrossOver), TransGaming Cedega, and VMWare (see PCLOS page on VMWare).



Edited on 2006-04-03 21:29:56 by GrI6507

Additions:
Since configuring Wine has to be done through the command line, it may at first seem a little daunting (especially to a new user). But don't worry - this guide will walk you through it step by step. Unlike some of the alpha versions (usually identified by YYYYMMDD versions such as 20050725), the beta versions (identified by 0.9.x versions) are much easier to configure. To start, simply run wine from the command line:

Deletions:
Since configuring Wine has to be done through the command line, it may at first seem a little daunting (especially to a new user). But don't worry - this guide will walk you through it step by step. Unlike some of the alpha versions (usually identified by YYYYMMDD versions such as 20050725), the beta versions (identified by 0.9.x versions) are much easier to configure. To start, simply run wine from the command line:



Edited on 2006-04-03 21:29:22 by GrI6507

Additions:
Since configuring Wine has to be done through the command line, it may at first seem a little daunting (especially to a new user). But don't worry - this guide will walk you through it step by step. Unlike some of the alpha versions (usually identified by YYYYMMDD versions such as 20050725), the beta versions (identified by 0.9.x versions) are much easier to configure. To start, simply run wine from the command line:

Deletions:
Unlike some of the alpha versions (usually identified by YYYYMMDD versions such as 20050725), the beta versions (identified by 0.9.x versions) are much easier to configure. To start, simply run wine from the command line:



Edited on 2006-04-02 17:00:39 by GrI6507

Additions:
~-Define Windows drive letter mappings. Much like ~/.wine/drive_c is wine's mapping to C:, the user's linux home directory ~ can be mapped to, say, H:. This allows the user to access files and directories throughout the entire system while running a wine application (usually a File Open or File Save dialog boxes).

Understanding Wine File Structure

Note: This is an advanced topic. Linux noobies beware! The easiest say to understand the wine file structure is through the eyes of a Linux file structure. Let's say your system is dual boot with windows: your windows partition is /dev/sda1 your root partition is /dev/sda2, and your home partition is /dev/sda3. Then, your filesystem may look like:
/                           <= PCLOS root (mount point of /dev/sda2)
|-/dev
| |-/mnt
| |-/floppy
| |-/win_c                  <= existing windows partition "root" (mount point of /dev/sda1)
|   |-/Program Files
|   | |-/Application1
|   |   |-/program1.exe     <= program on windows partition installed through windows
|   |-/Windows
|-/home                     <= user home directory (mount point of /dev/sda3)
| |-/.wine       
|   |-/drive_c              <= wine's fake windows "root"
|     |-/Program Files
|     | |-/Application2
|     |   |-/program2.exe   <= program installed through wine
|     |-/windows
|-/usr

All programs that were already installed on your Windows partition can be started by typing in the following
 prompt> wine "/mnt/win_c/Program Files/Application1/program1.exe"
into the command window. Note that this is case sensitive, and you must have the quotes around the path because it contains spaces. If you have installed new programs through wine, then those can be started by typing in the following
 prompt> wine "~/.wine/drive_c/Program Files/Application2/program2.exe"
into the command window. Again, note the case and the quotes.


Deletions:
~-Define Windows drive letter mappings. Much like ~/.wine/drive_c is wine's mapping to C:, the user's linux home directory ~ can be mapped to, say, H:. This allows the user to access files and directories throughout the entire system while running a wine application.



Edited on 2006-03-08 09:56:13 by LexNL [Added category]

Additions:

CategoryAdvanced




Edited on 2006-03-06 15:04:38 by GrI6507

Additions:
prompt> winecfg
This wine configuration GUI will allow the user to


Deletions:
prompt> winecfg
This wine configuration GUI will allow the user to




Edited on 2006-03-06 09:25:10 by GrI6507

Additions:
To assist in further configuration, a number of people have created several configuration tools, such as WIneTools and ies4linux. These programs allow the user to easily install system utilities like Windows fonts, Internet Explorer, Flashplayer, and many other programs and utilities.
Running installed programs and installing new programs is actually the same topic since both are achieved by running a .exe file. In other words, to start a program (even a setup.exe program), simply type
 prompt> wine /path/to/windows/program.exe
to start the execution. For most programs, running an exe from the terminal will display a lot of debug information (such as certain functionality is not supported, or error loading some library). Hopefully, none of those messages will be show-stoppers and the started program will just work. However, if it doesn't, don't despair. Look in the terminal and see if you can make sense of what is displayed there. It may be possible to fix the problem by running winecfg and selecting a different Windows version or redefining some DLLs. Please remember that even though wine is making great strides to improve its functionality, it is still a beta. If all else fails and your installed program simply won't run and you want to recover the disk space, you can uninstall programs by running
prompt> uninstaller
and removing the installed wine program.

Upgrading Wine

The wine project is rather good at releasing upgrades on a regular basis. Eventually, you will want to upgrade your wine installation (be it through Synaptic or by building your own source). Don't panic: your ~/.wine directory will remain intact even if you remove the old version of wine and install a new version later. This way, your installed programs will still be there even after the upgrade.




Edited on 2006-03-06 09:04:07 by GrI6507

Additions:
~-Define Windows drive letter mappings. Much like ~/.wine/drive_c is wine's mapping to C:, the user's linux home directory ~ can be mapped to, say, H:. This allows the user to access files and directories throughout the entire system while running a wine application.

Running Programs under Wine





Edited on 2006-03-06 08:52:34 by GrI6507

Additions:

Installing Wine

To install Wine, use Synaptic. The wine package contains the binary files needed to run WIndows software under Linux. The wine-devel package contains headers and libraries needed to develop programs under wine, and is not needed for most users.

User Configuration

Unlike some of the alpha versions (usually identified by YYYYMMDD versions such as 20050725), the beta versions (identified by 0.9.x versions) are much easier to configure. To start, simply run wine from the command line:
prompt> wine
This will create a .wine hidden directory inside the current user's home directory. To view its content,
prompt> ls -al ~/.wine
Inside the .wine directory will be another directory called drive_c, and possibly a symbolic link c to drive_c. This directory will serve as wine's equivalent to C:, the windows root directory. All additional wine related files (such as installed program and DLLs) and directories (such as Program Files and Windows) will reside within drive_c. Note: since the .wine directory resides in a particular user's home directory, every user will have their own .wine directory with their own copies of the installed programs!
The rest of configuration is done through the winecfg tool, which can be started by
prompt> winecfg
This wine configuration GUI will allow the user to
Back to Advanced Topics

Introduction Windows On Linux

Wine is an open source implementation of Windows API. The name was derived from the recursive acronym "Wine Is Not an Emulator" (it implements a compatibility layer). In layman's terms, wine allows a user to run Windows programs under linux. Wine is still in beta release form, and as such, still has some unimplemented functions and bugs, which may make running certain Windows program impossible. However, the Wine project is making huge strides to support as much software as possible and many of the commonly used programs can run fairly comfortably under Wine. For a (somewhat) complete listing of "supported" applications, visit Wine App Database. There are a number of Wine-related projects that can act as alternatives, among them are CrossOver Office (see PCLOS page on CrossOver), TransGaming Cedega, and VMWare (see PCLOS page on VMWare).
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.2738 seconds