Monday, 5 September 2011

Community Hack Allows Linux Wine users to experience OnLive



These instructions are written for Ubuntu 11.04. And we’ll need Wine 1.3.27 to get it installed (plus a patch). These instructions assume you don’t have Wine installed at all:

Open up a terminal window and type the following:
sudo add-apt-repository ppa:ubuntu-wine/ppa && sudo apt-get update && sudo apt-get install git && sudo apt-get install autoconf && sudo apt-get build-dep wine1.3 && sudo apt-get install checkinstall && sudo apt-get install wine1.3
This will add the most current repository of Wine. We need to build our own for the patch, as well as a few other tools. The dependencies for Wine can be quite large, nearly 600mb.

Now, let’s grab the freshest version of Wine. (1.3.27 at the time of this writing).
git clone git://source.winehq.org/git/wine.git ~/wine-git
Go into that directory.
cd ~/wine-git
Now let’s get the patch: This patch was written by David Parrish.
wget http://bugs.winehq.org/attachment.cgi?id=35873 -O wine_rawinput_8_8_2011.patch
Use it to patch Wine.
patch -p1 < wine_rawinput_8_8_2011.patch
So, now that we’ve patched Wine, let's get to building!
autoreconf && ./configure && make depend && make
This will take a while, like a long while, you might want to make a sandwich, grab a coffee and then go for a walk. If you have a multi-core processor you can add make -j 4, which means it will thread the process 4 times.

You could also do this if you decide to install the patched build to your system, or keep it separate. I’d suggest keeping it separate but if you do decide to install this version type:

make install
I’d also suggest making a package file of the patched version, just in case anything goes wrong or you decide to install it using the ‘Software Center.’
checkinstall -D –install=no
An option will come up to enter the package information, press 3, and change the version to 1.3.27. Then hit enter.

Now that we have Wine patched and ready, let’s download OnLive! I suggest downloading the app to your desktop.
cd ~/Desktop/
wget http://www.onlive.com/d/windows -O OnLive_Setup.exe
We also need to change the permission of this file to make it executable.
sudo chmod a+x OnLive_Setup.exe
If you installed the patched version of Wine, you can just double-click on the Setup app on your desktop. If not, type this command.
cd ~/wine-git
./wine ~/Desktop/OnLive_Setup.exe
Run through the setup process on that, and when it completes run OnLive with this command:
cd ~/wine-git && ./wine ~/.wine/drive_c/Program\ Files/OnLive/OnLive.exe
You will need to run that each time if you don’t have the patched version installed. I’d suggest making a shortcut to it, or you can use mine:
#!/bin/bash
cd ~/wine-git
./wine ~/.wine/drive_c/Program\ Files/OnLive/OnLive.exe
Create an empty file on your desktop, paste in the above and rename it to Something.sh – then change the properties to enable executing as a file.

And you’re done! OnLive should now be running on Linux!

A few notes:


Audio does seem to cut out occasionally, especially if you had multiple streams playing recently. If it does, exit OnLive and reset pulse:
pulseaudio -k
Some users have noted that the mouse occasionally has only 180° of movement.

- “This is too hard! I’m Lazy and dangerous!!!”

Ah, after my own heart, you are. Okay, well if you get stuck or are very lazy and aren’t really concerned about hosing a Wine install then use this package (heh). Just double click to install using the software center.

But please be advised that is a very dirty way of installing the patch; I don’t suggest using it.

- “I have Wine already!!! Can I have some cheese?”

If you have Wine installed already then remove it, and install using the ppa I mentioned. If the install is vital, try and update it to the closest you can find and run this:
sudo add-apt-repository ppa:ubuntu-wine/ppa && sudo apt-get update && sudo apt-get install git && sudo apt-get install autoconf && sudo apt-get build-dep wine1.3 && sudo apt-get install checkinstall
Followed by steps 1-6 and 6.b – You will need to run Wine from the folder created by the patch using:
cd ~/wine-git && ./wine ~/.wine/drive_c/Program\ Files/OnLive/OnLive.exe
Now if you have followed these instructions you should be able to play OnLive using Linux! It isn’t perfect, but until OnLive gets it’s offical Linux client out, this will fill the void!

SOURCE: OnLive Informer.

No comments:

Post a Comment