Kali Linux 2020.4 - 32bit + Raspberry 4 (2Gb Ram) didn't like PiAware

Done
master_readsb-install

After that I try to

apt-get remove --purge lighttpd dump1090-fa
reboot 

and then again instal dump1090-fa

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-ubuntu20-amd64/master/install-dump1090-fa.sh)" 

but problem is persist.

maybe, I reinstall ALL system from backup SD ?
Or you have some ideas and we can check it?

@ivan2ko

(1) Do NOT install both the dump1090-fa and Readsb. Install only one of them. Installing both will cause conflict and breakdown.

(2) The readsb has some error which causes its failure during installation. @wiedehopf will hopefully look into this and fix it. Only after the readsb’s bug is fixed, and you want it, you should install it.

(3) Your install has been so much damaged due to upgrades and installing / uninstalling various decoders, it is better you again write the microSD card with latest image, then first upgrade it, and only after upgrade install software on it. In the fresh image, take care NOT to install multiple decoders. You have to install only one of the following

  • readsb
  • dump1090-fa
  • dump1090-mutability
  • modeSDeco2

Before you re-image the microSD card, try this

1 - Purge lighttpd

sudo apt-get purge lighttpd   

## above command will purge BOTH the lighttpd and dump1090-fa 
## it will also remove lot of dependency packages.
## say Yes when asked permission.

## IMPORTANT: After purging lighttpd, issue following command to
## remove it's left-over defective config folder

sudo rm -rf /etc/lighttpd  

2 - Install again

sudo spt-get install lighttpd  

sudo dpkg -i dump1090-fa_4.0_armhf.deb  

3 - Enable

sudo systemctl enable lighttpd   

sudo systemctl enable dump1090-fa

4 - Reboot

sudo reboot

5 - Check Map.

Reload browser if required.

After purge lighttpd I try to check operability ModeSDeco2

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/md2/master/install-md2.sh)" `

yes it worked, then deleted it
and re-installed lighttpd + dump1090-fa

sudo systemctl stop md2
sudo systemctl disable md2

sudo rm /lib/systemd/system/md2.service
sudo rm -rf /usr/share/md2

But errors is present => dump1090 - OK, web pages - FAIL :sunglasses: ,
so I take microSD and “The same thing over and over”

kali@kali:~$ sudo systemctl status  dump1090-fa
● dump1090-fa.service - dump1090 ADS-B receiver (FlightAware customization)
     Loaded: loaded (/lib/systemd/system/dump1090-fa.service; enabled; vendor preset: disabled)
     Active: active (running) since Sat 2021-01-09 19:43:23 UTC; 7min ago
       Docs: https://flightaware.com/adsb/piaware/
   Main PID: 1798 (dump1090-fa)
      Tasks: 3 (limit: 4035)
        CPU: 1min 20.612s
     CGroup: /system.slice/dump1090-fa.service
             └─1798 /usr/bin/dump1090-fa --device-index 0 --gain -10 --ppm 0 --max-range 360 --fix --net --net-heartbeat 60 >

Jan 09 19:43:23 kali systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Jan 09 19:43:24 kali dump1090-fa[1798]: Sat Jan  9 19:43:24 2021 UTC  dump1090-fa 4.0 starting up.
Jan 09 19:43:24 kali dump1090-fa[1798]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
Jan 09 19:43:24 kali dump1090-fa[1798]: Found Rafael Micro R820T tuner
Jan 09 19:43:24 kali dump1090-fa[1798]: rtlsdr: enabling tuner AGC
Jan 09 19:43:25 kali dump1090-fa[1798]: Allocating 4 zero-copy buffers

kali@kali:~$ sudo systemctl status  lighttpd
● lighttpd.service - Lighttpd Daemon
     Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Sat 2021-01-09 19:43:26 UTC; 8min ago
    Process: 1976 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=255/EXCEPTION)
        CPU: 197ms

Jan 09 19:43:26 kali systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Jan 09 19:43:26 kali systemd[1]: Stopped Lighttpd Daemon.
Jan 09 19:43:26 kali systemd[1]: lighttpd.service: Start request repeated too quickly.
Jan 09 19:43:26 kali systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Jan 09 19:43:26 kali systemd[1]: Failed to start Lighttpd Daemon.

Seems lighttpd does not like the Kali upgraded by sudo apt-get upgrade and sudo dist-upgrade commands.

Better write Kali2020.4.img again and dont upgrade it this time. Still better, dont write Kali, write Raspbian image from Operating system images – Raspberry Pi, and have a smooth install of all feeders.

 

Give the above command manually as shown below. The output will show the error in detail

sudo /usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf  

unable to start lightttpd code 255 - Lighttpd - lighty labs

 

The easy way - is not our choice :upside_down_face:
If Kali Linux didn’t work with PiAware, I think the next stage would be Ubuntu, but not Raspbian OS :thinking:

And for experiment, I tried installing more clients:

  • Plane Finder => OK
  • AirNav RadarBox24 & The OpenSky Network => same problem
dpkg: error processing package openskyd (--install):
 dependency problems - leaving unconfigured
Processing triggers for kali-menu (2021.1.2) ...

Now I’m waiting for the verification of the SD card, and I will install only three important clients for me: PiAware, FR24 & Plane Finder

=====================
So, THX, for help :boom:

OpenSky Network full example:

kali@kali:~$ wget --no-check-certificate https://opensky-network.org/files/firmware/openskyd_latest_armhf.deb
--2021-01-02 16:12:33--  https://opensky-network.org/files/firmware/openskyd_latest_armhf.deb
Resolving opensky-network.org (opensky-network.org)... 194.209.200.2
Connecting to opensky-network.org (opensky-network.org)|194.209.200.2|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20842 (20K) [application/x-debian-package]
Saving to: ‘openskyd_latest_armhf.deb’

openskyd_latest_armhf.deb       100%[====================================================>]  20.35K  --.-KB/s    in 0.001s

2021-01-02 16:12:34 (36.0 MB/s) - ‘openskyd_latest_armhf.deb’ saved [20842/20842]

kali@kali:~$ sudo dpkg -i openskyd_latest_armhf.deb
Selecting previously unselected package openskyd.
(Reading database ... 363613 files and directories currently installed.)
Preparing to unpack openskyd_latest_armhf.deb ...
Unpacking openskyd (1.0.7-1) ...
dpkg: dependency problems prevent configuration of openskyd:
 openskyd depends on radarcaped; however:
  Package radarcaped is not installed.

dpkg: error processing package openskyd (--install):
 dependency problems - leaving unconfigured
Processing triggers for kali-menu (2021.1.2) ...
Errors were encountered while processing:
 openskyd

You seem to have a talent for choosing the wrong package …
Dump1090 OpenSky Feeder (Raspberry Pi-based)

Also … kinda sad kali ships a broken lighttpd configuration or whatever that issue is.
tar1090 provides a configuration file for nginx that needs to be included by the user in the relevant config file.
But if lighttpd is broken … maybe nginx works.
Graphs1090 also has something to include in the nginx config, see the respective readme.

2 Likes

@ivan2ko
Which OS image you have written to your microSD card?
I have written the one in the red rectangle in screenshot below. It will download an image named “kali-linux-2020.4-rpi4-nexmon.img”.

As it is the latest image which I have downloaded only yesterday, I did NOT issue any upgrade commands.

This image did NOT give me any issues of lighttpd and dump1090-fa map.
All feeders (Piaware, Planefinder, FR24, RB24) installed and working OK.

https://www.offensive-security.com/kali-linux-arm-images/

 

image

1 Like

Yes, I downloaded this image too, but one week ago.
But I first - I instal AnyDesk for remote connect to GUI Kali Linux.
Then try to install feeders Piaware, Planefinder, FR24 …
After that write a post here …

What config of you Raspberry Pi? 2Gb RAM too?

And for instal PiAware\DUMP used you LINKS from this discussion or direct link from PiAware - dump1090 ADS-B integration with FlightAware - FlightAware ?

Install Rsdarbox24 feeder on Kali Linux 2020.4 / RPi Model4

First I run the standard script, but it failed with outputting the last line below

sudo bash -c "$(wget -O - http://apt.rb24.com/inst_rbfeeder.sh)" 
... ....
Don't know how to install for a distribution named 

WORKAROUND

wget http://apt.rb24.com/inst_rbfeeder.sh  

sudo nano inst_rbfeeder.sh 

Scrolled down to following line
image

Commented it out (placed # at its start), and added a line below it VERS=buster.
image

Saved file
Gave following command, and RB24 feeder got installed without any further issues.

sudo bash inst_rbfeeder.sh   

By default it is disabled.
rbfeeder.service; disabled; vendor preset: disabled.
Enabled and started it.

sudo systemctl enable rbfeeder 

sudo systemctl restart rbfeeder

Checked status


 

1 Like

It is only 1 GB RAM

 

image

 

 

1 Like

Ok, I already config my Pi4 with AnyDesk + dump1090-fa \ graph + Piaware, Planefinder, FR24, and doing image backup now.
So, I will try again to do download Kali Linux image & then to do clean instal (without AnyDesk).

1 Like

It is very convenient to try different setups if one has one or two spare microSD cards. A 16 or 32 GB microSD card is not very costly now a days.

I dont make a backup to try another install. I always use a spare microSD card for experimenting. For Kali experiment, I wrote the Kali image to a spare 16 GB microSD card, slipped out my in-service Raspbain card from RPi, and slipped in the Kali microSD card. When my experiment will be over, I will slip out Kali microSD card and slip in the Raspbian microSD card.

1 Like

I make a backup of the microSD :floppy_disk: with this CONFIG - just for my own safety :innocent:
For the new Kali image, I have already freed and prepared another 64GB card.

1 Like

If you brows the thread linked below, you will realize that to save config, you dont need to save the image itself. You only need to save config in a text file, and when needed, can recreate a clone by writing a fresh image and transfer config by copy-pasting from the backup text file.

That said, sure creating a backup image makes it very easy to recreate a microSD card, and is very reassuring as well.

Re-imaging Made Easy

 

 

1 Like

 

https://forums.kali.org/showthread.php?55556-Raspberry-Pi-Models-2-3-4-Kali-2020-4-Install-dump1090-fa-Piaware-FR24-Planefinder-RB24

 

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.