Saturday, July 31, 2010

HOWTO: Starcraft 2 on Linux with Wine

Okie dokie - so I've mentioned before that I play Starcraft 2 under my Linux install with no issues. Since the game's official release a few days ago I have been getting a good bit of traffic on those two pages - so I figured I would put together a quick HOWTO for getting Starcraft 2 working on your Linux distro of choice. The game runs under Wine 1.2 and/or Crossover Games 9.1 with a small bit of work (the latter is easier to make work).

Since free is good I'll talk about the Wine HOWTO first. First off, download and install Wine 1.2 on your system. Next, run the following commands in terminal:

cd ~/Downloads
wget http://winezeug.googlecode.com/svn/trunk/winetricks
chmod +x winetricks
./winetricks droid fontfix fontsmooth-rgb gdiplus gecko
./winetricks vcrun2008 vcrun2005 allfonts d3dx9 win7
winecfg

In the configuration Window it opens go to the libraries tab and enter mmdevapi in the new override for library box and click add. Now scroll through the existing over rides list for mmdevapi click edit and set it to disabled. Finally click on the audio tab and set it to alsa.

If you still have audio issues after doing this and your distro uses Pulse Audio (Ubuntu does) install Wine 1.2 that has been built with pulse audio support with the following commands in terminal:

sudo add-apt-repository ppa:c-korn/ppa
sudo apt-get update && sudo apt-get upgrade

As of Crossover 9.1 Starcraft 2 is listed as "officially support" and as such you will find that it has an entry in the automated games installer. The only issue is that after the game has actually finished installing the StarCraft 2 process hangs around - meaning Crossover never actually knows that the game has finished installing and thusly never creates menu entries for it. Thank fully there is a simple fix for this - after Starcraft 2 has finished installing, open up your system monitor and look for any rogue Starcraft 2 processes and kill them off. After you have done this the CXGames installer will know that it has finished installing and will create the menu entries as it should.

If you have audio issues under Crossover you can open your Starcraft 2 bottle's WineCFG, select the audio tab, and set hardware acceleration from full to emulated.

Also - if you are trying to install from the retail CD (with Wine or Crossover) you might need need to manually mount the disc due to an issue with its split PC/Mac auto mounter. To do this run the following two commands in terminal:

sudo umount /media/SC2*
sudo mount -t udf -o ro,unhide,uid=$(id -u) /dev/cdrom /media/cdrom

Note some drives may use /dev/sr0 (or other mount points) instead if /dev/cdrom. If you are having issues getting it working scroll through the comments for some good tips - if you are still unable to get it working after that, make a comment of your own :)

Also - if you are attempting to get the game running with an ATI card, it was suggested in the comments that making it run under a virtual desktop allows it to run on some systems it otherwise fails to work on.

I tested the above methods on Ubuntu 10.04, Linux Mint Debian, and Chakra - but they should be applicable to any modern Linux distribution. Have any issues feel free to drop a comment below and I will do my best to lend a hand debugging. Happy gaming!

~Jeff Hoogland

