All About Wine: Run Windows Apps Under Linux

A couple months back, I was at home, working on some changes to my personal Web site. I wanted to see how my work in progress looked in Internet Explorer. On a Windows machine that's as easy as pie, of course, but on my Linux desktop it's not so simple. I usually grab my laptop and boot it into Windows if I need to check something in IE (or interact with a wrongheaded site that requires that browser), but this wasn't an option that day--so I apparently had no choice but to reboot my desktop (which dual boots), select Windows, fire up Internet Explorer, take a look, and boot back into Linux to continue my work.

Well, feh. I figured there had to be a better way. Google quickly proved I was right: IEs4Linux brings Internet Explorer to your Linux desktop, with nearly all its warts intact. IE versions 5, 5.5, and 6 are officially supported at the moment; a beta of IEs4Linux provides partial IE 7 support, with improvements in the works. But IE 6 is sufficient for my Web-authoring tasks, and with IEs4Linux I had it running pretty much flawlessly in just a few minutes.

IEs4Linux accomplishes its magic rather simply. As you might expect if you're up on this sort of thing, it actually lets Wine do the heavy lifting. Wine is a Free Software project that aims to reimplement the Windows API on Unix systems. English translation: Wine lets you run some (emphasis: some) Windows applications under Linux.

Wine does just fine with IE 6 if you lay the proper groundwork first--and IEs4Linux handles that job for you. Follow the installation instructions, and you'll see IEs4Linux download IE components directly from Microsoft's public servers (and the Flash Player from Macromedia), install and register them under Wine, and even put a funny little upside-down IE icon on your desktop. (During the installation script, you can accept all the default values; just answer the yes-or-no questions with a Y or an N and press Enter at the other prompts until you're done.)

Double-click the launcher (the aforementioned desktop icon) to experience IE under Linux. Your Firefox browser will be scoffing and making rude comments in no time at all.

Watching Wine run IE got me wondering what else it can run these days. Wine's Web site has an application compatibility database, but it isn't exhaustive or up-to-date. That page also links to Frank's Corner, a site with more application listings and assorted Wine tips--but it's also a little dated overall. So if you really wanna see if Wine will run something in particular, your best bet is to just give it a shot.

Plain-Vanilla Wine

First, make sure you have Wine installed. Open a Terminal window (on my Ubuntu Edgy Eft desktop, I select Applications, Accessories, Terminal), type wine, and press Enter. If the response includes 'command not found', step one for you is to use your distribution's package manager to install Wine.

Alternatively, if you're an Ubuntu user, install Automatix and use it to install Wine--you'll get a newer version than the ones available in the official Ubuntu repositories. Or head directly to the download page at WineHQ to see if any up-to-date packages are available for your distribution.

Once Wine is installed, enter winecfg in your Terminal window to bring up the Wine configuration dialog box. The first time you run winecfg, the dialog box may take a while to appear; don't fret, as Wine is just creating some folders and getting its bearings.

The Wine configuration dialog box. On this tab, I've told Wine which Linux folders to use when Windows applications go looking for folders like My Documents and My Pictures.
The Wine configuration dialog box. On this tab, I've told Wine which Linux folders to use when Windows applications go looking for folders like My Documents and My Pictures.
Take a quick look through the tabs of the configuration dialog box if you like, but the default settings should serve you well enough. You can click OK to exit it. You're now ready to try running something with Wine.

If your machine dual boots, you might have a Windows partition mounted under Linux. If so, you can try pointing Wine directly at a Windows program on that partition. This tactic is likely to work only with very simple, mostly self-contained applications. For instance, on my system I can type wine /media/c/winnt/notepad.exe, and Windows Notepad pops up. I'm not saying this is useful, mind you, I'm just illustrating one possibility here.

To try a more complex application, you'll need its installation file--the setup.exe (or equivalent) that puts everything in place. Feed that to Wine on the command line. For instance, I decided to try running 2nd Story Software's TaxAct Deluxe on Wine this year. (I've used TaxAct for years, figuring that since its interface is simpler--that is to say, comes with fewer multimedia bells and whistles--than TurboTax and TaxCut, it would play nice with Wine sooner than those alternatives. I've been let down every year ... until now.)

I downloaded the setup program--a file called ta06dxdw.exe--from 2nd Story and saved it on my desktop. Then, back in my Terminal, I typed wine Desktop/ta06dxdw.exe. The TaxAct setup proceeded without a hitch, and a TaxAct launcher appeared both on my desktop and in Gnome's Applications menu. I have yet to experience any problems running TaxAct under Wine. I'm as happy as a clam not having to reboot to do my yearly business with the IRS.

Who says Linux apps are hard to run? Wine's Application Uninstaller is about as simple as it gets.
Who says Linux apps are hard to run? Wine's Application Uninstaller is about as simple as it gets.
When you install a Windows application under Wine, everything gets put in a hidden .wine folder inside your home folder. To uninstall the applications that live there, you need an equivalent to 'Add or Remove Programs' in the Windows Control Panel. So, enter wine uninstaller in a Terminal. You'll see a very simple dialog box listing all the applications installed under Wine. The Uninstall button is your friend there.

Subscribe to the Best of TechHive Newsletter

Comments