1: Login at http://www.battle.net with your account and download the Starcraft 2 Wings of Liberty Beta installer for Windows
2: Install the git version control system so you can download the Wine source code. Also install build-essential and the dependencies for wine as you will need it to compile wine from source
sudo aptitude install git-core build-essential -y
sudo apt-get build-dep wine -y
3: Get the Wine source code via git and put it in your home directory in a folder called winesourcecode
git clone git://source.winehq.org/git/wine.git ~/winesourcecode
4: Go into the winesourcecode folder
cd ~/winesourcecode
5: Download the patch from phyrex1an.net and the winehq bugs site and patch the Wine source code so you are able to login to Battle.net with Starcraft 2 Wings of Liberty Beta and so will not get a black screen after patch 16. You could check the bottom of this article to see what output you should get for the patch from phyrex1an.net.
wget -q -O - http://phyrex1an.net/sc2-login.diff | patch -p1
wget -q -O - http://bugs2.winehq.org/attachment.cgi?id=29498 | patch -p1
6: Compile Wine after you have applied the patch (see step 5)
tools/make_requests && ./configure && make depend && make
7: Install the software into your system
sudo make install
8: Download winetricks so you can get extra software and settings for Wine which you will need to run Starcraft 2 Beta Wings of Liberty. Visual basic 2008 and 2005 will need some interaction from the user because its needs confirmation. Make sure cabextract is installed.
sudo aptitude install cabextract -y
wget http://winezeug.googlecode.com/svn/trunk/winetricks
sh winetricks fontfix fontsmooth-rgb allfonts gecko gdiplus d3dx9 win7
sh winetricks vcrun2008 vcrun2005
9: Open winecfg so you can change settings that are needed to run Starcraft 2 Beta Wings of Liberty
winecfg
10: Make settings to winecfg
Open the Libraries tab11: Restart your Wine server
Select mmdevapi from the pull down list
Click edit and set it to disabled
The go to the audio tab and set it to use alsa
wineserver -k
12: Start the Starcraft 2 Wings of Liberty Beta installer via Wine. My StarCraft 2 Wings of Liberty Beta installer was downloaded into the Downloads folder
wine ~/Downloads/StarCraft_2_Beta_enGB.exe
13: Select the following directory so it will download accordingly
My computer, C:\, Program Files
14: After it has been downloaded the Starcraft Wings of Liberty Beta install menu will pop-up
Click install, choose C:\Program Files\
15: After the installation has been done, Starcraft 2 Beta will patch itself up until it has the current release. To start your freshly installed epic uber game
wine ~/.wine/drive_c/Program Files/Starcraft 2 Beta/Starcraft 2 Beta.exe
Good luck and have fun!
succesful patch:
———————————————————————
cd ~/winesourcecode
$ wget -q -O - http://phyrex1an.net/sc2-login.diff | patch -p1
patching file dlls/kernel32/tests/debugger.c
Hunk #1 succeeded at 558 (offset 3 lines).
Hunk #2 succeeded at 602 (offset 3 lines).
patching file dlls/ntdll/loader.c
———————————————————————
unsuccessful patch:
———————————————————————
$ wget -q -O - http://phyrex1an.net/sc2-login.diff | patch -p1
patching file dll/skernel32/tests/debugger.c
Hunk #1 FAILED at 555
Hunk #2 FAILED at 597
2 out of 2 hunks FAILED -- saving rejects to file dlls/kernel32/tests/debugger.c.rej
patching file dlls/ntdll/loader.c
Hunk #1 FAILED at 2533
Hunk #2 FAILED at 2622
Hunk #2 FAILED at 2652
3 out of 3 hunks FAILED -- saving rejects to file dlls/ntdll/loader.c.rej
———————————————————————

does this also work after patch 14?
Yes it should. I have my game running.
I have tested to update with patch 15, and still everything is working fine.
My stats have been reset, but besides that it works great!
Well, git kept locking up at the same point, had to manually DL the most recent Wine source. After that, patch worked and am compiling as I write. Hopefully this will run the game from the folder I copied over from my Windows install. If not, I’ll just install it manually.
Thanks for your awesome guide!
Too bad the git repository did not work for you. It is very convenient if you want to update your wine source again. It would just get in the changes which would save time.
Also: I think your copy of a windows partition would work, but im not sure since i have not tested this.
Its too bad the beta has been closed temporarily, so Blizzard can tweak the game. The beta will be reopened again, for the last tests before the final game will come out!
Thanks for your compliments about the guide!
Great article. Thanks for the information, when WINE is finished I’ll have to check it out. How’s the performance of your game and what system are you using to run it?
Thanks for the compliments!
Im using my own build PC. It has an Intel quad core cpu with just 2GB of memory. My graphics card is from Nvidia (8800 ultra). My current harddisk is an SSD (solid state disk) from Intel.
Great blog. I like the way you have it laid out. Thanks.
This blog is just excellent, I assumed I do know lots, but I’m so mistaken, like the prior saying the additional you already know, the additional you find out how small you know. Thanks for the info.
Pingback: Starcraft 2 wings of liberty wine ubuntu 2010 in review | Slickeel's Blog