189 comments:

  1. Hi ! Actually, I didn't need to tweak, it worked out of the box with my current wine install (1.2).

    I have one question though :-) Performance is pretty good (smooth with average details in 1920x1080 with my GF9800 green edition and a core2duo 8400@3GHz).

    However, when the game detects my GPU, he selects the highest details level by default (which is too slow). I guess it would be smooth under windows.

    So. My question is ; in your experience, does any of the following help to make the game smoother under Linux ?

    - Using a 32 bits distro (I use Lucid Lynx 64 bits with a 32 bits wine -- I guess there is a little speed penalty, maybe ?)

    - Disabling Compiz (OK this one is obvious and I can test it myself easily ;-)

    - Upgrading my nvidia driver with this PPA : https://launchpad.net/~ubuntu-x-swat/+archive/x-updates

    Apart from that... Well, this is amazing it works perfectly from day 1 of the release. (except for the DVD mounting issue)

    Cheers & thanks !

    ReplyDelete
  2. Hey, im thrown off a little bit by the wording, it looks like from what you said, you can use wine OR cross over, you can use only one? im trying everything to get it to work with wine, i even updated my system. i followed your wine suggestion, and still no go, i'll double click my icon, and in the task bar the "Starting Starcraft II" bar title bar shows, than it goes away. and nothing....

    ReplyDelete
  3. @Anonymous Glad to hear it works with a vanilla install for some people! Wine has made a lot of progress over the years. Disabling compiz is hit or miss (some applications it helps a lot others not so much). The 32bit vs 64bit is decently moot since Wine uses 32bit libraries like you stated. As for that PPA - yes that should help. The nVidia 256 drivers (which are in that PPA) give a decent boost to most Linux 3D performance - I am running them now :)

    @iamthetez What I meant by that you only need SC2 running Crossover or Wine - not both really (unless you are writing guides like this haha). What are your system specs (gfx card) and driver version for said card. What distro are you using? If you manually launch SC2 from the command line using Wine what output does it give when it crashes? And you are using Wine 1.2 correct?

    ReplyDelete
  4. I am playing StarCraft 2 without modification on Wine 1.2 and Ubuntu Lucid (10.04) 64-bit (compiz disabled). Sound works fine; the graphics are detected as Low and performance is fine at 1600x900.

    I am using the digital download from Blizzard -- I found this easier for Blizzard games.

    ReplyDelete
  5. To anyone getting the following when running the installer, you need to remove your ~/.wine directory and then run the installer from the command line.

    fixme:ntdll:NtPowerInformation semi-stub: SystemPowerCapabilities
    fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (60000): STUB
    fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 60000
    fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (60000): STUB
    fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 60000

    ReplyDelete
  6. Jeff91 : thanks for the reply ! After some more tests I figured out that (on my setup : core2duo 8400@3 Ghz + 9800 green edition geforce) :

    - performance is the same on a 32 or 64 bits distro
    - crossover performance seems a little better when compiz is enabled compared to wine (about 5%)
    - with compiz disabled, some FPS are gained with both crossover and wine 1.2. (not much, like 10% maybe)
    - I didn't notice any improvement when updating to the nvidia 256.x drivers

    Overall, my setup is detected as "ultra" but I have to switch to medium details to get smooth animation in 1920x1080.

    ReplyDelete
  7. Also, you don't need to disable compiz completely :

    just tick "unredirect fullscreen" in ccsm. (which makes apps flickers when going fullscreen, but doesn't slow down games)

    ReplyDelete
  8. Hi, winetricks author here. Why do you need all those winetricks verbs for starcraft 2? What happens if you, say, leave out the gdiplus on?

    Better to start with nothing and only use the verbs you really need, IMHO.

    BTW thanks to Anonymous for the compiz "unredirect fullscreen" tip.

    ReplyDelete
  9. Hi Mr. Hoogland. I'm writing to you to ask your permission to translate this post of yours and post it to my brazilian Linux blog: http://tuxfunny.blogspot.com

    Thanks in advance

    A

    ReplyDelete
  10. Feel free to translate and repost any of my works so long as you provide a link back to my original article :)

    ReplyDelete
  11. I feel like a dunce, but my retail copy of SCII on Lucid64 mounts as SC2-L100-D1.

    sudo umount /media/cdrom0
    fails but
    sudo umount /media/SC2-L100-D1
    works to unmount as that is currently the only device that is listed when I ls my /media.

    Likewise,
    sudo mount -t udf -o ro,unhide,uid=$(id -u) /dev/cdrom /media/cdrom0
    fails
    sudo mount -t udf -o ro,unhide,uid=$(id -u) /dev/cdrom /media/SC2-L100-D1
    fails
    as does
    sudo mount -t udf -o ro,unhide,uid=$(id -u) /dev/SC2-L100-D1 /media/SC2-L100-D1
    The error that I receive is mount: mount point /media/SC2-L100-D1 does not exist.

    Again, this is probably simple, but I am stuck. Any ideas to resolve?

    ReplyDelete
  12. What is your CDrom mount point?

    ~Jeff

    ReplyDelete
  13. $sudo mount
    yields the following (and more that is not pertinent)...
    /dev/sr0 on /media/SC2-L100-D1 type udf (ro,nosuid,nodev,uhelper=udisks,uid=27973,gid=600,iocharset=utf8,umask=0077)

    ReplyDelete
  14. I just tried my own CD and it does in fact auto mount to the same name you listed. If it does this, can you open this disc? I was able to click on the exe and click select run with Wine with out any forced mounting.

    If all else fails - just wait and use the auto downloader from battle.net takes longer, but always works.

    ReplyDelete
  15. Hi Jeff

    Thanks for your assistance. Yes, it will mount, but I am using the latest Crossover Games and it complains...

    An error occurred while running the 'AIEInsertMedia(Starcraft II: Wings of Liberty)' task

    This disk contains two sections, one for Mac and one for Windows. In order for CrossOver to use this disk it must be mounted so that the Windows portion is visible.

    To make this change, remount as root with this command:
    mount -t udf -o users,ro,unhide,uid=27973 /dev/cdrom "/media/SC2-L100-D1"

    Without unmounting this is the output...
    I'm not sure what the prompt wants me to do

    $ mount -t udf -o users,ro,unhide,uid=27973 /dev/sr0 "/media/SC2-L100-D1
    > ^C
    and also
    $ mount -t udf -o users,ro,unhide,uid=27973 /dev/cdrom "/media/SC2-L100-D1
    > ^C

    Unmounting /media/SC2-L100-D1 and then running the commands does not help either.

    After trying various suggestions that have been made on other blogs and forums, I may go the route that you suggested. I tried that route earlier, being somewhat lazy on figuring out the mount points, but didn't to wait the 35 hours that was estimated. My connection is decent at ~350KB/sec., but I will wait until tomorrow when I am at work.

    Thanks again for your help!

    ReplyDelete
  16. Thanks for your permission. When I'm done with the translation, I will invite you to check it out.
    Cheers!

    ReplyDelete
  17. Hey There -

    I fixed the issue with the unmounting and then remounting the CD properly. Check the posted for the updated command. Sorry I had it incorrect!

    ReplyDelete
  18. Dan Kegel : Hi ! Thanks for making winetricks !

    Personally, I used a clean Wine install -- I had just installed vcrun2005 and vcrun2008 before to make the TellTale adventure games work. That's all.

    Unredirect fullscreen is indeed useful. But I didn't figure out whether it was possible to just enable it for a few apps. (there are some lists in the compiz configuration to specify option for some specific windows, but I didn't find this one -- as SC2 is the only app I really need to speed up :)

    ReplyDelete
  19. Anoter difference between Crossover 9.1 and Wine 1.2 : there are some tiny sound glitches when starting the game with wine, and not with crossover.

    Overall it's just a little better with Crossover + the feeling the contribute financially to the wine development.

    However, Crossover is updated much less frequently than Wine, so there may be some improvements that take some time to come to make their way to Crossover.

    (other tiny different : the SC2 icon produced by wine is of higher resolution ;-)

    ReplyDelete
  20. Hi there Mr. Hoogland, check this out:
    http://tuxfunny.blogspot.com/2010/08/starcraft-2-no-linux-com-o-wine-como.html

    And tell me what you find. Ok ?

    Best regards

    ReplyDelete
  21. Looks great, thanks for the reposting!

    ReplyDelete
  22. Thanks for the walk-through. Everything seems to work great!

    I am working through an issue where when I try to use my external monitor (which is a different resolution than my laptop's built-in monitor) the UI is wonky. It's like the mouse if 'off' by a half-inch or so. Strange but I'll try to figure it out and post up a comment if I can nail it down.

    ReplyDelete
  23. HOT STUFF !
    Apparently it's possible to get a huge speed boost (on nvidia cards only) by setting UseGLSL to disabled ; see :

    http://forum.winehq.org/viewtopic.php?t=9149

    ReplyDelete
  24. Thanx alot for the guide, work perfect under Ubuntu 10.04 (x64) and Crossover.

    I had to tweak the mount string a little since i'm using a USB CDRom, the following did the trick:

    sudo mount -t udf -o ro,unhide,uid=$(id -u) /dev/sr0 /media/cdrom

    .. and the run the Crossover install guide.

    \\Calle

    ReplyDelete
  25. Two cents worth here... On Ubuntu 10.04...
    Couldn't run the installer from the CD... it mounted but the files had the big X on them.

    The commands...
    umount /media/SC2-L100-D1 and
    mount -t udf -o users,ro,unhide,uid=27973 /dev/cdrom "/media/SC2-L100-D1
    did not work (and yes I ran them as superuser)

    So I ran the 'mount' command which returned the relevant portion
    /dev/sr0

    So then using...
    umount /dev/sr0 and
    mount -t udf -o users,ro,unhide,uid=27973 /dev/sr0 /media/SC2-L100-D1 worked perfectly

    I then copied the whole disk into a new folder in my home drive... changed permissions by right clicking on the .exe and "allow this program to run as an executable" or whatever it says...

    Then right click open with wine... bingo...

    Installed perfectly runs like a dream...

    Thanks for the tutorial :)

    ReplyDelete
  26. Hey there I am fairly new with linux but can find my way around (usually.) Im using ubuntu 10.04 and have tried installing and running SC2 many different ways with always the same result. The game installs and patches fine, but when I go to play I get the loading screen just fine and then when the trailer and login screen come up the video is all jumbled. The sound still works and so does the mouse and I can tell the program is mostly fine (except video) because the mouse changes to a text selection cursor when I browse over what I think is the battle.net account name box, and parts of the screen light up as though the mouse is over a button. I really want to play this game, and I really dont want to install windoze.

    ReplyDelete
  27. @Dallas What video card and driver version are you using?

    ReplyDelete
  28. I have a Gigabyte GA-890GPA-UD3H motherboard with integrated graphics. The video is equivelant to Ati HD 4290. I have tried both the ATI/AMD Propietary FGLRX Driver (which give me an AMD Unsupported hardware watermark,) and also the most recent ATI Catalyst driver. Both give the same result!

    ReplyDelete
  29. Quick little question
    I'm not really a computer whiz at all so when i tried a run through of your commands they seemed to be running smoothly until i got to the actual installation of SC2 where when i right clicked the installer and did run with wine it said that no installer data could be found. I'm not sure what this means so any help would be great!

    Thanks for all your time and effort!

    ReplyDelete
  30. @Dalas Hate to be the bearer of bad news - but only nVidia graphics chips work with most 3D applications under Wine in a consistent manner and Starcraft 2 is one of these. You will need a system with an nVidia graphics card to run SC2 under Linux with Wine.

    @Anonymous If you are using the CD to try and install please try the umount and mount commands I listed in the post.

    ReplyDelete
  31. The last mount command doesn't work it says not found
    could it be because I'm using a USB ported plug in cd reader writer?

    ReplyDelete
  32. Yes it could be. What is the mount point of the disc/your CD drive? If you are unsure/to find this run

    ls /media

    In terminal

    ReplyDelete
  33. It's SC2-L100-D1 with SC2 in it and it comes up with nothing while no disc is in it

    ReplyDelete
  34. Is your USB driver /dev/sr0 perhaps? To check put in the SC2 disc and then run the command

    mount

    In terminal and see where it says the disc is mounted.

    ReplyDelete
  35. Ah i see it's /dev/sda1 is this right?

    ReplyDelete
  36. No, that is your hard drive. What all does it list?

    ReplyDelete
  37. These are the only ones with dev in them -

    none on /dev type devtmpfs (rw,mode=0755)
    none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
    none on /dev/shm type tmpfs (rw,nosuid,nodev)

    ReplyDelete
  38. Ah wait sorry there was one hiding in the bottom of the list i believe its the one you mentioned /dev/sr0

    ReplyDelete
  39. Try running the following two commands after you insert the disc -

    sudo umount /media/SC2*
    sudo mount -t udf -o ro,unhide,uid=$(id -u) /dev/sr0 /media/sr0

    ReplyDelete
  40. The last command /media/sr0 come up with

    bash: /media/sr0: No such file or directory

    I don't really know whats happening here but it looks like that it's either not imputing the name when you try to mount it, or that i have not supplied a name for to mount. The only reason I think this is because its saying you can name a device with the following-
    say /dev/hda1 or /dev/cdrom

    Just wanted to again say thanks for all your help so far

    ReplyDelete
  41. No problem mate - we just need to create the mount point. To do this run the following in order:

    sudo umount /media/SC2*
    sudo mkdir /media/MyCDRom
    sudo mount -t udf -o ro,unhide,uid=$(id -u) /dev/sr0 /media/MyCDRom

    Hopefully that will do the trick! If not maybe just bite the bullet and wait for the download.

    ReplyDelete
  42. Ha this is kinda funny it seems to have worked because it changed the file name of the disc and i can read more files of it! However instead of running the down loader and giving me an error message it just closed it out before it did anything... I don't mean to contently bug you but i feel like theres just one last step I'm missing now? If not I'm just going to use the auto down loader.

    ReplyDelete
  43. If the name of the disc changed and you see more files then yes - it has successfully remounted the disc.

    As for the crashing out... If you are using Wine do you have Wine 1.2 installed? If so did you install all of the Winetricks packages I list in the post?

    ReplyDelete
  44. Uhmm, I'm on Karmic-64, I manually mount the DVD as discussed, then run wine cmd.exe and then:
    d:
    installer.exe
    This starts something but I get nothing but
    D:\>installer

    D:\>fixme:ntdll:NtPowerInformation semi-stub: SystemPowerCapabilities
    fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (60000): STUB
    fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 60000

    I have Wine 1.2 and I've removed .wine in my home directory as suggested by Xavier. When I then run cmd.exe, it creates .wine, but no change when I run the installer :(

    I've read the fixes on the WineFAQ for DNS Resolution with 64 bit O/S as well as the hostname business and I've applied that, but still no go.

    Any suggestions please ?

    ReplyDelete
  45. Yep, I installed gecko again from winetricks and also, running iexplore.exe is fine. I imagine that if that works, then it means that networking is OK ?

    ReplyDelete
  46. Did you install the Wine tricks packages into your new .wine directory you created? From what I am seeing online installing the gecko package should resolve that error/issue.

    ReplyDelete
  47. Yes it should... If you try the blizzard downloader does it start OK for you or does it crash out as well?

    ReplyDelete
  48. Yeah I did and i reinstalled/repaired them just in case and i seem to be getting the same problem. Any thoughts? or should i just move on to the auto downloader

    ReplyDelete
  49. Other than trying Crossover Games I am kind of at a loss for why the CD isn't working :( Maybe make a post under the Wine section on the Ubuntu boards and see if someone there knows - or just start the downloader before you go to sleep tonight.

    ReplyDelete
  50. Alright thanks for all your help! I'm having trouble finding the blizzard downloader though... can anyone provide me with a link? it seems the only ones i can find through blizzard are either beta key activations or one link which is under maintenance...
    Once again thanks for your help your much appreciated among the linux SC2 community :)

    ReplyDelete
  51. Just go to battle.net (create an account if you don't have one) register your activation key and then a download link will be on your games screen :)

    ReplyDelete
  52. If I had to use the downloader, then I'd more like have to wait a week than overnight, but thanks for the tip. I've done a tcpdump to see what the installer tries to do. It (or at least I think it is it), tries to make an http connection to 80.239.186.40. This seems to be one of the battle.net servers, so at least I know that networking seems to work from within wine, or at least outbound.

    ReplyDelete
  53. Ahh that sucks Stefan :( But as a heads up - a broadband internet connection is listed as a requirement for the game. Even my DSL that downloads at 150kb/sec was able to download the game in 12ish hours.

    ReplyDelete
  54. Seems to be working thanks!

    ReplyDelete
  55. Well damn - I copied over the entire CD to the hard drive, ran the installer from there and it came up! Now I don't know if that's just fluke, or a permissions issue when I mounted, but it came up - now let's see if it installs ;)

    ReplyDelete
  56. Fantastic information to have! Hope it works for you :)

    ReplyDelete
  57. Hey Jeff,
    Awesome writeup man, really appreciated!

    Quick question and hope this wasn't answered above and I missed it, but does the online functionality of the game still work alright. I would assume so, but just wanted to check first. Figured worst case, the any LAN playability should still be there.

    Thanks again!

    ReplyDelete
  58. Starcraft 2 is actually ONLY online playable (even if you are on a LAN you need an active internet connection). And the game is 100% functional under Wine on Linux.

    ReplyDelete
  59. Ah so even the single player campaign is done through the internet?

    Well either way, glad to hear it's all working. Off to empty the ol wallet.

    ReplyDelete
  60. Great post, small issue I have a iso image how would I alter the mount command to use that instead of the dvd
    "sudo mount -t udf -o ro,unhide,uid=$(id -u) /dev/cdrom /media/cdrom"

    ReplyDelete
  61. sudo mount -t udf -o loop,unhide,uid=$(id -u) sc2.iso /media/sc2

    ReplyDelete
  62. What the anonymous above me said only also be sure to create the mount point /media/sc2 with the command:

    sudo mkdir /media/sc2

    ReplyDelete
  63. Thanks for the writeup. Everything seemed to go smoothly. Game runs, but when you actually go to play anything - like clicking on the tutorial, the game crashes and gives an Access Violation error. Ubuntu 10.04 with wine 1.2

    ReplyDelete
  64. Wine gives the error or Starcraft 2 does?

    ReplyDelete
  65. Starcraft 2 does after it crashes in the bug reporting thing that you can send crash information off to Blizzard with.

    ReplyDelete
  66. I'm currently having issues as well. I was able to run the beta under Wine, and I'm able to install Startcraft 2 under wine 1.2. It installs, then patches, then crashes. I haven't been able to get it to successfully run yet. Ubuntu 10.04 with wine 1.2

    ReplyDelete
  67. Afternoon,

    First of all thanks for the write up. I've enjoyed trying to make this work so far. Good news is I have the game running but the sound seems to be choppy and unresponsive even if everything else is working fine. I've new to Linux so it's my goof I am sure. Any suggestions would be helpful.

    Thanks,
    Brennan

    ReplyDelete
  68. Message when it crashes? Did you follow all the steps I detailed?

    Regarding sound issues - be sure you set mmdevapi to disabled in your WineCFG!

    ReplyDelete
  69. I followed the tutorial, and yet I get this:

    james@ubuntubox:/media/cdrom$ wine Installer.exe
    fixme:ntdll:NtPowerInformation semi-stub: SystemPowerCapabilities
    fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (60000): STUB
    fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 60000

    So I attempted (re)moving the ~/.wine directory, as mentioned above, and still no dice... any ideas?

    (I'm running ubuntu 9.10 with wine 1.2)

    ReplyDelete
  70. Am running it on PCLinuxOS, though I need to get a better video card... But am happy I install an that it actually runs!!! Am impressed! Thanks for the info.

    Am using plain Wine with your suggestions... no hacks!

    ReplyDelete
  71. Hello, This tutorial was very helpful except when I load the disk, it mounts, yet when I click on "Installer.exe" I get the error "No installer data could be found. If this problem persists, please contact Blizzard Technical Support". Any way around this? thank you very much for your time and help.

    ReplyDelete
  72. i followed the remounting tutorial you gave anonymous and it worked for me, thanks :)

    ReplyDelete
  73. How did you make your starcraft 2 window not full screen? thanks.

    ReplyDelete
  74. Here's my error:

    ILLEGAL_INSTRUCTION (0xC000001D)
    occurred at 0073:06C69DB0.

    I also get Access violation 0xC000001C at times.

    ReplyDelete
  75. Here's the other error in it's whole.

    ACCESS_VIOLATION (0xC0000005)
    occurred at 0073:0015EDE3. The memory at '0xFFFFEDE0' could not be written.

    ReplyDelete
  76. @Joshua Set your winecfg to use a "virtual desktop" under the graphics tab. As for your black screen issue - what graphics card do you have?

    @Zach I did some searching around but I am not sure what the cause of those are :-/ Could you try running the game with the newly released Wine 1.3 and see if that helps any?

    ReplyDelete
  77. im using dual ATI Radeon 5770 graphics cards. The drivers seem to be working fine because im able to max out native linux games such as urban terror. Its just so close to working!! i get to watch the whole like entro movie but once it tries to load the game up just black. Do you think i would fair better with crossover? I would however still learn how to make this work with wine as i have seen it successfully done on several sights. I really appreciate your help man and thanks for helping out the linux community.

    ReplyDelete
  78. here with more info, I downloaded the trial version of crossover games and I am getting the exact same result, goes through entro video then black screen and if i try to restart the application the screen remains black and i get a blizzard error report asking me to send them a bug report.

    ReplyDelete
  79. hey jeff, thanks for all the help. quick question, what fps does the game run at when you are playing?

    ReplyDelete
  80. @Joshua The graphics card is the source of your issues. ATI drivers now allow for decent performance under native Linux applications, but they still provide in consistent performance (and crashes) under Wine applications that are 3D

    Regarding FPS see - http://jeffhoogland.blogspot.com/2010/05/starcraft-2-and-bit-of-wine-linux.html

    ReplyDelete
  81. Oh, That is very upsetting as I have just finished this build, now only to find that the graphics cards I chose are going to give me trouble. I dont want to have to return to windows!! Once again I thank you very much for your help Jeff. Hopefully some sort of fix will come around for this soon.

    ReplyDelete
  82. Hardware makes all the difference, ATI is cheaper - but for Linux 3D nVidia has been the only real choice for some time now :-/

    ReplyDelete
  83. I wish i knew that before I built this build, I hope ATI starts coming out with more compatible drivers soon or that crossover developers make their software a little more compatible. I sent them an email about and I guess we will see what they say.

    ReplyDelete
  84. Yea - as much as it sucks it is really more a driver issue than a Wine issue. ATI treats Linux like a second class operating system and has for some time. Doubt it will change anytime soon.

    The FOS ATI drivers are coming along nicely though, they can now do basic 3D. So maybe in a couple years they will make for a viable alternative to nVidia.

    Moral of the story - always do hardware research before building a system to see how well what you are getting will work with your operating system of choice.

    ReplyDelete
  85. If you are having any problems with sound in Wine and Ubuntu, this is most likely caused by wine not having proper support for pulseaudio sound system that Ubuntu uses. To fix that it is recommended to use Wine with Pulseaudio support from this PPA: https://launchpad.net/~c-korn/+archive/ppa and then switching sound system to pulseaudio from winecfg.

    ReplyDelete
  86. Good PPA to know about algarius! Does it only provide Wine 1.2 or does it upgrade as beta versions release?

    ReplyDelete
  87. Wow, thanks for the guide and all, but I have one critical problem: space.
    After successfully mounting, I simply transferred the entire disc into one of my hard drives. I would much rather install in either of my hard drives (where I have ample space), but the only option I have is to install within of the dummy drives provided by Wine.

    On my install screen:
    Space available - 10.3 GB
    Space required - 12.0 GB
    Even though that while browsing folders, it says there's 9.6GB of free space within my root folder.

    Soo, is it possible to install SC2 in a directory on a separate drive? Because on my home folder, I only have two things installed, Wine and Heroes of Newerth (<600mb), meaning my root simply wouldn't have enough space to begin with.
    Does this mean I created too small of a partition upon installing ubuntu? Do I have to reinstall everything?

    Thanks

    ReplyDelete
  88. im stumped......when i click on the installer i still get access denied!

    ReplyDelete
  89. @CokeBabies You can resize your Ubuntu partitions by booting from a LiveCD - this is the simplest way to do it (remember that you will want to make it large enough that after SC2 is installed you have at least 10% of the drive open still)

    Or if you really want - if you have another drive that is formatted to extX you could create a new Wine prefix there - but this is a bit more complicated to do.

    @anoymous How about when you run the installer from terminal using the wine command?

    ReplyDelete
  90. Just thought I would mention that the statement that Starcraft 2 cannot be run through WINE with ATI cards is actually false. Using the latest ATI drivers SC2 can actually now be run after following your winetricks and mmdevapi instructions above.

    For people who do not like installing outside of repo's look for the Ubuntu X-Swat PPA which always has the latest ATI drivers packaged into lovely debs for our apt-get pleasure.

    ReplyDelete
  91. Need to add that the game only runs well on ATI if run on a virtual desktop setup in WINE configuration applet

    ReplyDelete
  92. Never said it wouldn't work under any ATI card - I just said that the ATI drivers provide inconsistent results (thats why companies like Crossover don't support them). Some cards they work with and others they do not - the virtual desktop is a good suggestion though, thanks!

    ReplyDelete
  93. Im hoping you might be able to help me out. I got the game running and installed fine. However the game only runs on low settings. Whenever I move the graphics settings to medium it crashes and the bug report pops up. I have no sound or audio issues. Im using GTX 460 nvidia which is a very good vid card and should support ultra settings with no problems. I have the latest video drivers downloaded and installed from nvidias website.
    Im not sure what else to do... maybe a linux pro like you could help me? :D
    Im also running Ubuntu 10.04 64-bit. Used WINE 1.2 to install the game. I even did ur little howto advice at the beginning of this article, no change,

    ReplyDelete
  94. thank you thank you thank you thank you thank you God Bless you!

    ReplyDelete
  95. I've reinstalled Ubuntu on a separate hard drive to use its entire disk as its own partition.
    I've updated, installed wine, updated again, and pasted in the above commands for winetricks.
    However, when I try to open up the SC2 installer with wine, I just get a loading symbol, then reverts to the pointer. No installation, no error. I've tried uninstalling and reinstalling and following through the steps.
    What's wrong with wine? =\

    ReplyDelete
  96. @Anonymous What driver version are you using? The latest bleeding edge nvidia drivers are current 256.xx and they are the ones that yield the best performance under Wine - they should also help with your new video card.

    ReplyDelete
  97. Everything installed without a hitch as per directions listed here, but i still cant play because the graphics garble at game startup and when emulating a desktop i just get a blank screen (ATI radeon 4890HD with latest catalyst pack from the web)

    ReplyDelete
  98. For ATI users, maybe try playing around with different direct 3D registry key settings to see if they provide better results - http://wiki.winehq.org/UsefulRegistryKeys

    ReplyDelete
  99. im using 256.44. I found out im using the 32-bit version of WINE maybe if i change it to 64-bit it would help?

    ReplyDelete
  100. No - 32 bit version of Wine is what you want. Maybe try changing which version of the 256 driver you are using. They are beta drivers so they can cause regressions for certain cards sometimes with newer versions.

    ReplyDelete
  101. Just wanting to post back, I switched out my dual ati cards for dual nvidea cards and now it runs perfectly. Honestly just as smooth as windows. Linux! Linux! Linux!

    ReplyDelete
  102. Glad to hear it Joshua! nVidia FTW :)

    ReplyDelete
  103. the install stops at 52% everytime, file 11518/37600 or 11519

    the error in wine reads: Microsoft Visual C++ Runtime Library
    "Runtime Error!
    Program: C:/users/name...

    This application has requested the Runtime to terminate in an unusual way"
    moar blah

    lemme know if you want the terminal data
    thanks

    ReplyDelete
  104. Did you install the vcrun2005 and vcrun2008 packages I listed in the bottle you are trying to install into? They typically resolve most all MS Visual C++ issues/errors under Wine.

    ReplyDelete
  105. Hello~ I have downloaded wine (I do not know what version it is, I am pretty sure it is wine 1.3) and followed every step you listed. I successfully installed the game on my opensuse 11.2 (64 bit) and even finished update of the game, yet when I tried to play the game using wine it doesn't do anything...

    Do you know what I am doing wrote?
    Could you please help me out?

    ReplyDelete
  106. I'm having the same 'Runtime Error' popup at 52%. I installed vcrun2005 and vcrun2008 with winetricks. Is there a way for me to check that they are actually installed correctly? Also "allocation failed" is being printed to my console when this error occurs - could I be running out of RAM? I only have 1 GB installed which I know is low but I'd think it should be fine at least for the installation... And I have 3+ GB of swap. I also have 33 GB of disk space available so I don't think that can be the problem.

    ReplyDelete
  107. For those getting the run time error - are you installing from the CD or the digital downloader (if you have only tried one of the two, does the other work)?

    If both fail and you don't use Wine for anything you may want to give Wine 1.3 a try and see if it is able to install the game for you.

    If all of the above fails you can always install the game on a Windows system and then copy of the install files, just like all of Blizzard's games SC2 is still a fully portable install.

    ReplyDelete
  108. Hi all -

    When I changed my windows version (through 'configure wine' in the applications menu) from Windows 7 to Windows XP, my install completed successfully. So if you are getting an error at 52%, try that!

    ReplyDelete
  109. @IanRose - If your Windows version was not already set to Windows 7 then that means you did not properly install all of the Wine tricks packages I listed. One of them takes care of this for you.

    At any rate, glad you got it working.

    ReplyDelete
  110. Excelente gracias me va bien q viva la guerra de los terra pofffffffffffffffffff, ahora feliz en mi elive 2.0 topaz

    ReplyDelete
  111. Hi Jeff,

    I'm relatively new to Linux fyi.

    I have followed the instructions and it was going ok until I went to wine and told it to install installer.exe at which point it gave me an error 'Access denied' I go into the cd file and it says that the installer.exe is not exacutable. It's probably something simple but like I said I'm pretty new to this.

    Thanks,
    Malcolm

    ReplyDelete
  112. Malcolm,

    I am assuming you are trying to install from a CD? If so did you follow the instructions I listed for remounting the disk with the proper commands? This needs to be done on Linux if you are installing from the CD

    ReplyDelete
  113. Yes I did do that. When I remounted the picture and files changed which I assumed that it worked. I believe that I did everything that you said in your initial post and some of the things in the comments. I reinstalled wine to make sure that I had 1.2 and I double checked that I changed the wine settings like you say in the main article.

    ReplyDelete
  114. I'm one of those who has StarCraft 2 and Linux.

    I haven't played it yet though. My little brother took the game from me and installed it on his Windows machine since he saw that I wasn't playing it. I don't have Windows on my PC. One of these days I'm taking it back from him, now that I know it runs in Linux with wine.

    I vowed never to buy another game until a Linux version comes out, but I just had to plunk my hard-earned cash (~$68 with tax) to get one within a week of release. So much for the vow. Oh well, this is the fourth time I broke the vow anyway. That is $260 games spent so far for Linux but as Windows version.

    ReplyDelete
  115. Hi,
    Thanks for this howto!

    I kept receiving this error: fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (60000): STUB
    fixme:wininet:InternetSetOptionW

    and nothing worked for me. I copied the DVD content to my harddrive and that worked. It still shows the error but the installer started. Haven't played the game yet, the game is still updating...

    ReplyDelete
  116. I installed the game but when I start the patch screen appears and starts downloading this patch. I then receive a wine error (just closed it). Then the patch stops at 50% and waits.
    You need to stop and restart now, but after stopping you have to close the BlizzardDownloader application that is still running on the background. For me I did a Alt+F2 and killed this (now zombie) process.
    After restarting the patching continues.

    ReplyDelete
  117. Because even with correct mount the CD has read errors and on direct install fixme errors i installed it in virtual box. The downloader crashes too. Moved the complete SC2 dir to my linux hd. Now if i run the exe i get access violation. Using wine 1.3 and ubuntu 10.4.

    From the how to, it is correct to download the winetricks into the download folder and not move it into the .wine folder?

    ReplyDelete
  118. Thanks for the mention of CrossOver--we really appreciate it!

    Best Wishes,

    -jon parshall-
    COO
    www.codeweavers.com

    ReplyDelete
  119. Thank you so very much!

    You have no idea how good it feels to finally be able to play this in Ubuntu.

    ReplyDelete
  120. Could someone please explain me why getting empty blue screen at installation there is no menu in it?!

    screen shot: http://bayimg.com/naOjMAacJ

    ReplyDelete
  121. Can you check your Windows version in WineCFG and make sure it is set to Windows 7?

    ReplyDelete
  122. Hi jeff,

    yeah its set to Windows 7... sound works perfect only cant see "menu" at installation screen kinda weird.

    ReplyDelete
  123. okay I did as requested but the default mount command doesnt work as my disk is located @ /dev/sr0 /media/SC2-L100-D1
    So to unmount the cd I simply say umount /dev/sr0
    and to mount:
    mount -t udf -o users,ro,unhide,uid=27973 /dev/sr0 /media/SC2-L100-D1
    however when I do the mount command, I simply get information almost like a manual...
    any ideas?

    ReplyDelete
  124. liam@liam-desktop:~$ umount /dev/sr0
    liam@liam-desktop:~$ mount -t udf -o users,ro,unhide,uid=27973 /dev/sr0 /media/SC2-L100-D1
    mount: only root can do that
    -----
    I tried the tip anonymous gave however even though i am admin and did enter my password, it says only root can do that?
    Second when I try:
    sudo umount /dev/sr0
    it says /dev/sr0 is not mounted...
    however when I use the mount command:
    I get the relevant information below:
    /dev/sr0 on /media/SC2-L100-D1 type udf (ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,umask=0077)

    Therefore I belive it is mounted @ /dev/sr0
    Any help is appreciated :)
    Thanks for the tutorial.

    ReplyDelete
  125. awesome, got sudo umount /dev/sr0 to work
    now when I do:
    liam@liam-desktop:~$ sudo mount -t udf -o users,ro,unhide,uid=27973 /dev/sr0 /media/SC2-L100-D1
    mount: mount point /media/SC2-L100-D1 does not exist
    it says it doesnt exist? any ideas.
    any help is appreciated, thanks

    ReplyDelete
  126. liam@liam-desktop:~$ sudo umount /media/SC2*
    liam@liam-desktop:~$ sudo mkdir /media/MyCDRom
    liam@liam-desktop:~$ sudo mount -t udf -o ro,unhide,uid=$(id -u) /dev/sr0 /media/MyCDRom

    Worked! Thanks a lot

    ReplyDelete
  127. Hey,

    Before using winetricks my SC2 worked fullscreen without any problems but the sound didn't work.

    After using your fix for sound and installing winetricks, the fonts look ugly (though still readable). And the resolution's aspect ratio is messed up (very skinny). Also the buttons are off (like if you click on something, it wont press the button... instead you have to click a bit off the button).

    I can fix that by using a virtual display in winecfg, but with that option I can't scroll (my mouse moves out of the window when I try to scroll in the game).

    So, is there an option to undo the winetricks resolution part?

    Thanks,

    ReplyDelete
  128. Unfortunately there isn't a simple way to remove Winetricks packages. You will need to delete your ~/.wine folder and create a new one. You can save your Starcraft data file though (so you don't have to wait for it to install/update again) as Blizzard's installs are portable.

    ReplyDelete
  129. Can anyone give feedback on whether running running SC2 under WINE has any effect on the well documented heating issues on the GPU that the game inflicts?

    ReplyDelete
  130. I'm getting NO text at all when I try to install it.
    I did all the winetricks under Fedora 13, and still no text. The installer starts, but I cant click anything because there is no text on the page!

    ReplyDelete
  131. So I have achieved mounting my SC2 cd on my computer with the hidden files now visible and have configured wine to all the settings needed and everything but my game will NOT download/Install and when I try and copy my disc to the hard drive it tells me that it is not a proper iso and closes. I have read everything I could on the subject and I am stuck. I have ubuntu 10.04 64 bit I have only been on ubuntu for a... week and i am going crazy. does anyone have any suggestions of things I could do? Thanks

    ReplyDelete
  132. @Jordin What Wine version are you using? What error/message is it giving you when the setup on the disc/auto downloader fail to work?

    Help us, help you.

    ReplyDelete
  133. Finally got Starcraft II to work with a new NVIDIA GeForce GT240 and regular Wine, thanks for the instructions! The Blizzard updater crashed repeatedly on trying to install the third patch, but it got a bit further every time so in the end it worked out. Apparently there's some problem with accessing URLs. Some propose installing IE6 to fix this; I suggest try it repeatedly (check that any ghost processes are out before restarting) as long as it keeps progressing at least a bit further.
    http://www.codeweavers.com/compatibility/browse/name/?forum=1;app_id=4619;mhl=87723;msg=87631

    ReplyDelete
  134. Hi, thanks for the response I was a little miffed at the time that I wrote that comment so it was not the most coherent.

    I have wine 1.3. When I try to open the installer on the disk i get the little spinning load icon and then nothing happens. I have tried this multiple times and still nothing. So my next idea was to copy the disk over to my computer because that seemed to work for some other people and so I tried that, did not have libdvdcss2 so I got that then remounted my disk because the act of making a copy unmounted it and then tried to copy it again and then it told me that it was not a real iso and then stopped copying.

    I hope that that clarifies things a little more, I do not have access to my computer to get the actual error message at this time so I can't be more exact than "not an iso". Any ideas you may have would be greatly appreciated.

    ReplyDelete
  135. Have you tried Wine 1.2 yet? Also if the CD still fails, give the auto downloader a try.

    ReplyDelete
  136. I am on a college campus and they have banned peer to peer clients/torrents and blizzard's download client falls into that list so I am stuck using the disc. I will try 1.2. If that does not work then I am stumped. :/

    ReplyDelete
  137. i removed all of the configure folders and winetricks stuff (even the hidden ones) and downloaded 1.2 and redid everything in the howto and I am back to where I started. It will not install the game and if I try and copy the cd to my hard drive it says "not a proper disc image". Like I said torrent and the install client from blizzard do not work on my campus. So I am stuck. I do have it installed on my mac but it is old and does not run the game very well. is there a way to make a dmg file work on linux?

    ReplyDelete
  138. I'm getting a weird looking scrambled login screen when i start SC2 (ATI graphics card) (you can hardly make out the text boxes and buttons, everything is yellow / black). Other UI elements (like the options dialog) look fine.

    any thoughts on that?

    ReplyDelete
  139. @Jordin Check your SC2 install directory on your Mac. I am fairly certain that it should contain the .exe file needed to launch SC2 on Windows. If this is the case, copy over the entire install directory to your Linux PC and manually launch the .exe using Wine.

    @Anoymous Thank ATI for having piss poor drivers there. Playing with registry keys helped for some people, others have not been able to get past that issue. Sorry :-/

    ReplyDelete
  140. @Jeff91 tried that already, guess its time for a new nvidia card then... just having problems with this one anyway. Thanks

    ReplyDelete
  141. Ok so I ended up redoing everything and the install disc still would not work so in an act of desperation I went into the download client which I had turned off peer-to-peer in the very beginning of all this and voila it worked. I am downloading the patches now. Heres to its continued cooperation because I do not know what I did to make it work...

    ReplyDelete
  142. Yay, I now know how to mount that DVD now! ;D

    ReplyDelete
  143. On the screenshot you have SC2 on a window. Does the mouse leave the window if you try to scroll by bringing the cursor on the left, top or right edge?

    ReplyDelete
  144. I have the same Visual C++ problem, and yes I followed your tutorial to the letter Jeff.

    IanRose: I tried changing the winecfg to "Windows XP" like you said, and that didn't work.

    Jeff: It's the Digital Download version. Any thoughts?

    ReplyDelete
  145. @Tim Try all of the different Windows versions, try different Wine versions. Try the CD if you have it, all else fails install it on a Windows system and move it over to your Linux box.

    ReplyDelete
  146. Hi, thanks for the blog

    I was wondering if I could get a fix for "zach"'s problem earlier.

    To sum it up I get "

    =

    ILLEGAL_INSTRUCTION (0xC000001D)

    "

    after I start the game, but just as the mission is supposed to start. I'll get the countdown after it finds other players but when it reaches zero the game will close.

    ReplyDelete
  147. Your directions worked fine for me, unfortunately I'm going to have to be using windows for it, because of performance. I get 10fps with the settings on low. Changing from the ubuntu-supplied nvidia drivers to the nvidia-supplied drivers made all the menus have less lag, I think, but still maxed at 10fps in game. I'm running Linux Mint 9, btw.

    ReplyDelete
  148. Hello, Jeff! Firstly, gratz on the how-to! Even though I couldn't start up the game yet, installation went perfect (I guess!). I tried with PlayOnLinux, then followed your tips to the letter using Wine. The problem I have occurs when I try logging into the game. It just crashes and asks if I want to send some report back to Blizzard. I'm using wine-1.2 on Slackware64. Any ideas will be much appreciated! Thanks in advance!

    ReplyDelete
  149. @gtludwig This is a known kernel issue. Either upgrade/downgrade your kernel or compile Wine with the patch found here -

    http://bugs2.winehq.org/attachment.cgi?id=29339

    ReplyDelete
  150. Everythig is fine until I want to Install... The installer is in the taskbar, the curser has changed to SC2, but theres no install window. What should I do?
    (Debian amd64)

    ReplyDelete
  151. @Kristian What Wine version? Did you install all the Winetricks packages I listed? CD install or Download install?

    ReplyDelete
  152. I tried patching Wine with the link you offered above, but it seems it's not a patch for Wine, but for kernel, right?
    I decided to upgrade to kernel-2.6.35.7 - still no luck.
    Actually I removed ~/.wine/ and had to reinstall the game, but Wine crashes on installing.
    Will try going 2.6.36 today... But I fear I have some kernel compiling ahead of me...

    ReplyDelete
  153. Hi Jeff, thanks for your work so far ;)
    I did all as described, got the same problem as anonymous with the CD-drive. Your tip helped out:
    sudo umount /media/SC2*
    sudo mkdir /media/MyCDRom
    sudo mount -t udf -o ro,unhide,uid=$(id -u) /dev/sr0 /media/MyCDRom

    They use the same trick in PlayOnLinux but I got stuck with MS Visual C++ issues/errors, as you already pointed out. That's why I use your method now.

    The good news, is is installed. But the bad news is it won't do the full update.
    I get the error: WINE PROGRAM CRASH: Internal errors - invalid parameters received

    I use ubuntu 10.10 and got the retail CD.

    Any ideas left 'cause I'm running out of options?

    ReplyDelete
  154. @A. Neeteson Have you tried applying the kernel patch I linked to above? It solves issues with SC2 and the kernel used in 10.10

    ReplyDelete
  155. Jeff, what do I have do with this page info?
    http://bugs2.winehq.org/attachment.cgi?id=29339

    ReplyDelete
  156. update, I'got the latest kernel now,v2.6.36-rc7 series:maveric.

    Got (already) latest wine 1.3.4 http://www.winehq.org/site/download (Wine for all linux-distro's)

    And done your Win7 update trick.

    I hope it is not the peculiar Thinkpad T500 dual graphics card ATi Radeon HD3650 is causing the crash.

    ReplyDelete
  157. Just a little update for everyone here. I just finished installing the new ubuntu 10.10 (and the automatic driver install for ATI cards) before, in ubuntu 10.04, there was a huge issue of the screen just going black after the intro movie then never running again. I am glad to say that now, with the better ATI support the game installs from disc perfectly and runs, the only issue now is that certain odd things happen, like when you start a game either the background is just all black or the background map is visible and the units and building are invisible, kind of weird. Also, when you click quit, it does not bring you back to your desktop but freezes, but still, its a step forward for ATI users. Possible figuring out how to properly install the 10.9 ATI driver on ubuntu 10.10 may bring better performance?

    ReplyDelete
  158. So the installer kept crashing out, had to do a dll override in winecfg, set mshtml to native and works fine after that

    ReplyDelete
  159. however i keep getting 'failed to initialize directx' any ideas? am on nvidia

    ReplyDelete
  160. Joshua, when you can install the ati driver 10.9 can you let me know how? btw here the ati 10.10 driver: http://www.ati-forum.de/files/Downloads/Driver/ati-driver-installer-8.783_RC1-x86.x86_64.rar

    ReplyDelete
  161. I simply followed the directions given with the driver. Opened a terminal and navigated to the folder that contained the .run file. ran chmod +x ati-driver-installer 10-9-x86.x86_64.run

    then

    ./ati-driver-installer-10-9-x86.x86_64.run

    whichs gives me an error saying

    user@ubuntu:~/Desktop$ sh ./ati-driver-installer-9-3-x86.x86_64.run
    Created directory fglrx-install.FoFMJW
    Verifying archive integrity... All good.
    Uncompressing ATI Proprietary Linux Driver-8.593............................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. ..........................................
    ==================================================
    ATI Technologies Linux Driver Installer/Packager
    ==================================================

    Error: ./default_policy.sh does not support version
    default:v2:i686:lib::none:2.6.28-13-generic; make sure that the version is being
    correctly set by --iscurrentdistro

    ReplyDelete
  162. just an update here, i installed the ati 10.10 driver given above. It installed with no problem and allows me to start starcraft 2 with no blackouts and enter games but I still have like a rainbow colored background and while the courser can find units I can not see them. Also now in the bottom right corner of my monitor is says "AMD testing only" in a little box. not terribly annoying though.

    ReplyDelete
  163. That is fantastic news Joshua! I might be able to really consider an ATI chip in my next system.

    ReplyDelete
  164. +++++++++++++++++++++++++++++++++++++++++++
    FINALY SUCCES !!!
    I got a thinkpad t500 with dual graphic processors with ATI radeon HD 3650 as the best one.

    FIRST THING TO DO, disable in the BIOS the auto setting and choose your preference (discreet for the best processor).

    Then I did a clean install of Ubuntu 10.10 (am I glad that I always have my folder /home at another partition !!).

    Then you MUST do a update of your software and reboot.
    DON'T install the additinal ATI/fgrlx-driver yet, keep everything default !!!!!!!

    Next get the latest kernel at: http://kernel.ubuntu.com/~kernel-ppa/mainline/ and install. REBOOT.

    I choose for PlayOnLinux instead of installing Wine first because this works for me and have not tried it the other way around.
    Get the latest WINE version: http://www.winehq.org/download/

    Now we are ready to do the winetricks and win7:

    cd ~/Downloads
    wget http://winezeug.googlecode.com/svn/trunk/winetricks
    chmod +x winetricks
    ./winetricks droid fontfix fontsmooth-rgb gdiplus gecko
    ./winetricks vcrun2008 vcrun2005 allfonts d3dx9 win7
    winecfg

    In the configuration Window it opens go to the libraries tab and enter mmdevapi in the new override for library box and click add. Now scroll through the existing over rides list for mmdevapi click edit and set it to disabled. Finally click on the audio tab and set it to alsa.

    To avoid the finding the SC2 DVD, just copy it to a folder at your /home/somewhere.

    Open PlayOnLinux (or uninstall Wine Software) and install it as DOWNLOADED SOFTWARE
    so now you get the option to brows. Don't forget that the downloaded version is the SAME as on your DVD disk !!!

    It is now just installing and SC2 has recognised a ATI HD 2600 (not too bad, I can start playing now). I go later trying it with the separate ATI provided driver and CATALYST software. (System/Administration/Additional Drivers)

    Updating, there are lots of updates going around since AMD/ATI are going open source. For those that fail, Keep checking the updates because everytime I read about new patches for the ATI RADEON

    Resuming: The order of installing described as above should work for all distro's. I have reinstalled almost EVERY other order, had lots of kernel freezes and in THIS ORDER ONLY succeeded. Cheers :)

    ReplyDelete
  165. k, so chk it, i got SC2 to work no problem, sure it's all cool and dandy, but i went ahead and took it a step further and wanted to try to use the crack!! im getting this error,

    ==
    @server StarCraft II]$ wine SC2ALLin1.exe fixme:actctx:parse_manifest_buffer root element is L"asmv1:assembly", not
    wine: Install the Windows version of Mono to run .NET executables
    ==

    exect that i've not been able to find much info on it, sure, i did install mono, PRRFFF.. same!.. dl'd the windows version of mono, prfffF!T.. same!! .. so.. i'm stuk.. trying to find more info on that error, if anyone else comes accrross this, or if you got the crack to work, ping me, chk the site>> i'll be chkin bak here too.

    os : fedora 13
    vid : nvidia ??
    wine : 1.3.4

    Linux server.home.local 2.6.34.7-56.fc13.i686.PAE #1 SMP Wed Sep 15 03:27:15 UTC 2010 i686 i686 i386 GNU/Linux

    ReplyDelete
  166. First off, thank you for such a detailed guide, and very good follow up in the comments! You are the man!

    I was also having the problem with the installer stopping at 52% every time. Error: Microsoft Visual C++ Runtime Library Runtime Error!

    The fix was reconfiguring the Windows version to --> XP. So, thank you IanRose for that fix.

    Now, after install and updates are done and the program loads, my screen goes full screen and everything goes to heck. The screen gets all screwy and unreadable. Its garbled. Its most likely a simple resolution or fullscreen vs. windowed issue.

    Does anyone know how to change the video display settings for StarCraft 2 WITHOUT loading the program?

    ReplyDelete
  167. Hi! Quick Question :]
    I downloaded Wine 1.2 and ran all the commands in the terminal. But when i got down to the last line (./winetricks vcrun2008 vcrun2005 allfonts d3dx9 win7
    winecfg), the following pops up:
    ----------------------------------------------------
    sha1sum mismatch! Rename /home/huynh/.cache/winetricks/./takao-fonts-ttf-003.02.01.zip and try again.
    ----------------------------------------------------

    I barely downloaded Ubuntu 10.10 so..im so new to linux >.<

    ReplyDelete
  168. Sounds like Winetricks miss downloaded something. Clear out the winetricks cache in your home folder and try running the command again. (The cache folder is hidden by default, to see it press ctrl+h)

    ~Jeff

    ReplyDelete
  169. Sorry for my bad english and for "revive" the post
    I use an ati radeon an ubuntu 10.10, emulatin like this post said i can get the starcraft 2 running, the sound works perfect but nothing appears at screen except mouse, a black window (using emulate desktop)

    someone knows a possible sollution??

    Thx

    ReplyDelete
  170. I'm running fc13 with wine 1.3.6. After following all the directions, I tried to install from the CD; unsuccessful, clicking "run with wine" on the installer gives the waiting cursor for a second and shows a Wine starting installer task on the taskbar, and then does nothing. After mounting properly, (before mounting properly the installer/wine gave an error that it couldn't find the install files when I tried "run with wine" on installer.exe), I made an iso (mount CD, then right click on mount point and click copy CD). The installer starts fine from the iso, but I don't have enough disk space left after making the iso to try installing. Note for mounting, when using the uid=27973 I did not have permissions to read/execute the files; when mounting make sure you use uid=$(id -u).

    ReplyDelete
  171. I'm able to get the game running fine in guest mode, but when I start up multiplayer, it stops working correctly and makes it so no one else can use the internet in my house. I must literally powercycle the splitter to get everything to work again. This is the strangest bug I have ever encountered. Any ideas?

    ReplyDelete
  172. There r multiple wine 1.2s so which one do I use?

    ReplyDelete
  173. ATTENTION: TO GET SC2 INSTALLER TO WORK, YOU HAVE TO GO TO WINE CONFIGURATION->LIBRARIES->SELECT MSVCR AND PUT "NATIVE FIRST THEN BUILTIN"

    ReplyDelete
  174. Perfect Post!!! It works!! Thanks a lot ;)

    ReplyDelete
  175. Hi, I followed all of your steps and had to tweak the winetricks thing (Error 404 URL for the opensymbol package). I'm getting this on the installer screen -- I can't see the buttons at all, but I can hear it.

    http://www.html5image.com/v/3l

    ReplyDelete
  176. What is the better way to run windows applications (word-search 8 specifically) In Linux Ubuntu? WINE will not?

    ReplyDelete
  177. If it is a non-3D application and you have a windows license a virtual machine with virtual box is always an option.

    ReplyDelete
  178. On my Ubuntu 10.10 StarCraft 2 works after some problems but if I want to scroll to the left or right and I move the mouse to fast, the game does not scoll but the mouse cursor becomes the X cursor. This happens in fullscreen mode too. Can I change this somehow?

    ReplyDelete
  179. I installed Starcraft 2 on ubuntu 10.10 successfully, it patched with nor problem but now won't open, whats up?

    any help is much appreciated
    Thanks in advance

    ReplyDelete
  180. I've got fixed the problem with INTERNET_OPTION_CONNECT_TIMEOUT by installing native wininet with winetricks:
    $ winetricks wininet

    ReplyDelete
  181. I'm a beginner. Downloaded ubuntu 10.04 three days ago. Been working through everything and got SC2 downloaded thanks to your tutorial. But the sound isn't working. I know its not completely necessary but I don't know if its an easy fix. If so could you help me out?

    ReplyDelete
  182. Check the audio settings in your WineCFG and play with the settings some. Try different Wine versions. If your not opposed to spending a few $$ Crossover games is worth the money for it's "just works" factor.

    ReplyDelete
  183. Looking further into it I see wine 1.3 has been known for crashes in sound. Would uninstalling wine 1.3 and installing wine 1.2 erase star craft? Idk if thats a stupid question. But I would play without the sound if I have to go through the entire download again.

    ReplyDelete
  184. ok I'm a test bunny for my boyfriend's test with linux for the computer illiterate. he put me on a linux laptop I was doing fine with everything until trying to download star craft I fallowed the list of things to do. I have wine on the laptop so i get the winecfg command do everything and after that nothing happens. please what am I doing wrong
    yes I know this is an PIBCAK error but I'm harder to fix them my laptop.

    ReplyDelete
  185. hello I recopiled some information to make a intalation that resolve the Runtime Error: Microsoft Visual C++ Runtime Library hello I recopiled some information to make a intalation that resolve the Runtime Error: Microsoft Visual C++ Runtime Library

    thats are the instructions you have to follow :

    INSTALAR STARCRAFT2 BY PLAYONLINUX;
    INSTALL INSTALL PLAYONLINUX /LOOK AFTER THAT WINE WOULD BY INSTALLED BY DEPENCES/
    INSTALL WINETRICKS AS FOLLOW:

    # rm -f winetricks
    # wget http://winetricks.org/winetricks
    # sudo cp winetricks /usr/bin
    # sudo chmod +x /usr/bin/winetricks

    Since free is good I'll talk about the Wine HOWTO first. First off, download and install Wine 1.2 on your system. Next, run the following commands in terminal:


    winetricks droid fontfix fontsmooth-rgb gdiplus gecko

    run the install-gecko.sh ((if the command before was erroneous, you can get if doing: wget http://winezeug.googlecode.com/svn/trunk/install-gecko.sh)) and then try it again
    winetricks vcrun2008 vcrun2005 allfonts d3dx9 win7
    winecfg

    In the configuration Window it opens go to the libraries tab and enter mmdevapi in the new override for library box and click add. Now scroll through the existing over rides list for mmdevapi click edit and set it to disabled. Finally click on the audio tab and set it to alsa.

    If you still have audio issues after doing this and your distro uses Pulse Audio (Ubuntu does) install Wine 1.2 that has been built with pulse audio support with the following commands in terminal:

    sudo add-apt-repository ppa:c-korn/ppa
    sudo apt-get update && sudo apt-get upgrade



    Also - if you are trying to install from the retail CD (with Wine or Crossover) you might need need to manually mount the disc due to an issue with its split PC/Mac auto mounter. To do this run the following two commands in terminal:

    //THIS IS NOT MANDATORY, YOU CAN ALSO COPY THE FOLDER TO YOUR PC AND IN THE INSTALLATION PROCESS SELECT A PATH OF THE EXECUTABLE INSTEAD SELECTING THE MOUNTED DVD/ISO DEVICE, THAT IS WHAT I HAVE DONE ALLREAY AND IT WORKS WITHOUT PROBLEMS.


    sudo umount /media/SC2*
    sudo mount -t udf -o ro,unhide,uid=$(id -u) /dev/cdrom /media/cdrom

    Note some drives may use /dev/sr0 (or other mount points) instead if /dev/cdrom. If you are having issues getting it working scroll through the comments for some good tips - if you are still unable to get it working after that, make a comment of your own :)

    Also - if you are attempting to get the game running with an ATI card, it was suggested in the comments that making it run under a virtual desktop allows it to run on some systems it otherwise fails to work on.

    I tested the above methods on Ubuntu 10.04, Linux Mint Debian, and Chakra - but they should be applicable to any modern Linux distribution. Have any issues feel free to drop a comment below and I will do my best to lend a hand debugging. Happy gaming!

    ReplyDelete
  186. I just want to thank you after finding this post I used your instructions for mounting the disc with the unhide command and it worked like a dream on OpenSuse.... now just need to hope the radeon driver can handle it as I would rather avoid fglrx

    ReplyDelete