Feed Planefinder from Arch Linux x86_64

ab cd

Senior Member
ADS-B ON ARCH LINUX x86_64

Following steps are required:
(1) Install OS ArchLinux on PC/Laptop
(2) Install Decoder dump1090-fa on ArchLinux.
(3) Install Planefinder data-feeder on ArchLinux
(4) Install data-feeders of other sites on ArchLinux

STEP 1 of 4:
Install Arch Linux on Intel Desktop.

Please see next post for details



STEP 2 of 4:
Install dump1090-fa


Archlinux_dump1090-fa.png


The method below builds dump1090-fa from source code of dump1090-fa's LATEST VERSION, using ArchLinux's PKGBUILD and foo.install scripts.
Code:
sudo pacman -S --needed git

git clone https://github.com/abcd567a/dump1090-fa-arch.git

cd dump1090-fa-arch

makepkg -si
At end you will be asked if you want to install the built package [Y/n].
If you chose Y, the dump1090-fa will be installed immediately.
If you chose not to install the build package immediately, you can install it later by following command
Code:
cd dump1090-fa-arch

sudo pacman -U dump1090-fa-*.pkg.tar.xz
THINGS TO DO AFTER INSTALLATION OF dump1090-fa IS COMPLETED

(1) IMPORTANT:
Reboot computer
otherwise dump1090-fa will fail to start, and either the Syview web page wont show (Not Found), or a rotating wheel will show.

(2) To make SkyView Map show range rings, do following:
  1. Open file "dump1090-fa" for editing
    Code:
    sudo nano /etc/default/dump1090-fa
  2. In the opened file, go to following line: RECEIVER_OPTIONS="--device-index 0 --gain -10 --ppm 0 --net-bo-port 30005"
  3. In above line, add your latitude and longitude, so the line becomes like below:
    RECEIVER_OPTIONS="--device-index 0 --gain -10 --lat xx.xxxx --lon yy.yyyy --ppm 0 --net-bo-port 30005"
    NOTE: Repalce xx.xxxx and yy.yyyy by your actual latitude and Longitude
  4. Restart dump1090-fa

    Code:
    sudo systemctl restart dump1090-fa
  5. Clear browser cache and reload browse


STEP 3 of 4:
Install Planefider data-feeder

Code:
sudo pacman -S --needed wget

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/Archlinux-adsb/master/Archlinux-install-pfclient_4.1.1_i386.sh)"

SIGNUP:
In your browser, go to web interface at

http ://ip-of-pi:30053

Fill necessary details to sign up / sign in
Use IP Address 127.0.0.1 and Port number 30005 when asked for these
If it fails to save settings when you hit button [Complete Configuration], then restart pfclient by following command, and again hit [Complete Configuration] button
sudo systemctl restart pfclient

To see status:
sudo systemctl status pfclient
To restart:
sudo systemctl restart pfclient
To stop:
sudo systemctl stop pfclient

To uninstall pfclient:
Code:
sudo systemctl stop pfclient
sudo systemctl disable pfclient
sudo rm /usr/lib/systemd/system/pfclient.service
sudo rm -rf /usr/share/pfclient
sudo rm /usr/bin/pfclient
sudo rm /etc/pfclient-config.json
sudo rm -rf /var/log/pfclient


STEP 4 of 4:
Install data-feeders of other sites


4.1 - Install FR24 data-feeder

Note: The latest version "fr24feed_1.0.24-5_amd64.tgz" gives segmentation fault, and is therefore not used.

Code:
## Option 1: fr24feed_1.0.24-5_i386
sudo pacman -S --needed wget
sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/Archlinux-adsb/master/ArchLinux-install-fr24feed_1.0.24-5_i386.sh)"

## Option 2: fr24feed_1.0.18-5_amd64
sudo pacman -S --needed wget
sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/Archlinux-adsb/master/ArchLinux-install-fr24feed_1.0.18-5_amd64.sh)"
(1) SIGNUP:
(a) If you already have a feeder key,
open file fr24feed.ini by following command and add fr24key:
sudo nano /etc/fr24feed.ini
Save (Ctrl+o) and Close (Ctrl+x) file fr24feed.ini
then restart fr24feed by following command:
sudo systemctl restart fr24feed

(b) Alternatively signup using following command
sudo fr24feed --signup

(2) In your browser, go to web interface at
http://localhost:8754

To see status:
sudo systemctl status fr24feed
To restart:
sudo systemctl restart fr24feed
To stop:
sudo systemctl stop fr24feed


To uninstall fr24feed:
Code:
sudo systemctl stop fr24feed
sudo systemctl disable fr24feed
sudo rm /lib/systemd/system/fr24feed.service
sudo rm -rf /usr/share/fr24
sudo rm /usr/bin/fr24feed
sudo rm /etc/fr24feed.ini
sudo rm -rf /var/log/fr24feed
 
Last edited:

ab cd

Senior Member
How To Install Arch Linux x86_64 OS on Desktop/Laptop

(1) Download .iso file using torrent
https://www.archlinux.org/download/


