First, install sudo and a command line text editor like nano: pacman -S sudo nano. The configuration file for sudo is /etc/sudoers. It should always be edited with the visudo command. Visudo locks the sudoers file, saves edits to a temporary file, and checks that file’s grammar before copying it to /etc/sudoers. To use nano as the visudo. The Arch Linux Installation Script configuration file. Jason Evangelho Created by pico.dev, this method of installing Arch does precisely what the name implies. Install Arch Linux: Actually installing Arch Linux. Post-installation: MacBook-specific configuration. Firmware updates. Before proceeding with the installation of Arch Linux, it is important to ensure that the latest firmware updates for your MacBook are installed. This procedure requires OS X. In OS X, open the App Store and check for updates.
Wine is a compatibility layer capable of running Microsoft Windows applications on Unix-like operating systems. Programs running in Wine act as native programs would, without the performance/memory penalties of an emulator.
Wine can be installed by enabling the multilib repository and installing the wine (development) or wine-staging (testing) package. Wine Staging is a patched version of Wine, which contains bug fixes and features that have not been integrated into the stable or development branch yet. See also #Graphics drivers and #Sound.
Consider installing wine-gecko and wine-mono for applications that depend on Internet Explorer and .NET, respectively. These packages are not strictly required as Wine will download the relevant files as needed. However, having the files downloaded in advance allows you to work off-line and makes it so Wine does not download the files for each Wine prefix needing them.
These have their own communities and websites, and are not supported by greater Wine community. See Wine Wiki for more details.
- CrossOver — Paid, commercialized version of Wine which provides more comprehensive end-user support.
- https://www.codeweavers.com crossoverAUR
- exe-thumbnailer — Generates thumbnails for Windows executable files (.exe, .lnk, .msi, and .dll).
- https://github.com/exe-thumbnailer/exe-thumbnailer exe-thumbnailerAUR
- Lutris — Gaming launcher for all types of games, including Wine games (with prefix management), native Linux games and emulators.
- https://lutris.net lutris
- PlayOnLinux — Graphical prefix manager for Wine. Contains scripts to assist with program installation and configuration.
- https://www.playonlinux.com playonlinux
- Proton — Compatibility tool made for Steam based on Wine and additional components. See ProtonDB for compatibility list.
- https://github.com/ValveSoftware/Proton protonAUR
- PyWinery — Simple graphical prefix manager for Wine.
- https://github.com/ergoithz/pywinery pywineryAUR
- Q4Wine — Graphical prefix manager for Wine. Can export Qt themes into the Wine configuration for better integration.
- https://sourceforge.net/projects/q4wine/ q4wineAUR
Configuring Wine is typically accomplished using:
- winecfg is a GUI configuration tool for Wine, which can be started by running
- regedit is Wine's registry editing tool, which can be started by running
regedit. See WineHQ's article on Useful Registry Keys.
- control is Wine's implementation of the Windows Control Panel, which can be started by running
- See WineHQ's List of Commands for the full list.
By default, Wine stores its configuration files and installed Windows programs in
~/.wine. This directory is commonly called a 'Wine prefix' or 'Wine bottle'. It is created/updated automatically whenever you run a Windows program or one of Wine's bundled programs such as winecfg. The prefix directory also contains a tree which your Windows programs will see as
C: (the C-drive).
You can override the location Wine uses for a prefix with the
WINEPREFIXenvironment variable. This is useful if you want to use separate configurations for different Windows programs. The first time a program is run with a new Wine prefix, Wine will automatically create a directory with a bare C-drive and registry.
For example, if you run one program with
$ env WINEPREFIX=~/.win-a wine program-a.exe, and another with
$ env WINEPREFIX=~/.win-b wine program-b.exe, the two programs will each have a separate C-drive and separate registries.
Z:is mapped to
/, regardless of the Wine prefix).
To create a default prefix without running a Windows program or other GUI tool you can use:
Wine will start a 64-bit environment by default. You can change this behavior using the
WINEARCHenvironment variable. Rename your
~/.wine directory and create a new Wine environment by running
$ WINEARCH=win32 winecfg. This will get you a 32-bit Wine environment. Not setting
WINEARCH will get you a 64-bit one.
You can combine this with
WINEPREFIX to make a separate
You can also use
WINEARCH in combination with other Wine programs, such as winetricks (using Steam as an example):
You need to install the 32-bit version of your graphics driver. Please install the package that is listed in the OpenGL (multilib) column in the table in Xorg#Driver installation.
A good sign that your drivers are inadequate or not properly configured is when Wine reports the following in your terminal window:
By default sound issues may arise when running Wine applications. Ensure only one sound device is selected in winecfg.
- If you want to use the ALSA driver in Wine, you will need to install lib32-alsa-lib and lib32-alsa-plugins.
- If you want to use the PulseAudio driver in Wine, you will need to install the lib32-libpulse package.
- If you want to use the OSS driver in Wine, you will need to install the lib32-alsa-oss package. The OSS driver in the kernel will not suffice.
- Games that use advanced sound systems (e.g. TESV: Skyrim) may additionally require installations of lib32-openal.
If winecfgstill fails to detect the audio driver (Selected driver: (none)), configure it via the registry. For example, in a case where the microphone was not working in a 32-bit Windows application on a 64-bit stock install of wine-1.9.7, this provided full access to the sound hardware (sound playback and mic): open regedit, look for the key HKEY_CURRENT_USER → Software → Wine → Drivers, and add a string called Audio and give it the value alsa. Also, it may help to recreate the prefix.
MIDI was a quite popular system for video games music in the 90's. If you are trying out old games, it is not uncommon that the music will not play out of the box.Wine has excellent MIDI support. However you first need to make it work on your host system, as explained in MIDI. Last but not least you need to make sure Wine will use the correct MIDI output.
- Some applications that play music may require lib32-mpg123.
- Some applications that use native image manipulation libraries may require lib32-giflib and lib32-libpng.
- Some applications that require encryption support may require lib32-gnutls.
- Some applications require 32-bit video codecs or the program crashes. Install lib32-gst-plugins-base, lib32-gst-plugins-good, lib32-gst-plugins-badAUR and lib32-gst-plugins-uglyAUR.
- Some applications that use NTLM authentication may require samba.
If Wine applications are not showing easily readable fonts, you may not have any fonts installed. To easily link all of the system fonts so they are accessible from wine:
Arch Linux Install Dmg File System
Wine uses FreeType to render fonts, and FreeType's defaults changed a few releases ago. Try using this environment setting for wine programs:
Another possibility is to install Microsoft's TrueType fonts into your wine prefix. See MS Fonts. If this does not help, try running
winetricks corefonts first, then
winetricks allfonts as a last resort.
After running such programs, kill all Wine servers and run
winecfg. Fonts should be legible now.
If the fonts look somehow smeared, import the following text file into the Wine registry with regedit:
For high resolution displays, you can adjust dpi values in winecfg.
See also Font configuration#Applications without fontconfig support.
Enable font smoothing
A good way to improve wine font rendering is to enable cleartype font smoothing.To enable 'Subpixel smoothing (ClearType) RGB':
For more information, check the original answer
Desktop launcher menus
When a Windows application installer creates a shortcut Wine creates a
.desktop file instead. The default locations for those files in Arch Linux are:
- Desktop shortcuts are put in
- Start menu shortcuts are put in
/usr/share/applications. See WineHQ bug 11112
wine winemenubuildermay be of some use.
Creating menu entries for Wine utilities
By default, installation of Wine does not create desktop menus/icons for the software which comes with Wine (e.g. for winecfg, winebrowser, etc). This can be achieved by installing wine-installerAUR or wine-installer-gitAUR meta-package (the latter has no additional dependencies), otherwise these instructions will add entries for these applications.
First, install a Windows program using Wine to create the base menu. After the base menu is created, you can create the following files in
And create the following file in
If these settings produce a ugly/non-existent icon, it means that there are no icons for these launchers in the icon set that you have enabled. You should replace the icon settings with the explicit location of the icon that you want. Clicking the icon in the launcher's properties menu will have the same effect. A great icon set that supports these shortcuts is GNOME-colors.
Removing menu entries
Menu entries created by Wine are located in
~/.local/share/applications/wine/Programs/. Remove the program's .desktop entry to remove the application from the menu.
In addition to remove unwanted extensions binding by Wine, execute the following commands (taken from the Wine website):
A similar to XP looking theme can be downloaded from here. To install it see here. Lastly use winecfg to select it.Wine staging users may instead want to try enabling the option Enable GTK3 Theming under the Staging section of winecfg for a theme that matches the current GTK theme.
In order to use your installed printers (both local and network) with wine applications in win32 prefixes (e.g. MS Word), install the lib32-libcups package, reboot wine (wineboot) and restart your wine application.
After installation, the lib32-gnutls package may need installed for applications making TLS or HTTPS connections to work.
For ICMP (ping), Wine may need the network access as described in the WineHQ FAQ:
If issues arise after this (such as an unhandled exception or privileged instruction), remove via:
See Wine FAQ and Wine User's Guide for general information on Wine usage.
See Wine Application Database (AppDB) for information on running Windows applications in Wine.
Tips and tricks
Often you may need to run .exe's to patch game files, for example a widescreen mod for an old game, and running the .exe normally through Wine might yield nothing happening. In this case, you can open a terminal and run the following command:
Then navigate to the directory and run the .exe file from there.
Winetricks is a script to allow one to install base requirements needed to run Windows programs. Installable components include DirectX 9.x, MSXML (required by Microsoft Office 2007 and Internet Explorer), Visual Runtime libraries and many more.
Install the winetricks package (or alternatively winetricks-gitAUR). Then run it with:
For using GUI you should install the zenity.
CSMT is a technology used by Wine to use a separate thread for the OpenGL calls to improve performance noticeably. Since Wine 3.2, CSMT is enabled by default. However, CSMT support needs to be enabled manually for Wine versions lower than 3.2. For vanilla Wine run
wine regedit and set the DWORD value for HKEY_CURRENT_USER -> Software > Wine > Direct3D > csmt to 0x01 (enabled). For wine-staging run
winecfg and enable it in the staging tab.
Note that CSMT may actually hurt performance for some applications - if this is the case, disable it by creating/setting the registry value to 0x00 (disabled).
- Phoronix Forum discussion with the CSMT developer Stefan Dösinger
Force OpenGL mode in games
Some games might have an OpenGL mode which may perform better than their default DirectX mode. While the steps to enable OpenGL rendering is application specific, many games accept the
You should of course refer to your application's documentation and Wine's AppDB for such application specific information.
DXVK is a promising new implementation for DirectX 9 through 11 over Vulkan. This should allow for greater performance, and in some cases, even better compatibility. Battlefield 1 for example, only runs under DXVK. On the other hand, DXVK does not support all Wine games (yet).
To use it, install dxvk-binAUR. Then run the following command to activate it in your Wineprefix (by default
With the open-source gallium-based drivers (mostly AMD cards) there is a Gallium Direct3D state tracker that aims to provide nearly-native performance for DirectX 9. In most cases it has less visual glitches than the upstream wine and doubles the performances. It consumes much less CPU time than CSMT.
Install wine-nine to use it. This is a standalone package that can be installed with any wine version. Use
wine ninewinecfg to check if it is enabled.
Unregister existing Wine file associations
By default, Wine takes over as the default application for a lot of formats. Some (e.g.
chm) are Windows-specific, and opening them with Wine can be a convenience. However, having other formats (e.g.
js) open in Wine's bare-bones simulations of Internet Explorer and Notepad can be annoying.
Wine's file associations are set in
wine-extension-extension.desktop files. Delete the files corresponding to the extensions you want to unregister. Or, to remove all wine extensions:
Next, remove the old cache:
And, update the cache:
Alternatively you can delete all wine related stuff:
And update the cache as above.
Please note Wine will still create new file associations and even recreate the file associations if the application sets the file associations again.
Arch Linux Download
Prevent Wine from creating filetype associations
This method prevents the creation of filetype associations but retains the creation of XDG .desktop files (that you might see e.g. in menus).
If you want to stop wine from creating filetype associations via winecfg you have to uncheck the 'Manage File Associations' checkbox under the Desktop Integration tab. See Wine FAQ
To make the same change via registry add the string
Enable with value
You might have to create the key
If you want to apply this by default for new WINEPREFIXES, edit
/usr/share/wine/wine.inf and add this line for example under the
To prevent a package upgrade from overriding the modified file, create a pacman hook to make the change automatically:
Execute Windows binaries with Wine implicitly
The wine package installs a binfmt file which will allows you to run Windows programs directly, e.g.
./myprogram.exe will launch as if you had typed
wine ./myprogram.exe. Service starts by default on boot, if you haven't rebooted after installing Wine you can start
systemd-binfmt.service to use it right away.
chmod +x windows-binary.
Dual Head with different resolutions
If you have issues with dual-head setups and different display resolutions you are probably missing lib32-libxrandr.
Also installing lib32-libxinerama might fix dual-head issues with wine (for example, unclickable buttons and menus of application in the right most or bottom most monitor, not redrawable interface of application in that zone, dragging mouse cursor state stucked after leaving application area).
Burning optical media
To burn CDs or DVDs, you will need to load the
Proper mounting of optical media images
Some applications will check for the optical media to be in drive. They may check for data only, in which case it might be enough to configure the corresponding path as being a CD-ROM drive in winecfg.However, other applications will look for a media name and/or a serial number, in which case the image has to be mounted with these special properties.
Some virtual drive tools do not handle these metadata, like fuse-based virtual drives (Acetoneiso for instance). CDEmu will handle it correctly.
Show FPS overlay in games
Wine features an embedded FPS monitor which works for all graphical applications if the environment variable
WINEDEBUG=fps is set. This will output the framerate to stdout. You can display the FPS on top of the window thanks to
osd_cat from the xosd package. See winefps.sh for a helper script.
Running Wine under a separate user account
It may be desirable to run Wine under a specifically created user account in order to reduce concerns about Windows applications having access to your home directory.
First, create a user account for Wine:
Now switch to another TTY and start your X WM or DE as you normally would or keep reading...
Afterwards, in order to open Wine applications using this new user account you need to add the new user to the X server permissions list:
Finally, you can run Wine via the following command, which uses
env to launch Wine with the environment variables it expects:
It is possible to automate the process of running Windows applications with Wine via this method by using a shell script as follows:
Wine applications can then be launched via:
Arch Linux Install Dmg File In Windows
In order to not be asked for a password each time Wine is run as another user the following entry can be added to the sudoers file:
mainuser ALL=(wineuser) NOPASSWD: ALL. See Sudo#Configuration for more information.
It is recommended to run
winecfg as the Wine user and remove all bindings for directories outside the home directory of the Wine user in the 'Desktop Integration' section of the configuration window so no program run with Wine has read access to any file outside the special user's home directory.
Keep in mind that audio will probably be non-functional in Wine programs which are run this way if PulseAudio is used. See PulseAudio/Examples#Allowing multiple users to use PulseAudio at the same time for information about allowing the Wine user to access the PulseAudio daemon of the principal user.
Temp directory on tmpfs
To prevent Wine from writing its temporary files to a physical disk, one can define an alternative location, like tmpfs. Remove Wine's default directory for temporary files and creating a symlink:
Prevent installing Mono/Gecko
If Gecko and/or Mono are not present on the system nor in the Wine prefix, Wine will prompt to download them from the internet. If you do not need Gecko and/or Mono, you might want to disable this dialog, by setting the
WINEDLLOVERRIDESenvironment variable to
Vulkan support is included, since Wine 3.3. The default Wine Vulkan ICD loader works fine for most applications, but does not support advanced features, like Vulkan layers. To use these features, you have to install the official Vulkan SDK, see step 2-4 on the original Vulkan patches author's GitHub page.
Remove Wine file bindings
For security reasons it may be useful to remove the preinstalled Wine bindings so Windows applications cannot be launched directly from a file manager or from the browser (Firefox offers to open EXE files directly with Wine!).If you want to do this, you may add the following to the
[options] section in
- Wine Application Database (AppDB) - Information about running specific Windows applications (Known issues, ratings, guides, etc tailored to specific applications)
- Wine Forums - A great place to ask questions after you have looked through the FAQ and AppDB