Updated: Community Hack Allows Linux/Wine users to experience OnLive

by Nate Ramos on September 4, 2011


UPDATED: 9/8/2011

We’ve been sitting on this a few days, and have put its author through extensive testing and re-writes in order to bring this to you. We’re fairly certain that the following instructions brought to you by OnLiveInformer community member: Dephyre will really excite those of you who have an affection for penguins.

 

 

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: If you’re not comfortable with the terminal, you will be by the time this is done!

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, lets’ 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:

b
make install (EDIT: Change to 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.

chmod a+x OnLive_Setup.exe (EDIT: 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 you 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.  If you experience this issue, please give me the log from your terminal so I can isolate the issue.

- “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 my 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 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!

If you have any problems, comments, or concerns then please Continue the discussion in our forum at: http://onliveinformer.com/forum/showthread.php?p=2538#post2538

 

If You Enjoyed This Article Please Help Us By Submitting it to:

  • Ysmael Castillo

    anybody get this working on ubuntu 11.10

  • achoo5000

    The patch given is not valid with the latest version of Wine (see post by Richrd Smith). You can work around that by doing the following right after the git clone line:

    git checkout wine-1.3.29

    • achoo5000

      Sorry, you need to be in the ~/wine-git directory, so just do it right before the patch wget line.

  • Matthew Wallace

    someone should make a deb file for this

  • Jordi Coma Garcia

    Works perfecte with playonlinux (wine 1.3.27) thanks for all.
    I tried to pach with the last wine and it didn’t work.

  • Tom Crocker

    For me it all works with the latest version of wine 1.3.29, no patching required. I just ran the installer in wine, and then ran the launcher shortcut. Only tried one game so far, but seems to run pretty smooth

    • Tom Crocker

      scratch that.. mouse doesn’t work in play.. wasn’t a problem when playing Dirt 3, but makes FPS games unplayable!
      I’ve tried compiling the patched version but I can’t because it’s 32bit and I’m running 64 bit ubuntu.. Any suggestions???

      • Tom Crocker

        stupid.. my fault.. Didn’t have dependencies installed… Compiling now….. (twiddles thumbs)

  • JFlamme

    I was unfortunately unable to get OnLive start with the PlayOnLinux method with the new ubuntu 11.10. It hangs when trying to connect to the server according to the debug.

  • X23

    Here’s what worked for me using Playonlinux on ubuntu 11.04.

    1) Download and install Playonlinux make sure you get latest version 4.0.12 see the download page for your distro at playonlinux.com

    2) Launch Playonlinux  click install select internet exlorer

    3) Run internet explorer then go to Onlive, signup and download setup file to desktop

    4) Open Playonlinux again, select tools, then select ‘manage wine versions’ install version 1.3.27 rawinput on x86 and amd64

    5) Then follow Timothy Kist instructions below from number 3) but select 1.3.27 rawinput as wine version

  • http://twitter.com/opensrcbistro OpenSourceBistro

    Thanks for the tutorial. Got it up and running on Vectorlinux (Slackware based Linux) Worked like a charm with Wine version 1.3.29
    Made a video of how it turned out.
    http://www.opensourcebistro.com/blog1/?p=674

  • Ylalatayasefue

    Can I use it on Debian Wheezy 64b ?

  • Timothy Kist

    I’ve got it working on PlayOnLinux! So much easier!

    1) Download and install PlayOnLinux
    2) Click Install
    3) Click at bottom of window “Install a non-listed program”
    4) Click next
    5) Make sure option “Install a program in a new virtual drive” is selected and click next
    6) Give it a name, e.g. “OnLive”
    7) Select “Use another version of Wine” and click next 8) Select “wine 1.3.22″
    9) Browse to OnLive-Setup.exe
    10) Install OnLive
    11) Select the OnLive.exe, click next then type the shortcut, click next
    12) Click “I don’t want to make another shortcut”
    13) Run and enjoy ;)

  • http://twitter.com/Galorin Richrd Smith

    I have followed the above on my beta of 11.10.  When attempting to patch server_protocol.h, hunk#4 fails, and the following is put into server_protocol.h.rej.

    — include/wine/server_protocol.h
    +++ include/wine/server_protocol.h
    @@ -5728,8 +5823,13 @@
         struct set_cursor_reply set_cursor_reply;
         struct get_suspend_context_reply get_suspend_context_reply;
         struct set_suspend_context_reply set_suspend_context_reply;
    +    struct get_raw_input_device_list_reply get_raw_input_device_list_reply;
    +    struct register_raw_input_device_reply register_raw_input_device_reply;
    +    struct get_registered_raw_input_devices_reply get_registered_raw_input_devices_reply;
    +    struct get_raw_input_device_info_reply get_raw_input_device_info_reply;
    +    struct get_raw_input_data_reply get_raw_input_data_reply;
     };
     
    -#define SERVER_PROTOCOL_VERSION 425
    +#define SERVER_PROTOCOL_VERSION 430
     
     #endif /* __WINE_WINE_SERVER_PROTOCOL_H */

    I had to go in and manually patch this as the line counts were wrong.  SERVER_PROTOCOL_VERSION was also 426 pre-patch, not 425.  This is the current state of the git repo.  It hasn’t finished compiling yet, but without those new structs, everything else will fail.  Probably after a long compile time.  Wish me luck and I will report back if additional steps are needed.

    edit : libtool is needed by autoreconf but is not included as a dependency.

    • achoo5000

      Alternatively you could have gone back in the git history to a time when the patch was valid, i found the last good release to be wine 1.3.29

      so after the git clone line I would do this:

      git checkout wine-1.3.29

  • arpad

    Thank you for your work and help! For me this is a new experience!:)
    Unfortunately the mouse goes away when the game starts, otherwise its very good!!

  • http://www.facebook.com/ThisIsRuta Michael Ruta

    I got upto the “autoreconf” section and was the process stopped with the following notice;

    checking for -lfreetype… not foundconfigure: error: FreeType development files not found. Fonts will not be built.Use the –without-freetype option if you really want this.

    I tried adding “–without-freetype” onto the end of the autoreconf command, but it didn’t work.

  • Mark Anderson

    Thanks for the tutroial, it installed perfectly but I cant get my mouse to work in-game. It works perfectly at the onlive menu but not at all when I actually load a game. When I start onlive it warns me that one of my devices wont work. Any idea what might be wrong?

  • LinuxNoob

    I got it working on Fedora using PlayOnLinux.  Downloaded the Onlive install file and changed permissons with the instructions from the articale.  From PlayOnLinux I selected install a non-listed program, chose Wine 1.3.27-rawinput2 from the list of available wine versions, and pointed it all the Onlive install file on my desktop.  Onlive installed and everything seams to be working fine. 

  • Kolinsin

    get work, thanks for all your help. I am a Ubuntu Noob but by following you guide I now have Onlive running. Thinking now if I’m cocky enough to get it to run on Raspberry Pi when released :P

    Thanks again

  • Hiddensomeone

    i am installed wine pached force.but i open onlive it blank white

  • Dorfdad

    Guys we have made some edits to the instructions. 

    change. ‘b
make install’ to ‘make install’ and ‘chmod a+x OnLive_Setup.exe’ to ‘sudo chmod a+x OnLive_Setup.exeI will make them in the article above – but for those having issues make sure you do these right!

  • foo

    I’m going to give the audio stutter, a shoot in the dark. Might the audio problems be resolved by removing pulseaudio and installing esound “alsa”

    I have to do this on my mythtv boxes or the sound would get scratchy, but this makes the volume control disappear. I found this site to get it back “http://howto.blbosti.com/2010/04/ubuntu-make-alsa-default-instead-of-pulseaudio/”. I’m still compiling so I can’t say if this works or not.

  • Thomaster94

    I get the following error when trying to execute the command “autoreconf && ./configure && make depend && make”:

    ./configure: line 2097: config.log: Permission denied
    ./configure: line 2107: config.log: Permission denied

    Using sudo doesn’t help en su doesnt work in Ubuntu 11.04 (or at least I cant get it to work).

    Any ideas?

    • Anonymous

      Could you give me a log via http://pastebin.com/ and post it into the forums?

      • Thomaster94

        How should I get this log? Is it a file that’s automatically created or do I need the terminal to make one myself?

        • Anonymous

          It’s called ‘config.log’ in ‘~/wine-git’. Copy all the text into a new paste on pastbin.

          • Thomaster94

            I don’t see this file in Nautilus and when I try “sudo gedit ~/wine-git/config.log” I get an empty file and a few errors in the terminal saying that the file does not exist.

  • c0dehunter

    IT DOESN’T WORK FOR ME :(

    I did all the steps as described. Now when I launch OnLive I only get a blank white window which I suppose should be the Login window.
    I can post what terminal prints out when I start the launcher, if it will help?

    Also, at first glance, it seems like the installation of OnLive didn’t go as supposed – see this paste from terminal:
    http://paste2.org/p/1638397

    • Anonymous

      Yo c0dehunter, try removing your prefix folder ‘sudo rm -rf ~/.wine/’ and redoing the ‘chmod’ line with sudo. Then installing. (I’ll try to have that updated in the post) Keep me posted in the forums.

  • Anonymous Coward

    Does this let you play any game offered in OnLive or only the ones that are known to work with wine?

    • Anonymous

      All titles.

  • Anthony Pierre

    in a game the mouse goes away. I either can’t see it or something. when i am in the menu it works just fine.

    let me know if you need more info

  • Anthony Pierre

    in a game the mouse goes away. I either can’t see it or something. when i am in the menu it works just fine.

    let me know if you need more info

  • Anthony Pierre

    in a game the mouse goes away. I either can’t see it or something. when i am in the menu it works just fine.

    let me know if you need more info

  • http://rickmartensen.myopenid.com/ Martux

    Works like a charm on Linux Mint 11!!

    Thank you very much!!

  • Tiago Stürmer Daitx

    Very nice! The instructions worked flawlessly in my Linux Mint 10 installation. 

    The only pending issue is the stuttering+echo audio for which I haven’t found a solution yet – aside from that the performance and graphics are excellent even on an Atom+ION machine.

    OTOH I can now run WoW on this same wine-from-scratch-build with audio (no stuttering or echos), while previously I had to resort to the Karmic version from the Ubutun Wine PPA since the one for Maverick would play without any audio (winecfg was not able to configure the audio on that version).

    • Anonymous

      I found the audio works a bit more stable with Voice Chat disabled. And I usually kill (and restart) pulseaudio before launching.

      • Tiago Stürmer Daitx

        Fixed. The only machine I had at hand at the time with a 3D video board was a Dual Core Atom+ION system. I had a hunch that the audio issues might be related to low processing power. The CPU usage itself was ok but I realized that HT was enabled and that 2 virtual cores (corresponding to a single physical core) were being hit pretty hard. After disabling HT on the BIOS the load was distributed to both physical cores and I had no more issues with the audio.

        Any system with a more powerful processor wouldn’t feel a thing. Still, I’m glad to see OnLive running on Linux on a Dual Core Atom + ION system with an acceptable performance. Shame the latency I get is so high but the blame goes to living so far away from their servers (Brazil).

        Thanks for making OnLive a reality for us Linux users! Keep up the good work!

  • http://pulse.yahoo.com/_DFVBXOY5YLUP7MBMOP4TZ4JEBA P

    Well it goes almost all the way then complains about cannot contact the server  using Opensuse 11.3 x86_64 with the latest wine  from the suse updates

  • http://pulse.yahoo.com/_DFVBXOY5YLUP7MBMOP4TZ4JEBA P

    Well it goes almost all the way then complains about cannot contact the server  using Opensuse 11.3 x86_64 with the latest wine  from the suse updates

  • http://pulse.yahoo.com/_DFVBXOY5YLUP7MBMOP4TZ4JEBA P

    Well it goes almost all the way then complains about cannot contact the server  using Opensuse 11.3 x86_64 with the latest wine  from the suse updates

  • http://pulse.yahoo.com/_DFVBXOY5YLUP7MBMOP4TZ4JEBA P

    Well it goes almost all the way then complains about cannot contact the server  using Opensuse 11.3 x86_64 with the latest wine  from the suse updates

  • http://pulse.yahoo.com/_DFVBXOY5YLUP7MBMOP4TZ4JEBA P

    Well it goes almost all the way then complains about cannot contact the server  using Opensuse 11.3 x86_64 with the latest wine  from the suse updates

  • Entrephase

    HI ! I m sorry but during “autoreconf” command I got this and don t know how to go further ! 
    checking for X… no
    configure: error: X development files not found. Wine will be built
    without X support, which probably isn’t what you want. You will need
    to install development packages of Xlib/Xfree86 at the very least.
    Use the –without-x option if you really want this.
    And when I want to install “xlib/Xfree86, it doesn t find the package…
    Thanks for trying to help me !

  • Entrephase

    HI ! I m sorry but during “autoreconf” command I got this and don t know how to go further ! 
    checking for X… no
    configure: error: X development files not found. Wine will be built
    without X support, which probably isn’t what you want. You will need
    to install development packages of Xlib/Xfree86 at the very least.
    Use the –without-x option if you really want this.
    And when I want to install “xlib/Xfree86, it doesn t find the package…
    Thanks for trying to help me !

    • Chuck

      You need to install the xlib dev package, in debian/ubuntu it’s called libx11-dev so:

      sudo apt-get install libx11-dev

      and try again

  • Wesley Hearn

    Does the XBoX 360 USB Controller work?

    • https://launchpad.net/~tepples Pino

      It might work. I know the Xbox 360 controller works in SDL, but I haven’t tried it in Wine.

  • Anonymous

    Awesome stuff!

  • Hiddensomeone

    i tried 2 ways but 1. it  says “error 1″
    2. your pached wine deb gives error to Wrong architecture ‘i386′

    • Dorfdad

      are you using the same version of Ubuntu as detailed in the required section? Post in the forums please and see if we can get you some help.

    • Anonymous

      1. Where does it give that error? Can you copy and paste the console log (preferably on the forums in a [quote] block)?

      2. Since you are using the 64bit version of Ubuntu, it is advised that you do not use the patched debian version. (You could force the install but this may create issues).

      • Anonymous

        Yep, CyberXZT has it, my package was only compiled for 32-bit Os’s. You can try and use dpkg –force-architecture. But it’s safer if we can diagnose why it won’t build.

        • Hiddensomeone

          thanks

      • Hiddensomeone

        how can i force install

    • Anonymous

      1. Where does it give that error? Can you copy and paste the console log (preferably on the forums in a [quote] block)?

      2. Since you are using the 64bit version of Ubuntu, it is advised that you do not use the patched debian version. (You could force the install but this may create issues).

Previous post:

Next post: