#!/bin/bash

sudo apt-get install -y rtl-sdr

# Spektrum is a spectrum analyzer software for use with rtl-sdr.
# https://github.com/pavels/spektrum
cat <<-EOF | sudo tee /etc/modeprobe.d/rtl-sdr.conf
	blacklist dvb_usb_rtl28xxu
EOF

cat <<-EOF | sudo tee /etc/udev/rules.d/20.rtlsdr.rules
	SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838", GROUP="adm", MODE="0666"
EOF


