-
Notifications
You must be signed in to change notification settings - Fork 20
Building readsb from source
sudo apt update
sudo apt install -y git build-essential debhelper libusb-1.0-0-dev
sudo apt install -y librtlsdr-dev pkg-config dh-systemd
sudo apt install -y libncurses5-dev zlib1g-dev
cd /tmp
rm /tmp/readsb -rf
git clone --depth 1 https://github.com/wiedehopf/readsb.git -b stale
cd readsb
sed -i -e 's/, libblade.*//' debian/control
rm -f ../readsb_*.deb
dpkg-buildpackage -b --build-profiles=rtlsdr --no-sign
sudo dpkg -i ../readsb_*.deb
https://github.com/wiedehopf/tar1090#tar1090 Will be available at http://192.168.XX.YY/tar1090
cd /tmp
wget -O mic-readsb.zip https://github.com/Mictronics/readsb/archive/master.zip
rm /tmp/mic-readsb -rf
unzip -d mic-readsb mic-readsb.zip
sudo rm -rf /usr/share/readsb/html
sudo mkdir -p /usr/share/readsb/html
sudo cp -a mic-readsb/readsb-master/webapp/src/* /usr/share/readsb/html
sudo lighttpd-enable-mod readsb
rm /tmp/mic-readsb /tmp/mic-readsb.zip -rf
In your browser, use the IP address of your Pi and add /radar at the end to view the webinterface.
sudo nano /etc/default/readsb
# make changes, save with Ctrl-O and enter, exit with Ctrl-X
sudo systemctl restart readsb
Change the RECEIVER_OPTIONS line to this:
RECEIVER_OPTIONS="--net-only --net-connector 192.168.2.7,30005,beast_in"
The IP address / port is where your beast data source is.
RECEIVER_OPTIONS="--net-only --net-connector 192.168.2.8,20005,beast_in --net-connector 192.168.2.7,30004,beast_reduce_out"
sudo apt remove readsb
# the following are stuff that were needed to build it, don't remove them if you need them to build other software :)
sudo apt remove debhelper libusb-1.0-0-dev librtlsdr-dev pkg-config dh-systemd libncurses5-dev zlib1g-dev
Same packages required as before, then compile / install:
cd /tmp
rm /tmp/readsb -rf
git clone --depth 1 https://github.com/Mictronics/readsb.git -b dev
cd readsb
sed -i -e 's/, libblade.*//' debian/control
rm -f ../readsb_*.deb
dpkg-buildpackage -b --build-profiles=rtlsdr --no-sign
sudo dpkg -i ../readsb_*.deb
sudo apt install zlib1g-dev zlib1g
cd /tmp
rm /tmp/readsb -rf
git clone --depth 1 https://github.com/wiedehopf/readsb.git -b dev
cd readsb
make -j3 HISTORY=yes RTLSDR=yes
sudo rm /usr/bin/readsb
sudo cp readsb /usr/bin/readsb
sudo systemctl restart readsb
sudo apt install -y zlib1g-dev zlib1g librtlsdr-dev librtlsdr0 git build-essential libusb-1.0-0-dev libncurses5-dev
cd /tmp
rm /tmp/readsb -rf
git clone --depth 1 https://github.com/wiedehopf/readsb.git --single-branch -b sid
cd readsb
make RTLSDR=yes
sudo mv /usr/bin/readsb /tmp/oldbin
sudo cp readsb /usr/bin/readsb
sudo systemctl restart readsb
New development by Mictronics, uses protobuf instead of json, not compatible with tar1090. https://github.com/Mictronics/readsb-protobuf/
Compile / install, try this:
cd /tmp
rm /tmp/readsb -rf
git clone --depth 1 https://github.com/Mictronics/readsb-protobuf.git -b dev
cd readsb
sed -i -e 's/, libblade.*//' debian/control
rm -f ../readsb_*.deb
dpkg-buildpackage -b --build-profiles=rtlsdr --no-sign
sudo dpkg -i ../readsb_*.deb
wget -O /tmp/rtl-sdr.rules https://raw.githubusercontent.com/wiedehopf/adsb-scripts/master/osmocom-rtl-sdr.rules
sudo cp /tmp/rtl-sdr.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
cd /tmp
wget -O mic-protobuf.zip https://github.com/Mictronics/readsb-protobuf/archive/dev.zip
rm -r readsb-protobuf-dev
unzip mic-protobuf.zip
sudo cp -a readsb-protobuf-dev/webapp/src/db/* /usr/share/readsb/html/db
rm -r mic-protobuf.zip readsb-protobuf-dev
Note that the protobuf version we get the update DB from is the current development of readsb by Mictronics. Unfortunately readsb-protobuf does not work with tar1090/graphs1090. If you don't care for those two, give Mictronics new version a try: https://github.com/Mictronics/readsb-protobuf/ Note you'll have to compile / install yourself, no install script.