Skip to content

Latest commit

 

History

History
57 lines (47 loc) · 1.8 KB

setup.md

File metadata and controls

57 lines (47 loc) · 1.8 KB

These are some instruction I put together to get the VM up and running. I have been working on on Ubuntu 22.04 Desktop.

Install the relevant helper tools for the VM

  1. Virtualbox sudo apt install virtualbox-guest-utils virtualbox-guest-x11
  2. Reboot
  3. Now clipboard, resize etc should work

PreReq

  1. sudo apt install git
  2. git clone https://github.com/nzkarit/chcamp-2022-ads-b-sdr.git
  3. sudo apt install cmake libusb-dev libusb-1.0-0-dev open-vm-tools build-essential librtlsdr-dev pkg-config python3-numpy
  4. sudo apt-get install librtlsdr-dev libusb-1.0-0-dev pkg-config debhelper

Setup RTLSDR

  1. git clone git://git.osmocom.org/rtl-sdr.git
  2. cd rtl-sdr
  3. mkdir build
  4. cd build
  5. cmake ../ -DINSTALL_UDEV_RULES=ON
  6. make
  7. sudo make install
  8. sudo ldconfig
  9. sudo cp ../rtl-sdr.rules /etc/udev/rules.d/
  10. sudo vi /etc/modprobe.d/blacklist-rtl.conf
  11. Add blacklist dvb_usb_rtl28xxu
  12. Reboot

Test RTLSDR

  1. Plug in an rtlsdr
  2. rtl_test

Setup HackRF

  1. sudo apt install hackrf

Test HackRF

  1. sudo hackrf_info

Setup dump1090

  1. sudo apt install dump1090-mutability
  2. Don't select auto start
  3. sudo mkdir /run/dump1090-mutability

Test dump1090

  1. sudo dump1090-mutability --net --write-json /run/dump1090-mutability/ --write-json-every 1
  2. Browse to http://localhost/dump1090/
  3. If there are planes overhead with ADS-B you should see them plotted on the map

Setup ADSB Out

  1. git clone https://github.com/nzkarit/ADSB-Out.git

Test ADSB Out

  1. sudo dump1090-mutability --net --write-json /run/dump1090-mutability/ --write-json-every 1 --freq 915000000
  2. Browse to http://localhost:8080/
  3. cd ADSB-Out
  4. ./ADSB_Encoder.py
  5. sudo hackrf_transfer -t Samples_256K.iq8s -f 915000000 -s 2000000 -x 10
  6. In browser observe a plane on the map