Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Feeding to Flightradar24 using a USB DVB-T stick on FreeBSD

  1. #11
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,345
    Third Enhancement (in addition to steps at: https://www.netraam.nl/ramblings/fee...ck-on-freebsd/)


    Automatic start of dump1090 and fr24feed at boot.

    Both the "dump1090" & "fr24feed" will run in background.
    Terminal or console will NOT open to display their output.
    You can check their status in browser as shown in step (11) below.



    NOTE:
    For this enhancement to work, you must first carry out both the first and second enhancements given in my previous posts above.



    (1) Create a new directory rc.d inside /usr/local/etc
    Code:
    root@freebsd:/usr/home/abcd # mkdir /usr/local/etc/rc.d
    (2) Create 2 new files "dump1090" and "fr24feed" inside this new directory.
    Make files executeable
    Code:
    root@freebsd:/usr/home/abcd # touch /usr/local/etc/rc.d/dump1090
    root@freebsd:/usr/home/abcd # chmod +x  /usr/local/etc/rc.d/dump1090
    
    root@freebsd:/usr/home/abcd # touch /usr/local/etc/rc.d/fr24feed
    root@freebsd:/usr/home/abcd # chmod +x  /usr/local/etc/rc.d/fr24feed
    (3) Install nano editor (Optional step. You may use ee or vi if you dont want to install nano)
    Code:
    root@freebsd:/usr/home/abcd # pkg install nano
    (4) Open newly created blank file dump1090 in nano (or ee or vi)
    Code:
    root@freebsd:/usr/home/abcd # nano /usr/local/etc/rc.d/dump1090
    (5) Copy-paste following code
    Save (Ctrl+o) and close (Ctrl+x)
    Code:
    #!/bin/sh
    
    # PROVIDE: dump1090
    # REQUIRE:
    
    . /etc/rc.subr
    
    name="dump1090"
    
    rcvar=${name}_enable
    ##pidfile="/var/run/${name}.pid"
    command="/usr/local/bin/dump1090"
    command_args="--net &"
    load_rc_config $name
    run_rc_command "$1"

    (6) Open newly created blank file fr24feed in nano (or ee or vi)
    Code:
    root@freebsd:/usr/home/abcd # nano /usr/local/etc/rc.d/fr24feed

    (7) Copy-paste following code
    Save (Ctrl+o) and close (Ctrl+x)
    Code:
    #!/bin/sh
    
    # PROVIDE: fr24feed
    # REQUIRE:
    
    . /etc/rc.subr
    
    name="fr24feed"
    
    rcvar=${name}_enable
    ##pidfile="/var/run/${name}.pid"
    command="/usr/local/bin/fr24feed"
    command_args=" &"
    load_rc_config $name
    run_rc_command "$1"

    (8) Open file /etc/rc.conf in nano
    Code:
    root@freebsd:/usr/home/abcd # nano /etc/rc.conf

    (9) Add following two lines at end as shown in red
    dump1090_enable="YES"
    fr24feed_enable="YES"

    Save (Ctrl+o) and close (Ctrl+x)
    Code:
    hostname="freebsd"
    ifconfig_DEFAULT="DHCP inet6 accept_rtadv"
    sshd_enable="YES"
    linux_enable="YES"
    dump1090_enable="YES"
    fr24feed_enable="YES"
    (10) REBOOT

    (11) After Reboot, check:

    Code:
    root@freebsd:/usr/home/abcd # service dump1090 status
    dump1090 is running as pid 617.
    
    root@freebsd:/usr/home/abcd # service fr24feed status
    fr24feed is running as pid 615.
    Status & Settings:
    IP-of-FreeBSD-Computer:8754

    Map:
    IP-of-FreeBSD-Computer:8080

    .
    Last edited by abcd567; 2018-12-05 at 07:56.

  2. #12
    Captain abcd567's Avatar
    Join Date
    Sep 2013
    Location
    Toronto CYYZ
    Posts
    2,345
    A related thread from one and half years ago (July 2017)

    FreeBSD / RaspBSD - Installation of dump1090 (fa or mut)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •