设备

$ lsusb
Bus 001 Device 016: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T


软件

硬件支持

$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="18.04.6 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.6 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

$ sudo apt-get install build-essential git cmake

$ sudo apt-get install libusb-1.0-0-dev

$ git clone git://git.osmocom.org/rtl-sdr.git
$ cd rtl-sdr
$ mkdir build
$ cd build
$ cmake ../ -DINSTALL_UDEV_RULES=ON -DLIBUSB_INCLUDE_DIRS=/usr/include/libusb-1.0 -DLIBUSB_LIBRARIES=/usr/lib/x86_64-linux-gnu/libusb-1.0.so
$ make
$ sudo make install

# sudo make install-udev-rules
$ sudo ldconfig
$ sudo cp ../rtl-sdr.rules /etc/udev/rules.d/

/etc/modprobe.d$ sudo vi blacklist-rtl.conf
blacklist dvb_usb_rtl28xxu

$ sudo reboot

重启后验证

$ rtl_test -t
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R828D tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6 
[R82XX] PLL not locked!
Sampling at 2048000 S/s.
No E4000 tuner found, aborting.

$ lsusb
Bus 001 Device 002: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T


$ sudo apt install libboost-dev
$ sudo apt install libairspy-dev libxtrx-dev libfreesrp-dev libfreesrp-dev
$ sudo apt install gnuradio

$ git clone git://git.osmocom.org/gr-osmosdr
$ cd gr-osmosdr/
$ git checkout gr3.6

$ mkdir build
$ cd build
$ cmake ..
$ make


$ wget https://github.com/AlexandreRouma/SDRPlusPlus/releases/download/1.0.4/sdrpp_ubuntu_bionic_amd64.deb
$ sudo dpkg -i sdrpp_ubuntu_bionic_amd64.deb

$ sudo apt --fix-broken install