There are lots of packages, versions and authors, so there may also be different ways to install this, but here is how it worked for me (on Ubuntu 11.10):
I mainly followed the install instructions of SensorKinect, in short:
- Download unstable OpenNI from the download page (for me, it was “OpenNI-Bin-Dev-Linux-x86-v188.8.131.52”) and install with
$ sudo ./install.sh
- Download and install SensorKinect.
Note: There are pre-compiled packages in the /Bin folder, just execute the install.sh.
- Download and install unstable NiTE (same way as OpenNI, I used “nite-bin-linux-x86-v184.108.40.206”)
Thats it. To test everything worked fine, you can run the samples that come with OpenNI and NiTE packages. A detailed list what they do, what you should do and what you should see can be found here at keyboardmods (the install instructions there are a bit out of date).