I was about to send you an email, but I figured I'd just post here. I don't use Ubuntu myself, so I my instructions may be a little off. Before you start, you will need all the various "prerequisites" for getting wine to work. The easiest way to do this may be to try to install Wine using the Ubuntu package manager.
Open the "Ubuntu Software Center" under the "Applications" tab and follow the instructions here: http://www.winehq.org/download/deb to add the ppa:/unbutu-wine/ppa repository, then click the link labeled "click this link to install the wine1.3 package".
This will install a version of wine that will let you play AO but mouse-look and mouse-steer will be broken.
Now you need to get the wine source code to apply the patch. The easiest way is probably to ask the package manager to do it for you since it now knows about Wine. Open a Terminal/Console or whatever window. Whatever it's called in Ubuntu that gets you a command prompt and type the following:
Code:
sudo apt-get source wine1.3
At this point I'm a little fuzzy. You should end up with the source code either in a directory named wine-1.3.29 or as an archive named wine-1.3.29.tar.bz2. If you end up with the archive you'll need to extract the contents:
Code:
bunzip2 < wine-1.3.29.tar.bz2 | tar xvf -
Anyhow, once you get a directory with all the source code, you need to go into that directory:
At this point you could should probably get the patch (I'm assuming that you already have wget installed):
Code:
wget "http://bugs.winehq.org/attachment.cgi?id=33905" -O mouse.patch
Now, we apply the patch:
Code:
patch -b -V t -p1 < mouse.patch
If everything up to this point is successful, then we need to rebuild wine. I think the best way, again, is to let the package manager know what you're doing:
Code:
dch -i I applied the mouse patch to this version of wine
debuild
sudo dpkg -i ../*wine*deb
The "dch" command makes the version of wine that you're building slightly ahead of the one that the package manager downloaded and installed before and tags it with a little comment. "debuild" should build everything, and the "dpkg" command will hopefully install everything you just built.
Hopefully that all works. Good luck!