Installing Rift On Ubuntu

Overview

  1. Installing Development Version of Wine (Currently 1.3)
  2. Setting up a WINEPREFIX.
  3. Using winetricks to install pre-requisite components.
  4. Setting a virtual desktop.
  5. Configuring the Registry.
  6. Installing the Game

Installing Wine

From a console, run this command:

sudo add-apt-repository ppa:ubuntu-wine/ppa

Then run an update so that Ubuntu knows what apps it can install from this repository

sudo add-apt update

Then from Synaptic, you can install Wine 1.3 (Development Release).

Setup a Wine Prefix for the game

Before you start, it's a good idea to keep your Rift install separate from your other wine apps, to do this you can use a wineprefix. For some good info on wine prefixes, here's a great article on UbuntuGamer.

From a console:

export WINEPREFIX=$HOME/.wine-rift

When you run winecfg, it will now configure the directories under .wine-rift. If anything goes wrong with the install, we have everything contained in it's own personal wine directory. Uninstalling is as easy as deleting the directory. When the game has finished installing, it will include the prefix in the Icon it creates to launch the game.

WinecfgTip: While I was installing, I found it easier to set the windows to a virtual desktop size. So it doesnt (potentially) go full screen and make it tricky to access my desktop if something goes wrong. To do this, open winecfg and set the desktop

The next thing we need to do, is install a couple of items to wine that Rifts needs to run smoothly.

Using Winetricks, this is as easy as running the following from a console.

winetricks corefonts d3d9

That should be enough to get started, there's a couple of registry tweaks to improve the performance on the game.

Registry Configuration

When I first installed this under wine, it went in smoothly, but performance was terrible. There were some registry tweaks recomended on the WineHQ App entry for Rift which made a huge improvement. So I have included them here.

From a console:

regedit

This will open the wine registry editor, here's a screenshot of the keys we are going to add (I'll include the explanation and text under the illustration).

Regedit

Find the following path in the registry and we can add our new key below it:

HKEY_CURRENT_USER » Software » Wine

Add a new Key called Direct3D and under that key we can add the following strings.

String Value
DirectDrawRenderer opengl
Multisampling enabled
OffscreenRenderingMode backbuffer or fbo
use fbo if you want shadows, use backbuffer if you want multisampling.
UseGLSL enabled
VertexShaderMode hardware

This will enable the anti-aliasing. However, we need a couple of more entries and they will be specific to your machine.  I found an issue with none of the textures loading (everything was black) when I logged in, changing OffScreenRenderingMode to fbo resolved the issue.

First off, we need to know a little about your graphics card, from a console:

lspci -n

This will output a listing like this: 

lspciThe line of interest to us, is where the number in the second column is 0300

The numbers on the right of this figure is the make and model of your graphic card, so in my case 10de:0ca3 can be read as 

10de = Nvidia
0ca3 = GT240

 

We can add these settings to our registry now:

0x10de

String Value
VideoPciDeviceID 0xca3
VideoPciVendorID  
VideoMemorySize 512

Notes:

When you add your values for DeviceID and VendorID, add 0x at the begining of the string, so mine is 10de, so in the registry I use 0x10de.

If you are unsure of your memory size for your graphic card, we can use lspci to find the value. Run lscp on it's own and find the line that refers to your graphic card, here's mine.

01:00.0 VGA compatible controller: nVidia Corporation GT215 [GeForce GT 240] (rev a2)

Now we can get the full details on the card with this command:

lspci -v -s 01:00.0

which gives me all the details on my graphic card, including Memory:

[virtual] Expansion ROM at d1000000 [disabled] [size=512K]

Installing Rift

All the hard works done at this point, download the client and run with wine.
 

wine ./Rift_LIVE_Patcher_setup.exe

Once installed, it will leave an icon on your desktop, and at that point - your good to go :-)

Topic:

Comments

VERY NICE instructions! I followed them to a T, but I am still having a few issues....first off i realized that after going back into the registry, the key and strings i entered did not save...being newer to Linux, do i have to do something to actually save them, or what? NEXT, the game is installed just fine, but when i launch it, it nags for DirectX. I close it out, and the launcher just goes back to saying PLAY and nothing happens...i have launched the game via link on desktop, and right clicking the exe and telling it to run in wine launcher and so on....any advice?

DirectX can be anoying in wine, I found a good solution was to use an older version based on GOG.com's recommendations, you can download it from here - http://www.microsoft.com/download/en/details.aspx?id=8109, in winetricks you can install d3d9 which will install DirectX, however, game updates may have changed the requirements on Dx. Try the windows version as your best bet. The issue with launching it may be a result of the wineprefix getting mixed up in some way, so it's trying to launch the game but not loading the correct wine prefix, you could try running it from a console and see if it runs ok. From a shell: export WINEPREFIX=$HOME/.wine-rift then CD to the Rift directory and launch it with "wine <launchername>" I don't play Rift any more so I can't pull up my setup as an example, I hope this helps with debugging your install.

Awesome reply time! :) I am currently at work and cannot try this. When i get home tonight I will fiddle with it some more and see what I can do. Thanks again for the help! You may be hearing from me again soon if I come up with any other questions.

Thanks for this excellent guide and explanation. I am new to linux and learned a lot from this. Also, I can play Rift!

The world is all transparent dark and when the char loads, on the loading screen, it,s sort of scarry lol... it flashes with squares of multiple colors....

Whats your graphics card?

Chipset Model: ATI Radeon HD 4670 Type: GPU Bus: PCIe PCIe Lane Width: x16 VRAM (Total): 256 MB Vendor: ATI (0x1002) Device ID: 0x9488 Revision ID: 0x0000 ROM Revision: 113-B8030C-253 EFI Driver Version: 01.00.367 Displays: iMac: Resolution: 1920 x 1080 Pixel Depth: 32-Bit Color (ARGB8888) Main Display: Yes Mirror: Off Online: Yes Built-In: Yes Display Connector: Status: No Display Connected This is what I can find. Any suggestions? It doesn't look like the example given, but then it's not Linux either.

Add new comment

I never censor comments based on political or ideological point of view or of a critical nature. However, I reserve the right to delete those comments that are off-topic, spam, abusive, use excessive foul language, or include ad hominem attacks. Once a comment is made public on my website, I will not remove it by request. As a user, you are responsible for your own communications and are responsible for the consequences of your posting.
By submitting this form, you accept the Mollom privacy policy.