Wednesday February 10, 2010 4:54 AM AEST

Installing WINE

  • Email a Friend
  • Print Page
 »
Installing WINE
By Leigh Cook
May 9, 2008
Tags: Installing | WINE | howto | tutorial

How to install WINE without spilling a drop

In our Linux gaming feature a couple of months ago we looked at Wine, the Windows compatibility layer that allows Linux users to run a number of Windows games, including recent hits like Team Fortress 2 and Call of Duty 4. It’s not the easiest thing to set up – not by a long shot, in fact – but that’s why we’re here. We’ll show you what Wine can do, how to get it working, and how to get the best out of it.

Removing the cork
The easiest way to get started with Wine is to install your distribution’s packages – ‘sudo apt-get install wine’ would do the job on Ubuntu, for instance. However, with the rapid pace of Wine’s development, these packages might be a few versions old. A good alternative is to use the official packages from the WineHQ download page, which are typically updated within days of each new Wine release. For most distributions, these are provided as repositories that you can add to your package manager, so you can easily keep up with new releases automatically.

Once it’s installed, you can run Windows .exe files by either double-clicking on them, or by running them at the command-line with the ‘wine’ command. For instance, if you have your Windows install handy, you could go to your ‘windows/system32’ folder and run:

wine sol.exe


Wine stores its data in the ‘.wine’ folder in your home directory, which is created the first time it’s run. Under this, there’s a ‘drive_c’ folder, which contains the contents of your virtual Windows system – any applications running under Wine see this as your C: drive, so it contains your ‘windows’ and ‘Program Files’ folders, among others.

Installing software under Wine is much the same as under Windows – just run the installer and step through. The files will be stored under your ‘.wine/drive_c’ folder, and on most distributions if the installer sets up shortcuts they’ll appear on the desktop or under your desktop menus. Alternatively, you can go in to your ‘.wine/drive_c’ folder and run the applications manually by double-clicking or using the ‘wine’ command.

For some games and applications, that’s all you need to do, but others will take a bit of tweaking. The best place to go for compatibility information, including the details on any tweaks required, is the Wine Application DB (appdb.winehq.org), but we’ll walk you through a few examples.

Steaming open The Orange Box
Valve’s games are the perfect starting point for jumping in to Wine: the Source engine runs well on Wine’s DirectX implementation, and using Steam gets around any disc-based copy protection issues. Follow these steps to get your Steam on:

1) Install the Gecko-based replacement for the MSHTML component, which Steam needs to render its internal web pages. It’s meant to install automatically when first requested, but this doesn’t always work with Steam, so it’s best to run Wine’s built-in ‘iexplore’ command instead:

wine iexplore http://winehq.org/


Close the browser window once the installation is complete.

2) Go to http://steampowered.com/ and download the Steam installer. Because it’s an MSI file, you need to launch it using Wine’s built-in MSI handler:

wine msiexec /i SteamInstall.msi


3) Step through the installer just as you would under Windows. When it’s complete, Steam should run automatically, but if not, you can launch it manually from Wine’s virtual C: drive:

cd “~/.wine/drive_c/Program Files/Steam”
wine Steam.exe


4) When Steam launches, log in to your account, and the main Steam window should appear.

Your existing purchases should be listed in the ‘My games’ tab as ‘Not Installed’, so you can re-download them for free. Alternatively, you can save yourself the bandwidth by copying the ‘steamapps’ folder from the Steam folder on your Windows drive to your new Wine Steam folder. Re-launch Steam after the copy, and your games should be ready to play.

Everything in The Orange Box should work without tweaking, though you may hit some performance snags or graphical glitches when using DirectX 9 features. The Source engine is nice and scalable though, so you can force games to run in DirectX 8 mode if required: just right-click on the game in the ‘My games’ tab, select Properties, click the ‘Set launch options...’ button, and enter ‘-dxlevel 81’.

 
 »
 
This article appeared in the April, 2008 issue of Atomic.

Want all the dirt on the Medal of Honor reboot, including PC multiplayer details, story, and AI coding, plus interviews with devs and real special ops vets?

This is the issue for you!

Plus liquid cooling made easy, budget gaming PC building guide, and a whole lot more. ON SALE NOW!
Comments

Be the first to comment on this article.
Thoughts on this article? Add a comment below.
Login or register to submit a comment.
Power to the PC
 
 
Kitlog
 
 
Atomic Magazine

Issue: 109 | February, 2010

Atomic is a magazine aimed squarely at computer enthusiasts, gamers, and serious PC upgraders.

Every month we bring you the latest reviews of new technology and PC components, in depth features on everything from overclocking to console hacking, and gaming previews and interviews.
 
Latest Comments
"Great aricle, and i thought it would be about low power psus and components.

in any ..."
by battlefield_gir | Feb 10, 2010 2:28 AM
 
"I like alot of the stuff inside, but outside, well i never really like lian li cases, dunno why."
by H3VIW8 | Feb 10, 2010 1:57 AM
 
"It's a fun play, but I found that once you got further down in the levels, Epic Leather Boots ..."
by Tezlin | Feb 9, 2010 8:59 PM
 
"I'm with you there Waltish."
by SceptreCore | Feb 9, 2010 5:53 PM
 
"ozacube, are they going to stick nVidia cards in tv's for the shutter glasses?"
by bozo01 | Feb 9, 2010 11:18 AM
1) Apple iPhone 8GB42 plans 15%
2) HTC Magic16 plans 12%
3) Nokia N9743 plans 12%
4) Nokia E7149 plans 20%
5) Apple iPhone 3GS 16GB30 plans 58%
1) iiNet32 plans 37%
2) Netspace36 plans 8%
3) TPG Internet19 plans 20%
4) Telstra BigPond30 plans 20%
5) Optus33 plans 11%

Mobiles | Broadband | Credit Cards

Atomic MPC
Latest User Reviews
Shenmue II
10%
asdfasdf
 
EVGA X58 Classified
90%
great board, a few things could be better
 
EVGA X58 Classified
90%
Gorgeous looking
 
Sapphire 4890
90%
So good, I immediately wanted a second one!
 
MSI 790FX-GD70 motherboard
90%
Allmost the prefect gaming board