Skip to content

Instantly share code, notes, and snippets.

@fajarlabs
Created April 16, 2021 08:03
Show Gist options
  • Save fajarlabs/6be5238faa6c5383d66386a66ec2805c to your computer and use it in GitHub Desktop.
Save fajarlabs/6be5238faa6c5383d66386a66ec2805c to your computer and use it in GitHub Desktop.
Raspberry RTL-AIS
# ========================================================================================|
# INSTALL_USB_DONGLE_RTL
# ========================================================================================|
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git git-core cmake libusb-1.0-0-dev build-essential lsof
install the RTL-2832U USB dongle driver
git clone https://git.osmocom.org/rtl-sdr
cd rtl-sdr
mkdir build
cd build
cmake ../ -DINSTALL_UDEV_RULES=ON
make -j4
sudo make install
sudo ldconfig
sudo ldconfig
You should now do these steps to tell the system about what the new device is allowed to do, and reboot the system:
cd ~
sudo cp ./rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/
sudo reboot
rtl_test
On most versions of Raspian except very early ones, you will need to "blacklist" the rtl2830 device to stop the OS using the DAB/TV drivers for the device.
cd /etc/modprobe.d
sudo nano no-rtl.conf
Add the following lines
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830
sudo reboot
rtl_test -t
# ========================================================================================|
# INSTALL_RTL_AIS
# ========================================================================================|
Make sure you have the following dependencies:
librtlsdr
libusb
libpthread
$ # Get the source code:
$ git clone https://github.com/dgiardini/rtl-ais
$ # Change to the source dir
$ cd rtl-ais
$ make
$ # Test running the command
$ ./rtl_ais
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment