Intel RealSense
Firmware Updates
Use the rs-fw-update
binary installed with the librealsense2 SDK to update the firmware on the camera. For latest firmware downloads, please visit this page and match the firmware with your specific RealSense model.
You can also use the GUI tool in realsense-viewer
to update the firmware.
If you are starting with a new camera, it is recommended to update the firmware to the latest version before beginning development.
Installation (Prerequisites)
Important: Ensure that your kernel matches the versions supported by the librealsense2-dkms
package if you are not installing from source. Please refer to the official documentation for more details.
The following steps must be completed before installing the librealsense2
SDK through either method.
- Reboot the system into the UEFI:
systemctl reboot --firmware-setup
- Disable Secure Boot in the UEFI settings.
Installation (Prebuilt Binaries)
For installation of the librealsense2
SDK on Ubuntu 22.04, please follow the official documentation for installation via distribution package channels.
In general, the following commands should suffice.
sudo mkdir -p /etc/apt/keyrings curl -sSf https://librealsense.intel.com/Debian/librealsense.pgp | sudo tee /etc/apt/keyrings/librealsense.pgp > /dev/null sudo apt-get install apt-transport-https echo "deb [signed-by=/etc/apt/keyrings/librealsense.pgp] https://librealsense.intel.com/Debian/apt-repo `lsb_release -cs` main" | sudo tee /etc/apt/sources.list.d/librealsense.list sudo apt-get update sudo apt-get install librealsense2-dkms librealsense2-utils librealsense2-dev
As of the time of writing, the NUCs require a manual modification to the librealsense2-dkms
post-install script.
- Open
/var/lib/dpkg/info/librealsense2-dkms.postinst
in your editor of choice as root. - Delete the following line:
sudo modprobe -r uvcvideo && sudo modprobe -r videodev
- Also delete the same line from
/var/lib/dpkg/info/librealsense2-dkms.postrm
for version upgrades
Installing from Source (Alternative Method)
Installation from source is similar to the documentation provided by Intel.
Assumptions
Familiarity with the provided RealSense SDK Manual Linux Installation Instructions.
Install librealsense2 SDK
- Install all dependencies for Ubuntu 22.04.
- Clone the librealsense repo.
git clone https://github.com/IntelRealSense/librealsense.git && cd librealsense
- Run Intel Realsense permissions script from
librealsense2
root directory:./scripts/setup_udev_rules.sh
- Build and apply patched kernel modules (only if not using backend bypass):
./scripts/patch-realsense-ubuntu-lts-hwe.sh
- Build the librealsense2 SDK and install the binaries.
Use the following build command:
mkdir -p build && cd build cmake ../ -DCMAKE_BUILD_TYPE=Release \ -DFORCE_RSUSB_BACKEND=true # if using backend bypass make && sudo make install
- Follow the instructions for compiling and installing the binaries
Tip: Use
-j10
flag inmake
commands for parallel compilation
Install librealsense2 Python Wrapper
- There is no need to build the Python wrapper from source. Install the pre-built package with
pip
pip install pyrealsense2