Skip to content

Instantly share code, notes, and snippets.

Last active September 17, 2021 12:30
What would you like to do?
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 -O
# Extracting only the file we're interested in
bash ./ --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