Oculus Rift and Linux

So there is some very tentative support for the Oculus Rift in Linux. Basically at this point, I am looking to just get my desktop extended to the Rift, to me this is a the most basic first step. I am not there yet, but I am close. Here is the step by step instructions for getting started. When I run one of the demos, like Simple or Test.py, it does light up my Rift and I do get an extension of my desktop, the problem is the displays are switched and I have not figured out how to change that yet.

sudo apt-get install -y build-essential libusb-1.0-0-dev libudev-dev autotools-dev autoconf automake libtool libudev-dev libusb-1.0-0-dev libfox-1.6-dev libogre-1.9-dev libois-dev libtinyxml-dev cmake libogre-1.9-dev libois-dev libtinyxml-dev git cython sdl2-dev libglew-dev

mkdir src
cd src

git clone git://github.com/signal11/hidapi.git
cd hidapi
sudo make install

cd ..
git clone https://github.com/OpenHMD/OpenHMD.git
cd OpenHMD
./configure –enable-openglexample
sudo make install

sudo -i

echo ‘SUBSYSTEM==”usb”, ATTR{idVendor}==”2833″, MODE=”0666″, GROUP=”plugdev”‘ > /etc/udev/rules.d/83-hmd.rules

echo ‘SUBSYSTEM==”usb”, ATTR{idVendor}==”0bb4″, MODE=”0666″, GROUP=”plugdev”‘ >> /etc/udev/rules.d/83-hmd.rules

echo ‘SUBSYSTEM==”usb”, ATTR{idVendor}==”28de”, MODE=”0666″, GROUP=”plugdev”‘ >> /etc/udev/rules.d/83-hmd.rules

udevadm control –reload-rules


#### Unplug your Rift from the machine at this time and plug it back in.

cd ..
git clone https://github.com/OpenHMD/OpenHMDDemo.git
cmake .

cd ..
git clone https://github.com/lubosz/python-rift.git
cd python-rift
sudo ln /usr/local/include/openhmd/openhmd.h /usr/include/openhmd.h
sudo ./setup.py install


That is it, at this point you should be able to run the demos. The next time you start Steam, it is going to detect the Rift and install SteamVR, which does not work, but it does cause some errors, so to fix that run this command;

sudo apt install libxtst6:i386 libxrandr2:i386 libglib2.0-0:i386 libgtk2.0-0:i386 libpulse0:i386 libgdk-pixbuf2.0-0:i386

Comments are closed.