Skip to content

Instantly share code, notes, and snippets.

@shortword
Created April 5, 2021 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shortword/1525a349f23a9be95f32d6f09418b35e to your computer and use it in GitHub Desktop.
Save shortword/1525a349f23a9be95f32d6f09418b35e to your computer and use it in GitHub Desktop.
rtlsdr end-to-end script
#!/usr/bin/env bash
sudo apt update
sudo apt install -y build-essential cmake git libusb-1.0-0-dev
mkdir -p $HOME/local/src
cd $HOME/local/src
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr/
mkdir build
cd build
# PLEASE NOTE that with the flag below, devices will be available to non-root users!
cmake ../ -DINSTALL_UDEV_RULES=ON
# The next command includes '-j`nproc`' which will help utilize all of the cores on your device (AKA faster build)
make -j`nproc`
sudo make install
sudo ldconfig
echo "blacklist dvb_usb_rtl28xxu" | sudo tee /etc/modprobe.d/blacklist-rtlsdr.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment