Running Windows programs on Linux with Wine
Tell Me Your Name
By default, Wine stores any Windows programs that think they are installing on drive C: in a hidden subdirectory below your home directory. To display the hidden files, select View | Show Hidden Files in Konqueror or Dolphin. Change directory to .wine in your home directory. One level below this, you will see a drive_c subdirectory, and below this Program Files and Windows. The former contains the application you just installed. For WinRAR, you click on WinRAR.exe in the WinRAR folder. On openSUSE, you also must type wine.
Directory Jungle
Unlike Windows, Linux does not use drive letters, so Wine must use a workaround: Each drive letter maps to a Linux directory. Although a Windows program running on Wine thinks it is storing data on drive C:, it is writing to a subdirectory called .wine/drive_c below the home directory. The Wine control center shows which letter maps to which directory. In a quick launcher (Alt+F2) type winecfg, then visit the Drives tab (Figure 7). The list at the top shows you which drive letter maps to which Linux directory. Normally, C: maps to .wine/drive_c, and Z: lets the Windows application access the whole directory tree because it maps to the root directory. Here, you can Add mappings by defining new virtual drive letters and typing the Path the letter should point to.
Dead as a Dodo
If a Windows program fails to launch when you click it, some manual attention might make it see reason. Start by opening a terminal window. On Kubuntu, select System | Konsole in the start menu; if you have openSUSE, select the System | Terminals | Konsole item in the menu. Then type
cd directory
where directory represents the full path to your installation program. If the setup.exe file is on a DVD, you can access the DVD via the /media/ path. The command line looks like this:
cd /media/DVD_name
Replace DVD_name with the entry in your media directory, and then climb down the directory tree until you find the directory with the .exe file you need (in WinRAR's case, this is /programs/other/winrar). When you get there, type
wine file
replacing file with the name of the application you want to run, say, setup.exe. Make sure you stick to the exact spelling, remembering that upper- and lowercase letters are vital. To tell Wine to run the Windows program, press Enter again. If you experience difficulty launching the program, check the terminal window for error messages – you should not close the terminal window or you will terminate the Windows program running in it. If the Windows program crashes, you can try relaunching it.
VistaXP 98
Some Windows programs require the characteristics of a specific version of Windows. The Applications tab can help you cater to this. For each application, you can individually define the Windows version that Wine should emulate. To do so, click Add application and look for the executable for your application (in .wine/drive_c).
Now click Open, select the application in the list, and then select the required version of Windows in the Windows Version drop-down list. The configuration in Default Settings is valid for all Windows applications, unless you define an exception.
Apps Gone Bad
The Wine MIT license gives users many privileges, a fact that has helped TransGaming generate huge profits. TransGaming just grabbed the package, added DirectX capabilities, which are required for gaming, and started to sell the results as Cedega [3] (formerly WineX). The Wine developers were unhappy about this, and thus changed the licensing terms to the LGPL in March 2002. The LGPL ensures that you can continue to use Wine for commercial purposes, but that changes and additions must be given back to the project. CodeWeavers is exemplary in this respect; the company bundled Wine with its own commercial components to create the CrossOver [4] package, while actively promoting the ongoing development of Wine.
« Previous 1 2 3 4 Next »
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.
-
ZorinOS 17.1 Released, Includes Improved Windows App Support
If you need or desire to run Windows applications on Linux, there's one distribution intent on making that easier for you and its new release further improves that feature.
-
Linux Market Share Surpasses 4% for the First Time
Look out Windows and macOS, Linux is on the rise and has even topped ChromeOS to become the fourth most widely used OS around the globe.
-
KDE’s Plasma 6 Officially Available
KDE’s Plasma 6.0 "Megarelease" has happened, and it's brimming with new features, polish, and performance.
-
Latest Version of Tails Unleashed
Tails 6.0 is based on Debian 12 and includes GNOME 43.
-
KDE Announces New Slimbook V with Plenty of Power and KDE’s Plasma 6
If you're a fan of KDE Plasma, you'll be thrilled to hear they've announced a new Slimbook with an AMD CPU and the latest version of KDE Plasma desktop.
-
Monthly Sponsorship Includes Early Access to elementary OS 8
If you want to get a glimpse of what's in the pipeline for elementary OS 8, just set up a monthly sponsorship to help fund its continued existence.