Feed Planefinder from Debian, Ubuntu, & Fedora x86_64

ab cd

Senior Member
Planefider has only i386 deb package and i386 linux binary available.
The x86_64 deb package and x86_64 linux binary are not yet available.

Following are the methods to install i386 package / linux binary on x86_64 machines.


1 - Debian and Ubuntu
This method uses i386 deb package.

1.1
- Prepare x86_64 OS to accept i386 deb package and i386 linux binary
Code:
sudo dpkg --add-architecture i386
sudo apt update

sudo apt install gcc-8-base:i386 libc6:i386 libgcc1:i386 libidn2-0:i386 libunistring2:i386

1.2 - Download and install deb package "pfclient_4.1.1_i386.deb"
Code:
wget http://client.planefinder.net/pfclient_4.1.1_i386.deb
sudo dpkg -i pfclient_4.1.1_i386.deb

sudo systemctl status pfclient

1.3 - In your browser go to page localhost:30053 (or to IP:30053 from another computer) and add your sharing key, latitude, longitude.


1.4 Useful Commands:
Code:
sudo systemctl status pfclient
sudo systemctl restart pfclient
sudo systemctl stop pfclient

2 - Fedora
NOTE:
On fedora the "pfclient_4.1.1_i386.deb" package cannot be installed.
We will therefore use linux binary tarball "pfclient_4.1.1_i386.tar.gz".
Since the tarball does not contain any configuration, init, or service files, we will create all this manually.

2.1- Prepare x86_64 OS to accept i386 linux binary
Code:
sudo dnf install audit.x86_64 glibc.i686 glibc.x86_64

2.2 - Download and uncompress tarball "pfclient_4.1.1_i386.tar.gz"
Code:
sudo dnf install wget

sudo mkdir /usr/share/pfclient
sudo wget -O /usr/share/pfclient/pfclient_4.1.1_i386.tar.gz "http://client.planefinder.net/pfclient_4.1.1_i386.tar.gz"
sudo tar zxvf /usr/share/pfclient/pfclient_4.1.1_i386.tar.gz -C /usr/share/pfclient/
sudo cp /usr/share/pfclient/pfclient /usr/bin/pfclient

2.3 - create configuration file
Code:
sudo touch /etc/pfclient-config.json
sudo chmod 666 /etc/pfclient-config.json
sudo echo "{}" > /etc/pfclient-config.json

2.4 - Setup systemd service for auto-start at boot, and for start, stop & status.
2.4.1 - Create system user pfc to run the pfclient
Code:
sudo useradd --system pfc
2.4.2 - Create a new blank file pfclient.service
Code:
sudo dnf install nano

sudo nano /lib/systemd/system/pfclient.service
2.4.3 - In file pfclient.service, copy-paste following code:
Code:
[Unit]
Description=Planefinder Feeder
After=network-online.target
[Service]
Type=simple
SyslogIdentifier=pfclient
RuntimeDirectory=pfclient
RuntimeDirectoryMode=0755
User=pfc
PermissionsStartOnly=true
ExecStartPre=-/bin/mkdir -p /var/log/pfclient
ExecStartPre=-/bin/chown pfc /var/log/pfclient
ExecStart=/usr/bin/pfclient --config_path=/etc/pfclient-config.json --log_path=/var/log/pfclient $ 2>/var/log/pfclient/error.log
Restart=on-failure
RestartSec=30
[Install]
WantedBy=multi-user.target
Save file (Ctrl+o) and close file (Ctrl+x)

2.5 - Enable the pfclient service by following command
Code:
sudo systemctl enable pfclient
sudo systemctl restart pfclient

sudo systemctl status pfclient
2.6 - In your browser go to page localhost:30053 (or to IP:30053 from another computer) and add your sharing key, latitude, longitude.

2.7 Useful Commands:
Code:
sudo systemctl status pfclient
sudo systemctl restart pfclient
sudo systemctl stop pfclient


3 - ArchLinux
Please see this post:
Feed Planefinder from Arch Linux x86_64


.
 
Last edited:

ab cd

Senior Member
***STATUS***

DEBIAN 10

Code:
abcd@debian10:~$ sudo systemctl status pfclient

● pfclient.service - LSB: planefinder.net ads-b decoder
   Loaded: loaded (/etc/init.d/pfclient; generated)
   Active: active (running) since Sun 2019-12-22 02:19:24 EST; 3min 5s ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 7 (limit: 4689)
   Memory: 4.6M
   CGroup: /system.slice/pfclient.service
           └─1590 /usr/bin/pfclient -d -i /var/run/pfclient.pid -z /etc/pfclient-config.json -y /var/log/pfclient $

Dec 22 02:19:23 debian10 systemd[1]: Starting LSB: planefinder.net ads-b decoder...
Dec 22 02:19:24 debian10 pfclient[1584]: Starting pfclient: pfclient.
Dec 22 02:19:24 debian10 systemd[1]: Started LSB: planefinder.net ads-b decoder.

UBUNTU 18
Code:
abcd@ubuntu-18:~$ sudo systemctl status pfclient

● pfclient.service - LSB: planefinder.net ads-b decoder
   Loaded: loaded (/etc/init.d/pfclient; generated)
   Active: active (running) since Sun 2019-12-22 02:01:40 EST; 1min 1s ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 7 (limit: 4675)
   CGroup: /system.slice/pfclient.service
           └─2957 /usr/bin/pfclient -d -i /var/run/pfclient.pid -z /etc/pfclient-config.json -y /var/log/pfclient $

Dec 22 02:01:40 ubuntu-18 systemd[1]: Starting LSB: planefinder.net ads-b decoder...
Dec 22 02:01:40 ubuntu-18 pfclient[2951]:  * Starting pfclient pfclient
Dec 22 02:01:40 ubuntu-18 pfclient[2951]:    ...done.
Dec 22 02:01:40 ubuntu-18 systemd[1]: Started LSB: planefinder.net ads-b decoder.

FEDORA 31
Code:
[abcd@fedora31 ~]$ sudo systemctl status pfclient

● pfclient.service - Planefinder Feeder
   Loaded: loaded (/usr/lib/systemd/system/pfclient.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2019-12-22 01:23:55 EST; 18min ago
  Process: 4757 ExecStartPre=/bin/mkdir -p /var/log/pfclient (code=exited, status=0/SUCCESS)
  Process: 4758 ExecStartPre=/bin/chown pfc /var/log/pfclient (code=exited, status=0/SUCCESS)
Main PID: 4759 (pfclient)
    Tasks: 7 (limit: 4680)
   Memory: 1.0M
      CPU: 1.233s
   CGroup: /system.slice/pfclient.service
           └─4759 /usr/bin/pfclient --config_path=/etc/pfclient-config.json --log_path=/var/log/pfclient $ 2>/var/log/pfclient/error.log


Dec 22 01:23:55 fedora31 systemd[1]: Starting Planefinder Feeder...
Dec 22 01:23:55 fedora31 systemd[1]: Started Planefinder Feeder.
 
Last edited:
Top