This is an installation to use dump1090-fa and tar1090 on a notebook for a self contained adsb decoder, that is not running on a SBC like a R Pi. Basically for portable operation.
I’m not going to do step by step instructions. My assumption is this is for a person familiar with Opensuse and perhaps Redhat. That is Linux OS where the debian-esque scripts provided won’t work.
rtlsdr is in the Opensuse repository. It is also easy enough to pull from github and build.
I used the cmake build technique. Use this option:
cmake …/ -DDETACH_KERNEL_DRIVER=ON
I built it in /usr/local/src .
I used this as a test:
rtl_fm -M wbfm -f 88.5M | play -r 32k -t raw -e s -b 16 -c 1 -V1 -
You may have to unplug and replug the usb dongle. Or maybe boot.
For dump1090-fa, I needed nucurses-devel. (pull with yast)
git clone https://github.com/adsbxchange/dump1090-fa.git
Again do this in /usr/local/src . Don’t use any of the installation scripts. You just need make or make BLADERF=no . You can test the binary doing
./dump1090
It should start dumping data to the screen. If it doesn’t start, you may need unplug then plug the dongle or reboot. I had a buffer usb overload. That could be a freak. You can increase the size of the buffer at
/sys/module/usbcore/parameters/usbfs_memory_mb
The default was 16. I upped it to 128. Probably overkill. I have no idea when this file is read so reboot.
There is no make install. Just copy dump1090-fa to /usr/local/bin . I also put view1090 there.
Nginx on opensuse uses /src/www/htdocs for the webserver files. The nginx.conf is located in /etc/nginx
Get tar1090 at
git clone GitHub - wiedehopf/tar1090: Provides an improved webinterface for use with ADS-B decoders readsb / dump1090-fa
and put it in usr/local/src. As far as opensuse is concerned, all you need are the html documents. I set up the PC to run a few different local websites. I placed the tar1090 html files at
/srv/www/htdocs/public_html/tar1090/
Copy the directory in whatever manner you like, i.e. Dolphin cut and paste or a cp command. The cp command will need a -r so that the subdirectories are copied. Dolphin is far less confusing.
Dump1090-fa is designed to write to a tmpfs. Create /run/dump1090/data . I had to chmod 777 this directory to make the system work. You should never 777 anything. There is some nuance to set up with dump1090-fa running on a user terminal while /run/dump1090/data is owned by root. I will mentally abuse myself some day and solve this.
Now the html for tar1090 expects a directory called data. I did a symbolic link to place this directory.
ln -s /run/dump1090/data /srv/www/htdocs/public_html/tar1090/data
The nice thing about this scheme is you can create a number of html directories and place this data file in them all. I added a few lines to the default nginx.conf leaving in all the commented lines. For clarity, I deleted the commented lines in the text below.
Blockquote
server_name localhost;
#charset koi8-r;
access_log /var/log/nginx/host.access.log main;
location / {
root /srv/www/htdocs/public_html/piaware;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /srv/www/htdocs/;
}
}
server {
listen 8081;
server_name localhost;
#charset koi8-r;
access_log /var/log/nginx/host.access.log main;
location / {
root /srv/www/htdocs/public_html/tar1090;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /srv/www/htdocs/;
}
}
include vhosts.d/*.conf;
}
Blockquote
To run everything, open a terminal and run dump1090
dump1090 --no-fix --write-json /run/dump1090/data
No networking is needed since tar1090 reads the data file.
Start nginx.
systemctl start nginx
In your browser, go to 127.0.0.1:8081
I also copied the piaware html files for yucks. You will need to place them in the www area in a similar manner to how tar1090 files were placed. Basically create /srv/www/htdocs/public_html/piaware . The data file needs to be linked.
ln -s /run/dump1090/data /srv/www/htdocs/public_html/piaware/data
This is run in 127.0.0.1:8080