Skip to content

Instantly share code, notes, and snippets.

@adujardin
Last active September 1, 2025 07:37
Show Gist options
  • Select an option

  • Save adujardin/2d5ce8f000fc6a7bd40bee2709749ff8 to your computer and use it in GitHub Desktop.

Select an option

Save adujardin/2d5ce8f000fc6a7bd40bee2709749ff8 to your computer and use it in GitHub Desktop.
Setup the udev rules for the ZED cameras
# This script will setup USB rules to open the ZED cameras without root access
# This can also be useful to access the cameras from a docker container without root (this script needs to be run on the host)
# NB: Running the ZED SDK installer will already setup those
# Print the commands
set -x
# Download the lightest installer
wget -q https://download.stereolabs.com/zedsdk/3.5/jp44/jetsons -O zed_installer.run
# Extracting only the file we're interested in
bash ./zed_installer.run --tar -x './99-slabs.rules' > /dev/null 2>&1
sudo mv "./99-slabs.rules" "/etc/udev/rules.d/"
sudo chmod 777 "/etc/udev/rules.d/99-slabs.rules"
sudo udevadm control --reload-rules && sudo udevadm trigger
@Muhammad540

Muhammad540 commented Aug 20, 2025

Copy link
Copy Markdown

if we are using a docker container why do we need to download a roughly 2.2 GB installer on the host to just set the udev rules ?

@adujardin

Copy link
Copy Markdown
Author

@Muhammad540
The jetson installer is 53MB. This is just a convenience script, feel free to use another solution. The standard workflow is to run the installer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment