Skip to content

Latest commit

 

History

History
98 lines (84 loc) · 3 KB

install.md

File metadata and controls

98 lines (84 loc) · 3 KB

Installation manual

Install Raspian Buster Lite

  • Download the Image from http://raspberrypi.org
  • Be sure to use the lite image, you du not want a fully fledged desktop environment eating up your PIs CPU power
  • extract the zip archive
  • Write the image to the sd card with dd or look for other ways on the official Raspberry site
  • Look for the name of your SD Card via lsbls
lsblk
NAME           MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
mmcblk0        179:0    0  29,7G  0 disk  
└─mmcblk0p1    179:1    0  29,7G  0 part  /media/user/DingeTM

The SD Card ist mmcblk0

  sudo dd bs=4M if=~/meinimage.img of=/dev/mmcblk0
  • On the SD Cards /boot Pratition create a file to activate ssh
touch ssh
  • Put the card into the Pi and boot it up
  • Connect via ssh and change the password for security reasons first
  • If you connect your PI to a public Network like Freifunk you should use public/private key auth and disable Password auth
  • Install software updates and teh needed software packages
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo apt-get install dump1090-mutability
  • Reboot the Pi and connect via ssh again

Configure dump1090

sudo nano /etc/default/dump1090-mutability
  • Set your receiver location
  • To determine the position do not use your mobile phones GPS functionality it can be quite unreliable, instead use a service like openstreetmap.org where you can right click on the map to show the adrees and coordinates
LAT="51.xxxx"
LON="7.yyyyy"

Start dump1090

sudo service dump1090-mutability start

Check the output

  • Check the number of planes you receive
cat /run/dump1090-mutability/aircraft.json|grep -c hex
  • It is very likely that it wont work, in this case you need to check the log
tail -f /var/log/dump1090-mutability.log
  • If you run into the following error message
Please fix the device permissions, e.g. by installing the udev rules file rtl-sdr.rules
  • You need to create a udev rule file for your particular rtl-sdr dongle
  • To do this check the vendor id and product id of your usb dongle
lsusb
  • It will give you a list of all the USB Devices connected similar to the following one
Bus 001 Device 004: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  • The vendor id in this case is 0bda and the product id is 2838
  • Now create a rule file
sudo nano /etc/udev/rules.d/rtl-sdr.rules
  • And put the following in it
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838",  MODE="0666"
  • Dont forget to change the vendor and product id to the ones matching your sdr dongle
  • now reboot and check again if you see a number of Planes and if not check the logfile again

Feed the data