To install the tof library on linux run:

sudo tar -xzf tof-linux-x86_64.tar.gz -C /usr/local

This will install the tof library for all users and you won’t have to add to the PATH and LD_LIBRARY_PATH variable. To update the PYTHONPATH variable in your bashrc file to point to the tof python library run:

echo 'export PYTHONPATH="${PYTHONPATH}:/usr/local/lib/python"' >> ~/.bashrc
source ~/.bashrc

If you installed the tof library in a different directory, you will need to update the following variables:

VariableRelative path location to add

usb access on linux

On Ubuntu (and many other distros) by default root privileges are required to communicate with driverless USB devices. You can run the viewer as root, or add a rule to udev. To add the required rule to udev run:

echo 'SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0666"' | sudo tee -a /etc/udev/rules.d/50-udev-default.rules