Announcement

Collapse
No announcement yet.

Feed FR24 from ARCH linux

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Feed FR24 from ARCH linux

    FEED FR24 FROM ARCH LINUX....


    ArchLinux - dump1090-fa.png ArchLinux - OS-5.pngArchLinux - fr24feed.png



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

    Please see next post for details



    STEP 2 of 3:
    Install dump1090-fa

    The method below builds dump1090-fa from source code, 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 3:
    Install FR24 feeder

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


    OPTION - 1:
    Using i386 binary of new version "fr24feed_1.0.24-5_i386.tgz"
    Copy-paste following two commands one by one in the terminal:
    The 2nd command below is very long.
    Please scroll right to see and copy this command in full (including the " at the end).

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

    OPTION - 2:
    Using amd64 binary of old version "fr24feed_1.0.18-5_amd64.tgz"
    Copy-paste following two commands one by one in the terminal:
    The 2nd command below is very long.
    Please scroll right to see and copy this command in full (including the " at the end).

    Code:
    sudo pacman -S --needed wget
    
    sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/ArchLinux-Alarmpi-adsb/master/ArchLinux-install-fr24feed_1.0.18-5_amd64.tgz.sh)"

    After FR24 Feeder installation script finishes, it displays following message:

    Code:
    INSTALLATION COMPLETED
    =======================
    PLEASE DO FOLLOWING:
    =======================
    (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

    CONFIGURATION OF FR24FEED
    The configuration file can be edited by following command;
    Code:
    sudo nano /etc/fr24feed.ini
    Default contents of FR24FEED config file
    In the default file, the value of fr24key is blank.
    You can add the value of fr24key by editing this file, OR during command "sudo fr24feed --signup"
    Default setting are for a decoder like dump1090-mutability or dump1090-fa running on the Computer.
    This can be changed by editing config file.


    Code:
    receiver="beast-tcp"
    host="127.0.0.1:30005"
    fr24key=""
    
    bs="no"
    raw="no"
    logmode="1"
    logpath="/var/log/fr24feed/"
    windowmode="0"
    mpx="no"
    mlat="yes"
    mlat-without-gps="yes"
    use-http=yes
    http-timeout=20

    TO UNINSTALL FR24FEED
    To completely remove configuration and all files, give following 7 commands:

    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 by abcd567; 2019-12-02, 04:57.

  • #2
    How To Install Arch Linux OS

    (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 ""
    (ii) In code below, remove space between "/" and "hostname" and "hosts".
    I was forced to put these spaces, as without spaces, the forum's over-active spam protector declared my post "spam" & "forbidden"

    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:
    useradd -m -g users -G wheel,audio,power,storage,optical,video,lp,games -s /bin/bash [username]
    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"

    Comment


    • #3
      How To Install OS "AlarmPi" (Arch Linux arm for Pi), dump1090-fa and fr24feed on microSD card of a Pi

      STEP 1 of 3: Install OS
      Click Installation Tab on these pages:

      RPi 2
      https://archlinuxarm.org/platforms/armv7/broadcom/raspberry-pi-2


      RPi 3
      https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3


      RPi 4
      https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-4


      ODROID C1
      https://archlinuxarm.org/platforms/armv7/amlogic/odroid-c1


      ODROID C2
      https://archlinuxarm.org/platforms/armv8/amlogic/odroid-c2


      ODROID N2
      https://archlinuxarm.org/platforms/armv8/amlogic/odroid-n2



      STEP 2 of 3: Install dump1090-fa on AlarmPi
      After installing OS, boot the Pi, and follow instructions for installation of dump1090-fa in first post of this thread


      STEP 3 of 3: Install fr24feed on AlarmPi
      After installing OS, boot the Pi, and copy-paste following two commands one by one in the terminal:
      The 2nd command below is very long.
      Please scroll right to see and copy this command in full (including the " at the end)


      Code:
      sudo pacman -S --needed wget    
      
      sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/fr24feed-debian-ubuntu-amd64/master/install-Alarmpi-fr24feed_1.0.24-7_arm.sh)"

      Comment


      • #4
        PLACEHOLDER 1

        Comment


        • #5
          PLACCEHOLDER 2

          Comment

          Working...
          X