---
title: Howto: Deus Ex: Human Revolution in Ubuntu/Linux
date: 2012-01-07T00:09:43.000Z
---

I just bought _Deus Ex: Human Revolution_, and if you did too, or are contemplating it, don't let the bad rating on WineHQ scare you off - it runs near perfectly.
Now, the in-game tutorials are a bit wonky, but if you can live without those (I know I didn't have much of a problem without them), here's how you can install and run DE:HR in Ubuntu/Linux.

You are going to need [Vineyard](http://vineyardproject.org), so install that first if you haven't already, also we are going to use the terminal a bit, but don't worry, it's not scary, just quicker.

## First off, let's install the game.

Do whatever you would normally do; run the installer from the DVD or download it from Steam - just make sure you do it in a new prefix in Vineyard.

## Secondly, install a custom version of Wine (with rawinput2 patch).

We're going to use one provided by [PlayOnLinux](http://www.playonlinux.com/), so if you have _PlayOnLinux_ installed, just install Wine 1.3.34 rawinput2 from there, otherwise, either go to [http://www.playonlinux.com/wine/binaries/linux-x86/](http://www.playonlinux.com/wine/binaries/linux-x86/), download the one called _PlayOnLinux-wine-1.3.34-rawinput2-linux-x86.pol_, rename it to have a _.tar.bz2_ ending and then extract from it the folder called "_wineversion/1.3.34-rawinput2_" to _$HOME/.local/share/wineversions/1.3.34-rawinput2_ - **or run the following command**:

```bash
mkdir $HOME/.local/share/wineversions && \
  wget -q -O - 'http://www.playonlinux.com/wine/binaries/linux-x86/PlayOnLinux-wine-1.3.34-rawinput2-linux-x86.pol' | \
  tar --wildcards --transform 's/wineversion///' --bzip2 -xvf - -C $HOME/.local/share/wineversions/ 'wineversion/*'
```

## Setup Vineyard to use it

Now we need to edit the prefix configuration so Vineyard knows to run this version of Wine, so if you know where that directory is, just go and open the file _wrapper.cfg_, otherwise open Vineyard Preferences, select the prefix and under "_Tools_", click "_Open Main Drive_" and then navigate one directory up, there's your _wrapper.cfg_.

Add the following lines to this file:
```bash
ww_wine="$HOME/.local/share/wineversions/1.3.34-rawinput2/bin/wine"
ww_wineloader="$HOME/.local/share/wineversions/1.3.34-rawinput2/bin/wine"
ww_wineserver="$HOME/.local/share/wineversions/1.3.34-rawinput2/bin/wineserver"
ww_winedllpath="$HOME/.local/share/wineversions/1.3.34-rawinput2/lib/wine"`
```

Or, if you installed the Wine version through PlayOnLinux:
```bash
ww_wine="$HOME/.PlayOnLinux/wine/linux-x86/1.3.34-rawinput2/bin/wine"
ww_wineloader="$HOME/.PlayOnLinux/wine/linux-x86/1.3.34-rawinput2/bin/wine"
ww_wineserver="$HOME/.PlayOnLinux/wine/linux-x86/1.3.34-rawinput2/bin/wineserver"
ww_winedllpath="$HOME/.PlayOnLinux/wine/linux-x86/1.3.34-rawinput2/lib/wine"
```

## Done! (or do you have sound?)

Now you actually might be able to run _Deus Ex: Human Revolution_ just fine! For me though, I needed to go to _Vineyard Preferences_ again and make sure the _Deus Ex: Human Revolution_ launcher had "_Disable PulseAudio whilst running_" checked on, and then it was smooth sailing.

Hope this little guide was helpful, comments are very welcome.
