Advertisement
Rubyducky

Installing PiAware on Ubuntu

Oct 5th, 2014
6,291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.08 KB | None | 0 0
  1. These steps are for installing PiAware and related software on a regular Linux installation instead of a Raspberry Pi. I used the latest version of Ubuntu Server (14.04.1 LTS currently) running in a VM on ESXi 5.5 U2. I used this receiver recommended on FlightAware: http://www.amazon.com/gp/product/B009U7WZCA?tag=fligh01-20
  2.  
  3. For unknown reasons, the receiver would not initialize in Debian 7.6. The receiver does work fine in Ubuntu, however.
  4.  
  5. These steps were taken from the following pages:
  6.  
  7. http://landoflinux.com/linux_sdr_adsb_gqrx_radio.html
  8. https://github.com/flightaware/piaware
  9. https://github.com/flightaware/piaware/wiki/Building-and-installing-PiAware-from-source
  10. https://github.com/flightaware/dump1090_mr
  11.  
  12. We are using FlightAware's version of dump1090 called dump1090_mr
  13.  
  14. Caution: Steps worked for me, but I assume no liability if it somehow breaks your computer!
  15.  
  16. First, download some packages:
  17. $ sudo apt-get install git cmake libboost-all-dev libusb-1.0-0-dev python-scitools portaudio19-dev -y
  18.  
  19. Packages for piaware (I had to install these packages first or else dump1090_mr would not build):
  20. $ sudo apt-get install tcl8.5-dev tclx8.4-dev itcl3-dev tcl-tls tcllib automake cmake tcl-tclreadline telnet git gcc make
  21.  
  22. Download RTL-SDR (assuming you're in ~/):
  23. $ sudo git clone git://git.osmocom.org/rtl-sdr.git
  24.  
  25. Install RTL-SDR:
  26. $ cd rtl-sdr/
  27. $ sudo mkdir build
  28. $ cd build
  29. $ sudo cmake ../
  30. $ sudo make
  31. $ sudo make install
  32. $ cd ~
  33. $ sudo cp ~/rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/
  34. $ sudo ldconfig
  35.  
  36. We need to disable the DVB driver since we're not watching TV and it interferes:
  37. $ cd /etc/modprobe.d/
  38. $ sudo vi ban-rtl.conf
  39.  
  40. Add this line to ban-rtl.conf (you will be creating the file):
  41. blacklist dvb_usb_rtl28xxu
  42.  
  43. Plug in the receiver if you haven't already and restart. When you log back in, run:
  44. $ rtl_test -t
  45.  
  46. It should say something like:
  47. Found 1 device(s):
  48. 0: Realtek, RTL2838UHIDIR, SN: 00000001
  49.  
  50. Using device 0: Generic RTL2832U OEM
  51. Found Rafael Micro R820T tuner
  52. 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
  53. Sampling at 2048000 S/s.
  54. No E4000 tuner found, aborting.
  55.  
  56. Time to install dump1090_mr. Back in ~/, run:
  57. $ git clone https://github.com/flightaware/dump1090_mr.git
  58. $ cd dump1090_mr/
  59. $ make
  60. $ sudo make -f makefaup1090 full-install
  61.  
  62. This installs dump1090_mr (and faup1090, but it doesn't seem to be needed since dump1090_mr generates the correct FlightAware messages already) and sets it to start on boot.
  63.  
  64. At this point, you should be able to run:
  65. $ dump1090 --interactive
  66.  
  67. It should show a list of the planes detected!
  68.  
  69. Time to install PiAware. Back in ~/, run:
  70.  
  71. $ git clone https://github.com/flightaware/tcllauncher.git
  72. $ cd tcllauncher
  73. $ autoconf
  74. $ ./configure --with-tcl=/usr/lib/tcl8.5
  75. $ make
  76. $ sudo make install
  77.  
  78. $ cd ~/
  79.  
  80. $ git clone https://github.com/flightaware/piaware.git
  81. $ cd piaware
  82. $ sudo make install
  83. $ sudo update-rc.d piaware defaults
  84. $ sudo piaware-config -user YOURFLIGHTAWAREUSERNAME -password
  85.  
  86. It should then prompt you for your FlightAware password.
  87. These steps install PiAware and sets it to start on boot.
  88.  
  89. Restart again. When you log back in, you can run
  90. $ sudo piaware-status
  91. You may have to Ctrl-C to get back to the prompt, but it should say that dump1090 is running, faup1090 is not running, and it is connected to FlightAware. Now go to http://[IP of Server]:8080. It should be a web interface showing Google Maps and a list of all the planes detected.
  92.  
  93. If sudo piaware-status reports that dump1090 is connected and also connected to FlightAware, it should automatically send data to FlightAware. Everything starts up on its own at bootup. If you want to check the logs, it is /tmp/piaware.out. Check http://flightaware.com/adsb/stats/user/YOURFLIGHTAWAREUSERNAME
  94. After 10 minutes or so, it should start displaying your data on that page, you should receive an email from FlightAware stating that your new feeder has come online, and your account should be upgraded to Enterprise!
  95.  
  96. That's it!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement