Wine

As I mentioned previously, Ubuntu doesn’t always have an application that fits my needs. Sometimes what I really need is a Windows application but I don’t want to have to boot back in to Windows to get it. The surefire solution to this kind of dilemma is to set up a Windows installation in a virtual machine (Parallels, VMWare, or VirtualBox), but virtual machines are slow to boot, and consume fair amounts of both disk space and RAM. As it turns out, there’s a better solution: Wine.

“Wine is a translation layer (a program loader) capable of running Windows applications on Linux and other POSIX compatible operating systems.” Unlike a virtual machine, Wine doesn’t install or run a complete copy of Windows in the background, rather it’s an implementation of the Win32 API designed to sit on top of *nix operating systems. The compatibility isn’t nearly as good as a virtual machine, but the trade-offs of lower resource usage and faster loading times are worth it. If I can use Wine rather than a virtual machine, then that’s the way I want to go.

I should note that Wine is anything but new (it’s some 16 years old now) and it’s pretty common too. Fully supported versions of it are sold as a product focusing on business applications (Crossover) and there’s quite a number of not-quite-native Mac games that are really Windows games with a Wine-based wrapper (Cider). But it’s definitely new to me. And I should note (having learned this the hard way) that Wine is not an emulator – the Ubuntu community really hates having it called that.

I originally intended to use Wine for 3 things:

  1. iTunes, so that I could sync my iPhone
  2. Games, in order to avoid the primary reason I dual boot
  3. Microsoft Office

iTunes was a long-shot in the first place, and it should not come as a surprise that it didn’t work. I had to settle on dual booting whenever I needed to sync (a virtual machine would have also worked, but I didn’t want to have to deal with two sync databases).

Gaming was a crap-shoot. I’m actually not going to spend too much time talking about this because we’re going to go much more in depth on this in our next piece, but I’ll mention it quickly to discuss usability. The two games I had a particular interest in were Supreme Commander: Forged Alliance, and Team Fortress 2.

The performance on both games was below that on Windows. In the case of Team Fortress 2 running it with DirectX 9 graphics (Shader Model 2/3) was unbearably slow, and with DirectX 8.1 graphics it’s unbearably ugly (this being a product of TF2 simply looking a great deal worse without DX9 functionality). Technically I could play TF2, but it was going to be rougher than I could settle for.

As for Supreme Commander, the speed issue can be particularly problematic. The game is a CPU-eating monster, and it takes nearly everything it can get for its intricate simulations and AI routines. The loss here is that for whatever reason when bogged down the simulation speed was noticeably slower than under Windows, which while not technically unplayable can make a game so slow that it’s not practical to finish it. The other issue was minor graphical corruption with the icons; this was not a game breaker, but it was another sign to go back to Windows.

Now to the credit of the Wine development community, there are a number of games that apparently work well under Wine according to their application database, however the games I wanted on the hardware I had were not functioning as well as I’d like. Wine wasn’t going to meet my gaming needs. When we do Part 2 of our Ubuntu series and take a look at 9.04 Jaunty Jackalope, we’ll take a more concentrated look at gaming inside and outside of Wine.

Finally, we have the success story in my use of Wine, Microsoft Office. As I stated previously when discussing OpenOffice, in spite of its abilities I missed Microsoft Office’s Ribbon UI. As Wine supports Word and Excel well enough to meet my needs, I was able to install those applications and use them as I would regularly use them under Windows. Their behavior under Wine isn’t perfect, as Wine’s application database will attest to, but the problems are not something that I encountered on a day-to-day basis. The biggest difference is that Wine + Ubuntu doesn’t have the same fine level of font anti-aliasing that Vista does, which makes it look slightly different. Meanwhile Outlook wasn’t as well behaved, but I already had Evolution which covered my needs in the first place.

Along with Microsoft Office, I also threw a few other assorted applications at Wine, which it handled without an issue. This includes some .Net 2.0 applications, which after installing the .Net framework in to Wine worked, and was not something I was seriously expecting. Although I wasn’t able to use Wine for everything I needed, it had a lot to do with keeping me in Ubuntu more often.

Things That Went Right The User Experience
Comments Locked

195 Comments

View All Comments

  • tabuvudu - Saturday, August 29, 2009 - link

    The article is a good job overall. Below are a few of my own observations concerning the article and linux in general.

    ###Package manager
    I never used Ubuntu, so cannot comment on apt. I tried SuSE, mandriva and eventually ended up with Gentoo. I think package managers are the best part of linux. Gentoo's portage and 'emerge --sync' allows you to be always up-to-date in terms of software, no need to ever reinstall the system. It is CLI-based and sometimes you do have to play a bit with USE-flags and compatibility, but in general 99.99% of my software needs can be satisfied by portage.

    ###Command Line Interface
    For my home needs I switched from windows to linux about 4 years ago. At work I still use windows, but that is due to corporate policies rather than preference. Originally CLI was something terrifying. It took me some time to learn and adapt, but now I do most of system tasks in CLI.

    ###Video drivers
    I does take some effort when doing something non-standard (1080p projector connected to HDMI via av-receiver). But in general in gentoo it is usually as easy as typing 'emerge [nvidia]/[ati]-drivers'. Even double-monitor setups, which I have two. Dont forget the open-source xorg drivers, which are usually fine for simple desktop and come pre-bundled.

    ###Gaming...
    ...is much harder under linux. In my case not relevant, as I spent less than 1% of my time to that over the past 2 years. Others may find this a real obstacle for migration.

    ###Syncing...
    ...your devices is also a headache. I even once succeeded in syncing my windows mobile 5 device with evolution. But amount of efforts taken for that was far too great. I never even tried syncing my nokia phones after that.

    ###Usage scenarios
    I think you judge Ubuntu (and linux in general) in very windows-centric usage patterns. Ubuntu is unlikely to out-windows the original, although OSX seems to have done just that. Even the approach is windows-centric - you take a windows app and compare linux against it. The point is that linux in general allows user to open and develop completely different usage scenarios, which are beyond windows. Allow me to elaborate on the basis of my own experience.

    ###In search of killer app...
    You note in the article that there is no linux killer app. I disagree.
    1. I run linux homeserver. It has proxy (squid) and attached antivirus filter (clamav+squidclamav). It has array of software raid (mdadm). I also run web-server (apache) with gallery of photos (gallery2). There is a mail server (postfix) for a few accounts. Filesharing is done via nfs and samba. Finally I run mythtv backend server with 4 tuners. I never tried to replicate this software stack in windows, it is likely possible but require some pretty expensive licenses. Some of the thing like mythtv server are impossible under windows to the best of my knowledge.

    2. dvdrip + transcode allows me to rip dvds and transcode them simultaneously on 4 client machines with total 12 processing cores. Transcoding is usually done under 15 mins.

    3. I mentioned mythtv. I have centralised server and a number of clients. TV at the house is done via LAN, i.e. small x86 boxes with output to TV screen. Integrated mythtv client interface allows watching movies or listening to music from central storage, light browsing and so on at every TV.

    4. The small x86 boxes are network-booted from server (in.tftpd + nfs). This allows easy management of software, i.e. single image for all clients. Never tried that under windows, likely possible but costly.

    5. One of the clients is an HP thin-client with only 1G of local storage. I ended up network-booting it anyway, but initially compiled a full gentoo system (kernel, X, fully-fledged window manager (XFCE-4), mythtv client, browser (firefox), mail client (claws-mail), media player (mplayer + GUI)) under 1G. If I spent a bit more time, I think I could even fit office in that space. Not possible under windows.

    6. There are other things that i have not even explored. Like asterisk for ip telephony. Or projects like opengoo, which allow you to run your own server-based set of office apps.

    ###The bottomline
    I think a fair comparison should not focus on things that windows is known to do best. I think getting familiar with linux will enable one to find his own killer app, which cant be replicated in windows at reasonable cost. But this would require a reasonable time and efforts, which are beyond the scope of the article.

  • tabuvudu - Saturday, August 29, 2009 - link

    a couple of more things which i forgot to mention in my previous post:

    ###mounting network shares
    your troubles seemed quite strange to me. Maybe this is because of Ubuntu implementation. This is usually done very well by linux. I do it in /etc/fstab. I agree with some previous posters, this is largely due to lack of linux experience, so should not be used in final assessment.

    ###benchmarks
    are quite useless. I dont think you should dedicate much time in the article to that. For majority of desktop applications, plus or minus 10-15% does not make much difference.

    ###other interesting projects
    another example of ltsp. Again, there are alternatives in windows, but licensed and pricey.
  • Kjella - Friday, August 28, 2009 - link

    If you have a Windows CD lying around I highly recommend using virtualbox and installing Windows on it. For any low-performance application it'll work 100%, but it's not made for gaming. But except for gaming it should reduce your dual boot time to near zero. WINE is great for hackers and idealists but unless the application got a platinum/gold rating new users should not use it.

    As for support time, let me put it this way... do you keep XP for 10 years to run 10 year old installations? As the distro is for the most time supplying the applications, it's like being stuck ten years in the past. This is more like a free upgrade from Office 97 -> XP (2000) -> 2003 -> 2007 -> 2010 every few years.

    Is it pefect? No. But a lot of it is that Canonical can't tell you the easy ways of fixing things. Most of the things on this page should be done first time you boot a fresh Ubuntu install:

    https://help.ubuntu.com/community/RestrictedFormat...">https://help.ubuntu.com/community/RestrictedFormat...

    Good luck to everyone that feel like trying :)
  • yasbane - Friday, August 28, 2009 - link

    It's great to see Linux on the front page of Anandtech once again!

    Linux use on the Desktop is getting more attention, and its use is growing (though still only a very small fraction of the total market). I'm a huge fan of Linux (as well as Solaris and BSD), and I found Ryan's review very fair and informative. As with any OS, it is important to accept weaknesses as well as strengths, so that it can grow and improve. The strength of Linux has mostly been in the server world, but especially in the last couple of years, it has become much more user friendly on the desktop. These days, I have been able to install it on machines for people with no prior familiarity of Linux, and have found, in most cases no significant issues. There are definitely still things that can be improved though, (audio issues are the biggest one), but overall it is good news. Some people have commented 'Why bother? Windows does everything I need!', but I think competition is a good thing for desktop computing (and just about anywhere), as the saga of Internet Explorer's decline in the demise of Netscape proved. Mac OS X of course is there, especially at the higher end, but Linux is also beginning to make an impact on generic hardware (Netbooks being a good example), which has meant that Microsoft has had to lift its game and drop prices.

    To answer Ryan's question, in terms of what I would like to see for Linux on Anandtech: in addition to benchmarks for consumer hardware running Linux, guides such as building a home server or HTPC, where using Linux is an appropriate option, alongside Mac or Windows; for some things, such as gaming there's much less point of course. IT Anandtech used to feature Linux server and virtualisation benchmarks, which made a lot of sense since Linux's greatest strength is in servers, although these benchmarks and reviews have been mysteriously absent lately. And of course, news from the world of Linux, such as new products with Linux on them, new kernel features, popular distro releases such as Ubuntu, and general headlines (e.g., Dell's recent comment that netbook return rates were no higher for Linux than for Windows).

    Great to read the comments. Many thanks, Anandtech!

  • beginner99 - Friday, August 28, 2009 - link

    This explains why I'm not using and won't use Linux in the near future for my regular PC. As long as I need windows anyway (and pay) there is for me even as "above average" user no need for Linux. I think I can do anything I need on windows, so why should I get Linux additionally to Windows? Makes no sense for me and not for most other users that are not developers, geeks or idealists.
    That will only change if you do not need windows at all, eg. you can game on Linux with same performance than on windows.

    The only thing I can imagine using Linux is on a HTPC. Take one of the new ION nettops without OS and put on LinuxMCE or Linux with XBMC. But I have no idea how easy that is and how good it works. But there I would really benefit from the fact that Linux is free. (else the whole price will go up by like by 50% ;)).
    I might actually try.
  • kc77 - Friday, August 28, 2009 - link

    As someone who has used Ubuntu primarily for at least 4 years now I can say there are things that only come with time. Namely what applications to use for what. I primarily use Ubuntu because out of the box it installs most of the stuff I need right out of the box. However, that doesn't mean it installs EVERYTHING you need. Particularly when it comes to audio management. That package manager is your GOD in more ways than one once you realize that aside from running the latest drivers (which aside from us there aren't many other people that do and you aren't gaming on Linux unless you are using Cedega or Crossover) it provides you really with just about any program you need.

    So...
    Audio Management - Remember you can mix and match KDE/Gnome. So for this I would use Amarok 1.4. It can sync with iPods and offers the ability to have your music collection residing in a SQL database. That alone had me smiling for days. I have about 70GB of music which it can catalog in about 5 min. Try that in iTunes or WMP. With it being in MYSQL any program I want to have access to my
    collection can. In 9.04 you'll need to add the repository as it installs 2.0 of Amarok by default (which isn't as feature rich).

    As an aside, Rhythmbox can now rip from inside the program. It might just be because you are using 8.04 but I know it does it now. However, Sound Juicer gives you more options with MP3 Tags as well as file types.

    Video Editing / Mastering

    If you want a program like Nero Vision, check out Devede, ManDVD is pretty good for DVD mastering. Both of those should be in the Package Manager. If they aren't their web sites offer debs. Just download and double-click.

    Burning
    If you don't like Brasero head to the package manager and get K3B. It's about as close to Nero as one can get.

    SMB
    The problems you've experienced are due to version. Browsing the root of a server has been fixed. It takes a little longer for the shares to appear than I would like it to, but it does work now.
    Mapping "drives" as it were depends on the route you take. "Connect to Server" I believe creates a mount point under your media folder. I really haven't had much of a problem with this as most programs do recognize bookmarks, and for all of my shares one of the first things I do is set it in my FSTAB which essentially hard links my shares which avoids the problem entirely as every program can see a mount point. Basically there's about 5 different ways to go about this issue just choose the one that works best.

    ISOs
    One thing with ISO is that File Roller reads them natively. So unzip it and install from there. It's not like hard drive space is scare now a days.

    Customization
    My closing thought is that remember Ubuntu is not Gnome. Meaning that Ubuntu just creates the packages for it's distribution. Everything in linux is customizable. Don't like the bar at the bottom? Delete it. Want a tray like OSX? There's tons to choose from. I've done some OS modding and I can make Gnome look like Windows XP or Mac OSx (and mimic it's functionality). You aren't limited here.

    Thats' the thing with linux the more time you spend (and really I'm talking about days here not months) the more programs you'll come across which will do what you want. Don't like Transmission? Use Ktorrent. Hell even Utorrent works very well with Wine.


    Overall I liked your review.... even though I've had to wait for it...




  • dfonseca - Thursday, August 27, 2009 - link

    Great article, congrats. Looking forward for part 2.

    My only criticism is that for both intermediate (topic-specific) verdicts and final (first?) thoughts, the non-techie average-joe end user point of view is given way too much weight. Not only do these people not read AT, but they also don't use objective judgement to decide their OSs. These are the people who will go with the flow, which will be dictated by other people. In short, the article focuses on helping joe6pack, but joe6pack doesn't care.

    I believe it would be more productive, when passing comparative judgement, to narrow the focus on aspects more strongly connected to wide adoption - deployment (installation & out-of-the-box functionality), large-scale maintenance ease, support, productivity (office) software, and why not, bang for buck. Some of them are already being considered, and maybe they just need to be given higher relevance.

    Cheers
  • dontruman - Thursday, August 27, 2009 - link

    I have used Windows since the 3.0 days and am currently running RC7 on my home desktop. I think that it is significant that the hardware resources required by Ubuntu and Linux in general are much lower than Windows and can give new life to an old laptop or desktop. Ubuntu recognized and set up all the hardware without a hitch on my Dell Inspiron E1505 and my newer office Q9550 quad. A reasonably older system running on Linux can perform standard tasks at speeds close or equal to newer hardware running any of the Windows operating systems. The boot time for Ubuntu is also significantly shorter.

    It's no coincidence that the ASUS PC1000 netbook, with its solid state hard drive ships with Linux. Mine came with a version of Mandriva linux that is obviously designed for newbies, and doesn't provide nearly as large a set of software repositories as Ubuntu. I replaced it with Eee specific version of Ubuntu and have been very pleased with results. It quickly performs daily tasks such as office work via Openoffice 2.5, browsing (I use Opera) and email (Thunderbird). The difference in observable speed between my Eee and the i7 system I recently built is negligible. Of course I'm not talking about CPU intensive tasks, including Google Earth, where the i7 is many magnitudes faster. But for everyday mobile tasks I use the Eee. (The Inspiron is way too hot).

    I have to disagree about the Synaptic Package Manager. You can Google 3rd party Linux repositeries, such as Medibuntu,that contain multimedia codecs and other interesting Linux software. (Be careful & research 3rd party repositories to avoid unpleasant surprises.) You can add these 3rd party repositories to your permanent list of software sources so that when updates to that software are created Ubuntu notifies you and allows you to accept the updates you want. Using a USB powered external DVD drive I can watch movies on my Eee or rip & compress them on the i7 system and put them on a flash drive or card. Once you get the comression formats tuned you have a good, light weight, computer/multimedia system with excellent battery life; good for two movies. All this on a two year old Intel Atom powered netbook.

    I've played around with Linux for some time but I found it too alien & command line driven using a command set that has very little in common with MS or DR DOS. But over the last several years Linux has been improving at an accelerating rate. All that's needed now is a high quality Wine (Windows emulator) program that will allow you to run all your Windows specific software on Linux without a performance loss. It's a difficult undertaking but Wine has been steadily improving and there are now commercial Linux distros that guarantee compatability with specific Windows programs.

    I recommend putting it on an old hard drive & give it a whirl. And try several versions; there are a lot of free ones out there. I recommend Ubuntu, OpenSUSE and Mandriva for starts. Why pay for the cow when you can get the milk for free?
  • fffblackmage - Thursday, August 27, 2009 - link

    Unfortunately, most of the same problems mentioned in the article are keeping me from switching to Ubuntu as my primary OS. As far as gaming is concerned, I'll be going with Win7 (I'm still using XP atm).

    If I ever get a netbook or non-gaming laptop, I'll certainly consider Ubuntu. However, the likelihood of moving to Ubuntu when the laptop comes with Win7 will probably be very small, unless I can somehow get a refund for not using Win7.

    Also, I guess some people do like the new GUI in MS Office. I found it annoying as I'm still using to the old GUI. But I suppose in time, I may learn to accept it like how I eventually accepted the XP look.
  • sanjeev - Thursday, August 27, 2009 - link

    Yesterday, the manufacturer was Canon, today its "Canonical". Is Ubuntu manufactured by different(or types) vendors ?
    ... just asking :).

    I'm yet to finish 25 (+ 11) more pages .

Log in

Don't have an account? Sign up now