NiViewer2 command not found

In this troubleshooting guide we learn how to fix NiViewer2 command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

NiViewer2: command not found

or when using sudo you get the following error message

sudo: NiViewer2: command not found

Solutions to NiViewer2: command not found

How To Fix NiViewer2: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu NiViewer2 is provided by openni2-utils package.

openni2-utils is:

OpenNI2 is a framework for getting data to support ‘Natural Interaction’, i.e. skeleton tracking, gesture tracking, and similar ways of getting data from humans. OpenNI2 provides the interface for physical devices and for middleware components. The API enables modules to be registered in the OpenNI2 framework, which then produce sensory data. OpenNI2 also allows selection of different hardware and middleware modules.

This package provides a number of related utilities for debugging, testing, and view the results of the sensor modules.

To fix this problem, we can install more using the command below.

sudo apt-get -y install openni2-utils

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install openni2-utils.

sudo apt -y install openni2-utils

Or if you have aptitude installed you can use the following command.

sudo aptitude install openni2-utils

Summary

In this tutorial we learn how to fix NiViewer2 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.