Announcement

Collapse
No announcement yet.

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

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

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

    Hi people,

    I thought some of you might be interested in the how-to I've drawn up, which explains how to feed using FreeBSD as an OS. Please let me know if you do!

    Cheers,

    netraam

  • #2
    I am interested, as a learning process.

    I will install freeBSD OS in Oracle Virtual Machine on my Windows Desktop. As first step, I will need link for freeBSD installation/download site.

    Please do post the "how-to feed" you have already drawn.
    Last edited by abcd567; 2018-11-27, 21:39.

    Comment


    • #3
      Alright, here we go.

      First, everything you need to know when starting out with FreeBSD you'll find here: https://www.freebsd.org/projects/newbies.html

      There is also a pointer to the download section there.

      Then, my write up about feeding to Flightradar24 using FreeBSD as an OS is on my own site: https://www.netraam.nl/ramblings/fee...ck-on-freebsd/

      Good luck, and do not hesitate to ask if you should get stuck!
      Last edited by netraam; 2018-11-28, 00:00.

      Comment


      • #4
        Thanks. I am away from my home & desktop (replying by phone). Will attempt it tomorrow if I find time, otherwise possibly comming weekend.

        Thanks again for posting link to your valuable work.
        Keep it up Thumbs Clapp.jpg

        Comment


        • #5
          Thanks, will do.

          I'd be interested to know if this works for you from within a VM.

          Comment


          • #6
            Apparently there is no reason why it should not work in VM.
            Will let you know when I actually do it.

            Comment


            • #7
              Here it is:







              Comment


              • #8
                FIRST ENHANCEMENT, which is ADDITIONAL to steps shown at : https://www.netraam.nl/ramblings/fee...ck-on-freebsd/

                To avoid writing arguments with fr24feed every time I want to start it, I have created a new file and added all arguments there. Now I have to give only " ./fr24feed " command without any argument. The fr24feed linux binary by default picks all arguments from file /etc/fr24feed.ini.

                Code:
                ee /etc/fr24feed.ini

                Copy-pasted following code
                (Replace xxxxxcxxx by your sctual key)

                Code:
                receiver="avr-tcp" 
                host="127.0.0.1:30002" 
                fr24key="xxxxxxxxxxxxxxx" 
                bs="no" 
                raw="no" 
                logmode="1" 
                windowmode="0" 
                mpx="no" 
                mlat="yes" 
                mlat-without-gps="yes"

                Made file writeable
                Code:
                chmod 666 /etc/fr24feed.ini
                Now I can view and change settings from another computer
                IP-OF-FreeBSD-Computer:8754
                Last edited by abcd567; 2018-12-03, 16:19.

                Comment


                • #9
                  SECOND ENHANCEMENT, which is ADDITIONAL to steps shown at : https://www.netraam.nl/ramblings/fee...ck-on-freebsd/


                  After extracting downloaded fr24feed binary by following command "tar xzvf fr24feed_1.0.18-5_i386.tgz", moved into extracted folder "fr24feed_i386", and issued install command shown below:

                  Code:
                  cd fr24feed_i386
                  install fr24feed /usr/local/bin/fr24feed
                  cd ..
                  After this enhancement, to start fr24feed, I don't need to be inside the directory "fr24feed_i386", neither do I have to use "./" before fr24feed. I can now start fr24feed from any directory, and simply by typing "fr24feed" and pressing "Enter" key.
                  Last edited by abcd567; 2018-12-03, 21:48.

                  Comment


                  • #10
                    [SOLVED] PROBLEM IN DOWNLOADING fr24feed_i386 BINARY [SOLVED]

                    (1) Using "fetch" Command

                    Code:
                    root@freebsd:/usr/home/abcd # fetch https://repo-feed.flightradar24.com/linux_x86_binaries/fr24feed_1.0.18-5_i386.tgz
                    Certificate verification failed for /C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./CN=Go Daddy Root Certificate Authority - G2
                    673056224:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/s3_clnt.c:1269:
                    fetch: https://repo-feed.flightradar24.com/linux_x86_binaries/fr24feed_1.0.18-5_i386.tgz: Authentication error
                    WORKAROUND for "fetch" command
                    ADD --no-verify-peer at the end of command

                    Code:
                    root@freebsd:/usr/home/abcd # fetch https://repo-feed.flightradar24.com/linux_x86_binaries/fr24feed_1.0.18-5_i386.tgz --no-verify-peer   
                    fr24feed_1.0.18-5_i386.tgz                    100% of  287 kB 4378 kBps 00m00s

                    .

                    (2) Using "wget" Command

                    Code:
                    root@freebsd:/usr/home/abcd # pkg install wget
                    Code:
                    root@freebsd:/usr/home/abcd # wget https://repo-feed.flightradar24.com/linux_x86_binaries/fr24feed_1.0.18-5_i386.tgz
                    --2018-12-03 13:30:58--  https://repo-feed.flightradar24.com/linux_x86_binaries/fr24feed_1.0.18-5_i386.tgz
                    Resolving repo-feed.flightradar24.com (repo-feed.flightradar24.com)... 104.20.1.101, 104.20.0.101, 2606:4700:10::6814:65, ...
                    Connecting to repo-feed.flightradar24.com (repo-feed.flightradar24.com)|104.20.1.101|:443... connected.
                    ERROR: cannot verify repo-feed.flightradar24.com's certificate, issued by 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\\, Inc.,L=Scottsdale,ST=Arizona,C=US':
                      Unable to locally verify the issuer's authority.
                    To connect to repo-feed.flightradar24.com insecurely, use `--no-check-certificate'.
                    WORKAROUND for "wget" command
                    Add --no-check-certificate at the end of wget command

                    Code:
                    root@freebsd:/usr/home/abcd # wget https://repo-feed.flightradar24.com/linux_x86_binaries/fr24feed_1.0.18-5_i386.tgz --no-check-certificate  
                    --2018-12-03 13:44:29--  https://repo-feed.flightradar24.com/linux_x86_binaries/fr24feed_1.0.18-5_i386.tgz
                    Resolving repo-feed.flightradar24.com (repo-feed.flightradar24.com)... 104.20.1.101, 104.20.0.101, 2606:4700:10::6814:165, ...
                    Connecting to repo-feed.flightradar24.com (repo-feed.flightradar24.com)|104.20.1.101|:443... connected.
                    WARNING: cannot verify repo-feed.flightradar24.com's certificate, issued by 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\\, Inc.,L=Scottsdale,ST=Arizona,C=US':
                      Unable to locally verify the issuer's authority.
                    HTTP request sent, awaiting response... 200 OK
                    Length: 294387 (287K) [application/x-tar]
                    Saving to: 'fr24feed_1.0.18-5_i386.tgz.1'
                    
                    fr24feed_1.0.18-5_i386.t 100%[==================================>] 287.49K  --.-KB/s    in 0.06s
                    
                    2018-12-03 13:44:29 (4.72 MB/s) - 'fr24feed_1.0.18-5_i386.tgz' saved [294387/294387]
                    Last edited by abcd567; 2018-12-04, 06:18.

                    Comment


                    • #11
                      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, 07:56.

                      Comment


                      • #12
                        A related thread from one and half years ago (July 2017)

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

                        Comment

                        Working...
                        X