Skip to content

Instantly share code, notes, and snippets.

@adujardin
Last active February 15, 2024 08:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adujardin/2d5ce8f000fc6a7bd40bee2709749ff8 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment