$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt update
$ nvidia-smi
$ sudo sh cuda_8.0.61_375.26_linux.run
$ sudo gedit ~/.bashrc
export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
$ source ~/.bashrc
$ nvcc -V
$ sudo apt-get install -y cmake-qt-gui git build-essential libusb-1.0-0-dev libudev-dev openjdk-8-jdk freeglut3-dev python-vtk libvtk-java libglew-dev libsuitesparse-dev openexr
$ sudo apt-get install build-essential cmake
$ cmake -version
$ sudo apt-get install git g++ python libusb-1.0-0-dev libudev-dev openjdk-8-jdk freeglut3-dev graphviz doxygen
$ git clone https://github.com/occipital/OpenNI2
$ cd OpenNI2
$ make -j4
$ sudo gedit /etc/udev/rules.d/51-kinect.rules
UBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02b0", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02ad", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02ae", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02c2", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02be", MODE:="0666", OWNER:="root", GROUP:="video"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="02bf", MODE:="0666", OWNER:="root", GROUP:="video"
$ git clone https://github.com/OpenKinect/libfreenect.git
$ cd libfreenect
$ mkdir build; cd build
$ cmake .. -DBUILD_OPENNI2_DRIVER=ON
$ make -j4
$ cp -L lib/OpenNI2-FreenectDriver/libFreenectDriver.so ${OPENNI2_DIR}/Bin/x64-Release/OpenNI2/Drivers
$ lsusb
$ cd ${OPENNI2_DIR}/Bin/x64-Release/
$ ./NiViewer
$ sudo apt-get install build-essential
$ sudo apt-get install libgl1-mesa-dev
$ sudo apt-get install libgl1-mesa-dev
$ sudo apt-get install build-essential libgtk2.0-dev libjpeg-dev libtiff4-dev libjasper-dev libopenexr-dev cmake python-dev python-numpy python-tk libtbb-dev libeigen2-dev yasm libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev libqt4-dev libqt4-opengl-dev sphinx-common texlive-latex-extra libv4l-dev libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-dev
$ cd opencv-2.4.13
$ mkdir build
$ cd build
$ cmake -D BUILD_NEW_PYTHON_SUPPORT=OFF -D WITH_OPENCL=OFF -D WITH_OPENMP=ON -D INSTALL_C_EXAMPLES=OFF -D BUILD_DOCS=OFF -D BUILD_EXAMPLES=OFF -D WITH_QT=OFF -D WITH_OPENGL=OFF -D WITH_VTK=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_TESTS=OFF -D WITH_CUDA=OFF -D BUILD_opencv_gpu=OFF ..
$ make -j4
$ sudo make install
$ git clone https://github.com/dorian3d/DLib.git
$ cd DLib
$ git reset --hard 330bdc10576f6bcb55e0bd85cd5296f39ba8811a
$ mkdir build
$ cd build
$ cmake ../
$ make -j4
$ sudo make install
$ git clone https://github.com/dorian3d/DBoW2.git
$ cd DBoW2
$ git reset --hard 4a6eed2b3ae35ed6837c8ba226b55b30faaf419d
$ mkdir build
$ cd build
$ cmake ../
$ make -j4
$ sudo make install
$ git clone https://github.com/dorian3d/DLoopDetector.git
$ cd DLoopDetector
$ git reset --hard 84bfc56320371bed97cab8aad3aa9561ca931d3f
$ mkdir build
$ cd build
$ cmake ../
$ make -j4
$ sudo make install
$ wget http://people.csail.mit.edu/kaess/isam/isam_v1_7.tgz
$ tar -xvf isam_v1_7.tgz
$ rm isam_v1_7.tgz
$ cd isam_v1_7
$ mkdir build
$ cd build
$ cmake ..
$ make -j4
$ sudo make install
$ cd pcl-1.7.2
$ mkdir build
$ cd build
$ cmake ..
$ make -j4
$ sudo make install
$ sudo apt-get install libglew-dev
$ sudo apt-get install libboost-dev libboost-thread-dev libboost-filesystem-dev
$ sudo apt-get install libpython2.7-dev
$ sudo apt-get install ffmpeg libavcodec-dev libavutil-dev libavformat-dev libswscale-dev
$ sudo apt-get install libdc1394-22-dev libraw1394-dev
$ sudo apt-get install libjpeg-dev libpng12-dev libtiff5-dev libopenexr-dev
$ git clone https://github.com/stevenlovegrove/Pangolin
$ cd Pangolin/build
$ cmake -DCPP11_NO_BOOST=1 ..
$ make -j4
$ git clone https://github.com/mp3guy/Kintinuous
$ cd Kintinuous
$ mkdir build
$ cd build
$ cmake ../src
$ make -j4
$ ./Kintinuous -s 7 -v ../vocab.yml.gz -l loop.klg -ri -fl -od