Windows Apps on Linux with Wine
Extra Resources
If you've looked inside the .drive_c/windows/
directory of your Wine installations, you might have noticed a few .exe
files. Yes, Wine includes simple versions of Windows Explorer, Notepad, and Regedit (Figure 4). Regedit is especially useful for fine-tuning settings and fixing compatibility issues. You can run it in place by simply entering:
wine regedit.exe
An especially useful online resource for checking compatibility of programs under Wine is the Wine AppDB [5]. You can see that apps have different ratings, such as platinum (runs perfectly without any Wine tweaking required), gold (runs perfectly but needs come configuration), silver (has minor issues but is otherwise usable), and so forth.
Use the search bar to find the apps you want to use, and check whether other Wine users have made any comments at the bottom of the page; they often contain useful tips and tricks for that specific app. If you've had success getting a program to run, but it's not listed in this compatibility database, click Submit App in the menu on the left to add a new entry and describe how well it works and what you had to do.
Last, I'll give a quick mention to Winetricks [6], an "easy way to work around problems in Wine." Winetricks is a script that assists with the installation and setup of some common apps. To get it, click the link for the latest version from the website, which will display a plain text file called winetricks
in your browser. Save this to your home directory and run it:
sh winetricks
A menu will appear offering to help you install apps or games (Figure 5), so just choose what you want to do and follow the instructions.
Winetricks can save you a huge amount of time if you need to install many programs in Wine, but it's still important to know how Wine works under the hood – hence the "do it yourself" approach described earlier. With this knowledge and Winetricks at your disposal, you're in a strong position to help move friends and colleagues off Windows for good (see the "Alternatives to Wine" box for more information).
Let us know how you get on!
Alternatives to Wine
If classic MS-DOS games float your boat, it's worth checking out DOSBox [7]. This is a fully fledged emulator that includes a virtual x86 processor and basic implementation of DOS, and it is capable of running a huge number of old DOS games. Install it from your distro's package manager and then start it by simply providing a directory as follows:
dosbox mydir
This starts a new DOS session, with the C:
directory mapped to mydir
(or whatever you specified). Now you can enter the good old dir
command to view files inside the directory or run a program. If you're running a game and DOSBox grabs control of your mouse pointer, hit Ctrl+F10 to get it back.
DOSBox is highly configurable: You can change how fast the emulated CPU runs, customize the virtual video and audio devices, and much more. The DOSBox wiki [8] at is packed with information on fine-tuning the emulator, so take a look. Oh, and it's even possible to run Windows 3.1 inside DOSBox [9].
Another alternative to Wine – or more precisely, a commercial version of Wine – is CrossOver [10]. CrossOver is like a value-added version of Wine with extra compatibility patches, configuration tools, and other bits 'n bobs. So, if you're having trouble getting something to work under Wine or need support, it's worth investigating. Plus, changes to CrossOver are rolled back in to the Wine codebase, so the original open source project benefits.
Infos
- Wine download: https://www.winehq.org/download
- Building Wine: https://wiki.winehq.org/Building_Wine
- MineZ: http://windrealm.org/minesweeper/
- AbiWord: http://www.abisource.com/download/
- Wine AppDB: https://appdb.winehq.org
- Winetricks: https://github.com/Winetricks/winetricks
- DOSBox: http://www.dosbox.com
- DOSBox wiki: http://www.dosbox.com/wiki
- Run Windows 3.1 in DOSBox: https://joshmccarty.com/2013/08/run-windows-3-1-in-dosbox/
- CrossOver: https://www.codeweavers.com
« Previous 1 2
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
-
Gnome 47.1 Released with a Few Fixes
The latest release of the Gnome desktop is all about fixing a few nagging issues and not about bringing new features into the mix.
-
System76 Unveils an Ampere-Powered Thelio Desktop
If you're looking for a new desktop system for developing autonomous driving and software-defined vehicle solutions. System76 has you covered.
-
VirtualBox 7.1.4 Includes Initial Support for Linux kernel 6.12
The latest version of VirtualBox has arrived and it not only adds initial support for kernel 6.12 but another feature that will make using the virtual machine tool much easier.
-
New Slimbook EVO with Raw AMD Ryzen Power
If you're looking for serious power in a 14" ultrabook that is powered by Linux, Slimbook has just the thing for you.
-
The Gnome Foundation Struggling to Stay Afloat
The foundation behind the Gnome desktop environment is having to go through some serious belt-tightening due to continued financial problems.
-
Thousands of Linux Servers Infected with Stealth Malware Since 2021
Perfctl is capable of remaining undetected, which makes it dangerous and hard to mitigate.
-
Halcyon Creates Anti-Ransomware Protection for Linux
As more Linux systems are targeted by ransomware, Halcyon is stepping up its protection.
-
Valve and Arch Linux Announce Collaboration
Valve and Arch have come together for two projects that will have a serious impact on the Linux distribution.
-
Hacker Successfully Runs Linux on a CPU from the Early ‘70s
From the office of "Look what I can do," Dmitry Grinberg was able to get Linux running on a processor that was created in 1971.
-
OSI and LPI Form Strategic Alliance
With a goal of strengthening Linux and open source communities, this new alliance aims to nurture the growth of more highly skilled professionals.