(2) Burn a CD with the Archlinux .iso, and boot your PC from CD.
Select "Boot Arch Linux (x86_64)"

Click image for larger version
ArchLinux-OS-1.png

After Booting you will see the screen below
Click image for larger version
ArchLinux-OS-2.png


(3) Follow the steps below

(3.1) CHECK PARTITIONS:

Code:
lsblk

(3.2) CREATE PARTITIONS:
Code:
fdisk /dev/sdX
## replace sdX by your actual drive number (sda, or sdb, or sdc etc) on which you want to install Arch Linux
Type n for a new partition.
Type p for a primary partition and select the partition number.

The First sector is automatically selected and you just need to press Enter.

For Last sector, type the size you want to allocate for this partition
(like +10G for a 10 Gb disk size).

Press a and choose partition type "boot".

Create one more partitions in similar way for Swap.
(a) Make it's size double the of size of RAM
(b) Do NOT make it bootable

Press w to save the changes and exit.

To see boot flag is at sdX1, and no flag at sdX2
Code:
fdisk -l /dev/sdX
## replace sdX by your actual drive number (sda, or sdb, or sdc etc) on which you want to install Arch Linux

(3.3) CREATE FILE SYSTEM:
Code:
mkfs.ext4 /dev/sdX1
mkswap /dev/sdX2
swapon /dev/sdX2
## replace sdX by your actual drive number (sda, or sdb, or sdc etc) on which you want to install Arch Linux

(3.4) MOUNT FILE SYSTEM:
Code:
mount /dev/sdX1 /mnt
## replace sdX1 by your actual drive number (sda1,or sdb1, or sdc1 etc) on which you want to install Arch Linux

(3.5) INSTALL ARCH LINUX:
NOTE: Each of following 2 commands Take long time to complete.
Please be patient.
Code:
pacstrap /mnt base base-devel

pacstrap /mnt linux linux-firmware

(3.6) CONFIGURE fstab:
Code:
genfstab -U /mnt >> /mnt/etc/fstab

(3.7) CHANGE ROOT INTO NEW SYSTEM
Code:
arch-chroot /mnt
The command prompt will change

From:
ArchLinux - OS-3.png


To:
ArchLinux - OS-4.png


(To exit chroot, use command "exit")


(3.8) SET TIME ZONE:
Give following command to list all regions and timezones:
Code:
ls /usr/share/zoneinfo
Set your zone by following command
(NOTE: Replace Canada and Eastern by your region & timezone)
Code:
ln -sf /usr/share/zoneinfo/Canada/Eastern /etc/localtime

(3.9) SET HARDWARE CLOCK:
Code:
hwclock --systohc --utc

(3.10) SET LOCALE:
(a) Install nano:

Code:
pacman -Syu nano
(b) Open file locale.gen for editing
Code:
nano /etc/locale.gen
Scroll down and uncomment following line (i.e. delete # at the start of line)
#en_US.UTF-8 UTF-8
Save and close

(c) Issue following commands:
Code:
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8

(3.11) SET HOSTNAME & ROOT PASSWORD:

(a) Set hostname:

NOTE:

(i) Replace "HOSTNAME" by name of your choice without ""

Code:
echo "HOSTNAME" > /etc/hostname
echo "HOSTNAME" >> /etc/hosts
(b) Set Root password:
Code:
passwd

(3.12) INSTALL WIRED NETWORK eth0
Code:
pacman -S dhcpcd
systemctl enable dhcpcd
Check:
Code:
ping -c 3 google.com

(3.13) INSTALL BOOTLOADER (GRUB)
Code:
pacman -S grub os-prober

grub-install /dev/sdX
## Relace sdX by the drive number on which you have installed ArchLinux (sda, or sdb, or sdc, etc)

grub-mkconfig -o /boot/grub/grub.cfg

(3.14) INSTALL DESKTOP GNOME:
Code:
pacman -S xorg xorg-server

pacman -S gnome gnome-extra
Enable GDM
Code:
systemctl enable gdm.service

## if above command results in "Unit gdm.service not found", do following:
## pacman -S gdm
## systemctl enable gdm.service

(3.15) INSTALL SSH:
Code:
systemctl enable sshd
## pacman -S openssh (if not already installed and "Unit sshd.service not found")
## systemctl start sshd (not in chroot, after booting to installed OS)

(3.16) ADD USER:
Code:
## Add new user
## Replace [username] by actual user name you want to add
useradd -m -g users -G wheel,audio,power,storage,optical,video,lp,games -s /bin/bash [username]

## Set password for user added by above command
passwd [username]

(3.17) ENABLE SUDO FOR NEW USER
Code:
EDITOR=nano visudo
Above command will launch file /etc/sudoers.tmp

Uncomment following line (i.e. delete # at start of line)
# %wheel ALL=(ALL) ALL

Save & Close


(3.18) Exit and boot to newly installed OS
Code:
exit
reboot
At boot screen, select "Boot Existing OS"
 
Last edited:
Top