Skip to content

udev rules

JJX edited this page Dec 22, 2024 · 1 revision
  • To do this check the vendor id and product id of your usb dongle
lsusb
  • It will give you a list of all the USB Devices connected similar to the following one
Bus 001 Device 004: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  • The vendor id in this case is 0bda and the product id is 2838
  • Now create a rule file
sudo nano /etc/udev/rules.d/rtl-sdr.rules
  • And put the following in it
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838",  MODE="0666"
  • Dont forget to change the vendor and product id to the ones matching your sdr stick
  • now reboot and check again
Clone this wiki locally