-
Notifications
You must be signed in to change notification settings - Fork 3
/
Install_libfree_ubuntu.sh
40 lines (31 loc) · 1.74 KB
/
Install_libfree_ubuntu.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
#
# Author : Alwyn Mathew
#
# Purpose : Install Libfreenect on Ubuntu 16.04
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git-core cmake freeglut3-dev pkg-config build-essential libxmu-dev libxi-dev libusb-1.0-0-dev
sudo apt-get install git
git clone git://github.com/OpenKinect/libfreenect.git
cd libfreenect
mkdir build
cd build
cmake -L ..
make
sudo make install
sudo ldconfig /usr/local/lib64/
dqt='"'
# ATTR{product}=="Xbox NUI Motor"
sudo su root -c "echo '''SUBSYSTEM==${dqt}usb${dqt}, ATTR{idVendor}==${dqt}045e${dqt}, ATTR{idProduct}==${dqt}02b0${dqt}, MODE=${dqt}0666${dqt}''' >> /etc/udev/rules.d/51-kinect.rules"
# ATTR{product}=="Xbox NUI Audio"
sudo su root -c "echo '''SUBSYSTEM==${dqt}usb${dqt}, ATTR{idVendor}==${dqt}045e${dqt}, ATTR{idProduct}==${dqt}02ad${dqt}, MODE=${dqt}0666${dqt}''' >> /etc/udev/rules.d/51-kinect.rules"
# ATTR{product}=="Xbox NUI Camera"
sudo su root -c "echo '''SUBSYSTEM==${dqt}usb${dqt}, ATTR{idVendor}==${dqt}045e${dqt}, ATTR{idProduct}==${dqt}02ae${dqt}, MODE=${dqt}0666${dqt}''' >> /etc/udev/rules.d/51-kinect.rules"
# ATTR{product}=="Xbox NUI Motor"
sudo su root -c "echo '''SUBSYSTEM==${dqt}usb${dqt}, ATTR{idVendor}==${dqt}045e${dqt}, ATTR{idProduct}==${dqt}02c2${dqt}, MODE=${dqt}0666${dqt}''' >> /etc/udev/rules.d/51-kinect.rules"
# ATTR{product}=="Xbox NUI Motor"
sudo su root -c "echo '''SUBSYSTEM==${dqt}usb${dqt}, ATTR{idVendor}==${dqt}045e${dqt}, ATTR{idProduct}==${dqt}02be${dqt}, MODE=${dqt}0666${dqt}''' >> /etc/udev/rules.d/51-kinect.rules"
# ATTR{product}=="Xbox NUI Motor"
sudo su root -c "echo '''SUBSYSTEM==${dqt}usb${dqt}, ATTR{idVendor}==${dqt}045e${dqt}, ATTR{idProduct}==${dqt}02bf${dqt}, MODE=${dqt}0666${dqt}''' >> /etc/udev/rules.d/51-kinect.rules"
sudo freenect-glview