Skip to content

Instantly share code, notes, and snippets.

@pojntfx
Created December 23, 2025 15:49
Show Gist options
  • Select an option

  • Save pojntfx/8931c4e207413bc65b5dac96ce6a357e to your computer and use it in GitHub Desktop.

Select an option

Save pojntfx/8931c4e207413bc65b5dac96ce6a357e to your computer and use it in GitHub Desktop.
Allow Distrobox/Toolbox containers to access USB devices
#!/bin/bash
# This is obviously not safe, but the only workaround I've found for apps that don't use the USB portal (https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Usb.html)
echo 'KERNEL=="tty*", MODE="0777"' | sudo tee /etc/udev/rules.d/99-tty-permissions.rules > /dev/null
sudo udevadm control --reload-rules
sudo udevadm trigger --subsystem-match=tty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment