HowTo install StarCraft II on Ubuntu 10.10 Linux under wine.
Install the latest version of Wine from http://www.winehq.org/download/
Mount the CD drive properly:
sudo umount /media/SC2*
sudo mount -t udf -o ro,unhide,uid=$(id -u) /dev/sr0 /media/cdrom
(you might have to use something different than /dev/sr0 – that’s what it is on my Ubuntu 10.10 install)
Then run these commands:
chmod +x winetricks
./winetricks droid fontfix fontsmooth-rgb gdiplus gecko
./winetricks vcrun2008 vcrun2005 allfonts d3dx9 win7
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 (it should be alsa by default).
Then run the installer through wine:
and you’re off!
Once installed, I had to perform some regedit tweaks in order to get good graphics in starcraft under wine, run regedit under wine:
Navigate to HKEY_CURRENT_USER/Software/Wine/Direct3D (you may have to create this key).
Right click on this Direct3D key and select “New” then select “String” for each of the keys bellow and set the string to the corresponding value.
|VideoMemorySize||1024 (Set this value to the RAM on your video card)|
To launch starcraft 2 in window mode I used the -displayMode=0 argument, like:
env WINEDEBUG=-all WINEPREFIX="/home/dbaker/.wine" wine /home/dbaker/.wine/drive_c/Program Files/StarCraft II/StarCraft II.exe -displayMode=0
Screenshot of it automatically updating starcraft 2 with the latest patches after install in wine:
This is me hiding my command centre after a friend totally owned me on my first ever network game: