- Install Windows Games On A Using Wine Cooler
- Install Windows Games On A Using Wine Barrel
- Install Windows Games On A Using Wine Glasses
Dec 07, 2019 How To Install Wine And Run Windows Apps In Linux by Sohail December 7, 2019 December 7, 2019 0 All kinds of software are currently available on Linux but every now and then, there is that Windows software or Game which is not available or has no equivalent on Linux Wine makes it possible to run those Windows programs and Games on your Linux.
- Wine is the only stable way in the free and open-source world to install Windows 10//7/xp applications on Linux operating system. However, not much user friendly. Thus to make it easy to use and simplify the process of installing Windows apps “Bottles” is here.
- May 13, 2016 As happens in Windows the installer installs the main game.exe file in the created directory, to run you game redirect Wine to that launcher: WINEPREFIX=/game1 wine /game1/drivec/game1-directory/game1-launcher.exe.
World of Warcraft is sometimes a little troublesome in Wine, although it is usually OK. In Cedega, it runs better than in Windows. Since it is a Windows game and requires an emulator in order to run on Linux, that doesn't say a lot for the overhead caused by using Windows.
I have had it running successfully in Kubuntu, PCLinuxOS, Slackware 12, CentOS and SuSE 10.1.
I also tried Crossover, which was not as successful. Although it may be good for office systems, with games I found it no better than the free version of Wine. In fact, the only program which ran flawlessly in Crossover was the Palm Books eReader - which Crossover do not support. Oddly enough, this runs flawlessly in Wine as well - so it is probably just a very well-behaved application.
I am not trying to put Crossover down. From the applications they list, it is clear they are aiming for the office market. Cedega always have aimed more for games support (since back when they were called WineX). That just happens to be what I was looking for.
For games support, I would say Cedega seems well worth the money. Nonetheless, the free version of Wine is pretty amazing as well. To see a Windows application running on a Linux system better and faster than on Windows is still pretty amazing. It would be much better if developers released Linux versions of their games (as Bioware did for NWN - although not for NWN2). Until they do, Wine and the various commercial flavours of it are the best we can hope for. Perhaps Apple might actually have done us a favour - after all, MacOS X is essentially Linux as far as I can see. Maybe Games developers will produce Mac versions of their games - which might lead to Linux ones as well. I admit I don't know much about games availability for the Mac - nor much about the Macs themselves unfortunately - so this might not be much help in reality.
As for how to install a game in Wine - just type 'wine setup.exe', or whatever the installation executable is, in a console session. For Cedega, you run the Gui and click 'Install'. In each case, the Installer runs (if you are lucky), just as in Windows. Some games have minor issues, either when installing or running them. For example, in WoW, you need to select the OSS sound option rather than ALSA, or the Installer crashes. It seems to work if you go back to ALSA after it has installed, although OSS also works and gives sound in the game. WoW seems to prefer that you do not use the Launcher, especially in Wine - although Cedega usually copes even with the Launcher. You can turn off the Launcher option in the WoW login screen, even though it now defaults to 'on' rather than 'off' as it used to do.
Hope that helps - happy gaming in Linux. Many thanks to the guys behind Wine.
Updated: January 13, 2010
Would you like to play the latest and greatest Windows games? Sure. In Linux? Sure. Now comes the tricky question, how exactly do you do that? Linux uses OpenGL, whereas most Windows games rely on DirectX. No problem. That's what Wine is made for.
Introduction
I've mentioned Wine in my Linux gaming mega howto, as one of the tools that allow you to run Windows games in Linux, for whatever reason you may want to do so. The results may vary and may not be perfect, but you can still manage a handsome array of games easily.
What prompted me to try running one of the Windows heavyweight games on Linux was the pure simple hardware limitation. The game in question was Tropico 3, a fabulous dictatorship simulation with some pretty hefty requirements, including 2GB of RAM and at least 256MB Nvidia 6600GT card. As it turns out, my two older Athlons both running Windows and equipped with Nvidia 6600GT and 7600GT cards were not exactly tailored for this game. But if you recall, I've just recently bought myself a shiny new laptop, with the powerful Nvidia 9600GS card with 512MB VRAM. So I figured, what the hell, it's worth a try.
What I did was install DirectX 9.0c in Linux using Wine and then installed Tropico 3. Lo and behold, it works, beautifully. I can play the game with details set to high without any problems or glitches, everything runs smoothly and even the sound quality is great.
In this article, you will learn how to install DirectX using Wine. It's not simple, but it's not difficult either. And then, the world's your oyster. I hope you will enjoy this guide, plus you get a few dandy Tropico 3 screenshots. A full review will come later. Follow me.
Install Wine
This is simple. Just open the package manager and install the software.
Configure DirectX libraries
This is the most complicated step of all. But do not worry, you get everything, step by step. Launch Wine configuration. You can either do it via the Application menu in your distro, Wine > Configure Wine or by running winecfg from the command line. Once the main menu opens, click on the Libraries tab.
This tab allows you to specify the behavior of different DLLs and override the possible defaults. To get DirectX running, you will need a long list of DLLs listed. The first step is to click on the New override dropdown box icon and expand the list. Search for the d3d8 DLL. Once found, click Add.
It will be added to the Existing overrides list like this: d3d8 (builtin,native). This is not what we need. Therefore, you must select the DLL in the list and click Edit. Then, change the configuration to builtin only.
There's a very long list of DLLs and specifying them manually would be a torture. Luckily, you can hack the Wine registry directly and add the desired overrides as a list into the file, without going through the manual process of specifying each one using the GUI. To edit the registry, open the file in text editor (e.g. gedit):
gedit ~/.wine/user.reg
In the file, look for the section labeled DllOverrides:
In this section, you can copy & paste the entire list of DLL overrides required. You can find the entire list in this great article. Copy the entire selection, save the file and exit. The next time you launch Wine configuration, the overrides will be loaded. Eventually, you'll see something like this:
This is the first step. Now, we need to setup some core files.
Setup core files
These files may or may not be required, but it does not hurt to have them anyway. The two files in question are mscoree.dll and streamci.dll. The first is a module containing .NET Framework functions, the second is a library used to install streaming hardware devices. You can copy these files from your Windows installations, if you have some, or download them from the web. A good online source that offers these file is DLL-files.com.
General advice
In general, when you have to download DLLs or similar files from the web, it is always a good idea to stick to reputable sources, compare the file size and hash to those advertised by Microsoft and perhaps even upload the files to Jotti or VirusTotal for a perfunctory scan. You can also check the reputation of the website serving DLLs using a community service like Web of Trust (WOT). In this case, DLL-files gets a pretty decent score.
Anyhow, back to our topic, download the two files and copy them to the Wine system32 folder.
cp mscoree.dll ~/.wine/drive_c/windows/system32/
cp streamci.dll ~/.wine/drive_c/windows/system32/
The next step is to download the DirectX 9.0c redistributable package.
Download DirectX 9.0c
You need the redistributable package, because the installation won't handle the online installer well. Once the file is downloaded, run the executable with Wine. Note: Microsoft tends to change the download links now and then, so if the link above is broken, Google for it.
wine directx_9c_redist.exe
This will start a wizard, which will ask you to accept the license and extract the files to a folder. Choose any folder and extract the files there.
Install DirectX 9.0c
Navigate to the folder and run the actual DirectX setup:
wine dxsetup.exe
The installer should complete without any problems. It will ask you to reboot, but you do not need to do that.
Test DirectX 9.0c
Now, let's test. Go to the system32 folder (inside the .wine folder) and run dxdiag.exe.
wine ~/.wine/drive_c/windows/system32/dxdiag.exe
If everything went as it should, you should have DirectX setup and enabled. You can ignore most of the device and driver information, since we're doing a rather decent hack here.
Setup Direct Music
If you also want to have enhanced sound effects and whatnot, you will need another driver. The file in question is called gm.dls and you can find it listed on several websites, available for download. Again, use discretion when downloading files like this. Make sure they are digitally signed by Microsoft, with the proper size and hash value. Likewise, checking these files against Jotti or VirusTotal may not hurt. If you have Windows installed, look for the file on your machine. Copy the file to system32/drivers:
cp gm.dls ~/.wine/drive_c/windows/system32/drivers/
After doing this, rerun dxdiag and check the Music tab.
Setup additional files
Your games may also require additional DLLs that are not found above. You will discover this only after installing them and running them, which is the step below. If you have already found online references that mention additional DLLs are needed for your games, then you can install them before trying the game, saving yourself time.
For example, Tropico 3 requires d3dx9_41.dll, without which the game start will fail. The above subset includes only d3dx9_24.dll and d3dx9_36.dll, but not the latest one. No worries, head to DLL-files.com and download the missing item(s).
Install and test your games!
Time to try your games. In my case, Tropico 3 installed without any problems, followed by the 1.04 patch, which solves lots of issues in the original game. Starting the game without the d3dx9_41.dll resulted in a failure, but once I copied the missing item into the system32 folder, everything worked fine. The game runs smoothly even on high level - considering the hacks we just did, this is impressive. The sound quality is great. The game is stable. It's really a pleasure. A real blast!
What more, you can make things faster even more!
Install Windows Games On A Using Wine Cooler
Tweaks
Install Windows Games On A Using Wine Barrel
Wine prints lots of debugging messages to the console, slowing things down a bit. You can definitely improve the performance by prepending a Wine debug environment variable to the wine command line, allowing yourself even more Frames Per Second (FPS) in your games.
Just run the game executable like this:
WINEDEBUG=-all wine <game-executable>
Example:
WINEDEBUG=-all wine Tropico3.exe
Conclusion
There you go, a perfect, foolproof tutorial to how you can configure and install DirectX in Linux. It's not easy and definitely not meant for new users, but if you're willing to invest some time, you can definitely expand the range of possibilities your Linux system offers you.
Install Windows Games On A Using Wine Glasses
Many thanks to wine-reviews.net for compiling a great reference! Well, that would be all. Stay tuned for Tropico reviews. I'm going to write both about the new game as well as the older, Tropico 2: Pirate Cove.
Cheers.