Intel® RealSense™ SDK 2.0 provides installation packages in dpkg
format for Debian OS and its derivatives.
To build from source, please follow the steps described here
-
Add Intel server to the list of repositories :
echo 'deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main' | sudo tee /etc/apt/sources.list.d/realsense-public.list
It is recommended to backup/etc/apt/sources.list.d/realsense-public.list
file in case of an upgrade. -
Register the server's public key :
sudo apt-key adv --keyserver keys.gnupg.net --recv-key 7DCC6F0F
-
Refresh the list of repositories and packages available :
sudo apt-get update
-
In order to run demos install:
sudo apt-get install realsense-uvcvideo
sudo apt-get install librealsense2-utils
Reconnect the Intel RealSense depth camera and run:realsense-viewer
-
Developers shall install additional packages:
sudo apt-get install librealsense2-dev
sudo apt-get install librealsense2-dbg
Withdev
package installed, you can compile an application with librealsense usingg++ -std=c++11 filename.cpp -lrealsense2
or an IDE of your choice.Complete the installation by performing
reboot
to reload the kernel with modules provided by DKMS.Verify that the kernel is updated :
modinfo uvcvideo | grep "version:"
should includerealsense
string
Important Removing Debian package is allowed only when no other installed packages directly refer to it. For example removing librealsense2-udev-rules
requires librealsense2
to be removed first.
Remove a single package with:
sudo apt-get --purge <package-name>
Remove all RealSense™ SDK-related packages with:
dpkg -l | grep "realsense" | cut -d " " -f 3 | xargs sudo dpkg --purge
The packages and their respective content are listed below:
Name | Content | Depends on |
---|---|---|
librealsense2-udev-rules | Manages the devices permissions configuration for | - |
realsense-uvcvideo | DKMS package for Depth cameras-specific kernel extensions | librealsense2-udev-rules |
librealsense2 | RealSense™ SDK runtime (.so) and configuration files | librealsense2-udev-rules |
librealsense2-utils | Demos and tools available as a part of RealSense™ SDK | librealsense2 |
librealsense2-dev | Header files and symbolic link for developers | librealsense2 |
librealsense2-dbg | Debug symbols for developers | librealsense2 |
Note The packages include binaries only. Use the github repository to obtain the source code.