Wine

From ArchWiki
Jump to navigation Jump to search


Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n links end

About

Wine is an Open Source implementation of the Windows API on top of X and Unix. See the wine homepage for more details.

Installation

Wine is available in the official [extra] repository: Wine

Simply do

pacman -Sy wine

and wine is installed.

Configuration

To create configuration files do

 winecfg

review the settings and click ok to save. The wine directory with config files resides in

 ~/.wine

and by default C:\> will be mapped to

 ~/.wine/drive_c

Ok! This is the basic configuration. You can try to run something using:

 wine /path/to/something.exe

Sound

By default sound issues may arise when running Wine applications. Ensure only one sound device is selected in winecfg. Alsa should work out of the box but is still glitchy & slow in some games, there exists a patch for this issue here:

http://kcat.strangesoft.net/wine_thread_prio.diff mirror: http://pastebin.archlinux.org/341

but using oss and selecting winecfg -> Sound -> Hw acceleration -> Emulation will also fix the audio issues for you provided you are using the alsa oss emulation kernel modules.

Fonts

If wine applications are not showing easily readable fonts, you may not have Microsoft's Truetype fonts installed. Luckily arch has a package for that.

pacman -Sy ttf-ms-fonts

After running such program, kill all wine servers and run winecfg; fonts should be legible now.

Other TTF fonts you wish to install should go in $C_DRIVE/windows/fonts/ (where $C_DRIVE is usually ~/.wine/drive_c) for wine to recognize them.

Using Wine to execute Win16 / Win32 binaries

You can execute binaries by calling wine manually

wine programsname.exe

It is also possible to tell the kernel to use wine as an interpreter for all Win16/Win32 binaries. First mount the binfmt_misc filesystem:

mount -t binfmt_misc none /proc/sys/fs/binfmt_misc

or add this line to your /etc/fstab

none  /proc/sys/fs/binfmt_misc binfmt_misc defaults 0 0

Then tell the kernel how to interpret Win16 and Win32 binaries:

echo ':DOSWin:M::MZ::/usr/bin/wine:' > /proc/sys/fs/binfmt_misc/register

You can add this line to /etc/rc.local to make this setting permanent. In this case you may want to ignore stderr to avoid error messages when changing runlevels:

{ echo ':DOSWin:M::MZ::/usr/bin/wine:' > /proc/sys/fs/binfmt_misc/register; } 2>/dev/null

Now try this:

chmod 755 exefile.exe
./exefile.exe

You can even remove the .exe extension, because the kernel doesn't identify the file by its extension.

Wine Configuration Utilities

These tools will assist in the installation of typical Windows components. In most cases they should be used as a last effort, as it may severely alter your wine configuration.

WineTools assistant

Winetools is a program (more of a script, in fact) that facilitates in the installation of some core components for wine in order to install other programs. Note this is not necessary for wine, but does help if you want to get Internet Explorer running.

WineTools Site

Keep in mind, Microsoft says you must have a license for IE6 in order to install DCOM98 or Internet Explorer 6. If you've ever owned a copy of Windows, you should be all set. Although I'm sure no one will hunt you down if you don't have the license.

Now grab the PKGBUILD from the AUR: AUR: Wine

and build the package as you would any PKGBUILD (if you dont know how: ABS_-_The_Arch_Build_System)

Sidenet Wine Configuration Utility

wine-config

  • Download the latest version
  • unpack it
  • READ THE README
  • execute
./setup
  • Follow the instructions

Keep in mind: Like stated on the site, you're only allowed to install DCOM98 if you possess a valid License for Windows98.

Wine-doors

Wine-doors

Wine-doors is a WineTools replacement. It features a GNOME GUI and works like a package manager. Works fine in 64bit. You can find it in the AUR.

Alternatives to run Win16 / Win32 binaries on archlinux

  • Cedega - Aimed at gamers
  • CVSCedega - CVS source version of cedega
  • Codeweavers - Codeweavers' Crossover Office; Aimed at Office Users

External Resources