Feed under Ubuntu in WSL 2 on Windows 11

Discussion in 'Feeding' started by Toby_Koh_Chang, Jun 15, 2022.

  1. Toby_Koh_Chang

    Toby_Koh_Chang New Member

    Is there anyway you can run the adbsexchange feeder under Ubuntu on WSL 2 on a Windows 11 machine? I am running the FR24 without any problems on the same machine and now would like to share data to adsbexchange as well. I running from external receiver with beast-tcp on port 30005.
    BR
    Toby_Koh_Chang
     
  2. wiedehopf

    wiedehopf Administrator Staff Member

    What else you're running on the same machine is pretty irrelevant to the question you're asking.

    Not sure if those scripts will install: https://github.com/adsbxchange/adsb-exchange

    Try installing via the script, if the systemd services can't run but the install works otherwise, you'll have to reliably start those scripts to feed:
    /usr/local/share/adsbexchange/adsbexchange-feed.sh
    /usr/local/share/adsbexchange/adsbexchange-mlat.sh

    You can edit /etc/default/adsbexchange to change the data source and point it to the correct IP.
    INPUT= in the first line.
    If it's a radarcape (that include some receiver boxes provided by FA) you'll have to change INPUT_TYPE to INPUT_TYPE="radarcape_gps"
     
    Last edited: Jun 15, 2022
  3. Toby_Koh_Chang

    Toby_Koh_Chang New Member

    Thanks for your fast reply!

    Everything went fine with installation, I have the adsbexchange in the correct directory but when issue command "/usr/local/share/adsbexchange/adsbexchange-feed.sh" I get message : "/usr/local/share/adsbexchange/adsbexchange-feed: command not found"

    No systemd services available....

    Any idea ? (I am on root level....)
     
    Last edited: Jun 15, 2022
  4. wiedehopf

    wiedehopf Administrator Staff Member

    Looks like you had the .sh from the end of the command missing?

    Check if it's in the directory:
    ls /usr/local/share/adsbexchange/
     
  5. Toby_Koh_Chang

    Toby_Koh_Chang New Member

    You are right, my mistake, thank you.

    The file is there but when run I get "line 5: /boot/adsbx-env: No such file or directory"
    I dont have that file/directory under /boot, I only have adsb-config.txt and it's empty

    Thanks in advance for your efforts !
     
  6. wiedehopf

    wiedehopf Administrator Staff Member

    remove /boot/adsb-config.txt then ... i'm not sure why you'd have it.
    it leads the script down a wrong path.

    Otherwise run the update.sh script on github ... i've made the detection a bit smarter.
     
    Last edited: Jun 15, 2022
  7. Toby_Koh_Chang

    Toby_Koh_Chang New Member

    Very cloose now, connecting to beast receiver on port 30005and connected to feed1.adsbexchange.com on port 30004 but when do:
    "writeJsonTo open(): /run/adsbexchange-feed/aircraft.jsonreadsb_tmp (and binCraft) : No such file or directory.

    Do you think installation is corrupt because I dont have /run/adsbexchamge-feed directory? or is this created by the feeder code?
     
  8. wiedehopf

    wiedehopf Administrator Staff Member

    It should work even with the errors but they are a bit annoying.
    The direcotry is normally created by the systemd service.

    I suppose you could just add

    mkdir -p /run/adsbexchange-feed/

    to the start of the script.

    Or just update again i've added something to create it.
     
  9. Toby_Koh_Chang

    Toby_Koh_Chang New Member

    I just did an update, seems the error is gone....
    Question: when there are no flights available from the receiver, is there any output from the feeder after the successful connections ??
     
  10. wiedehopf

    wiedehopf Administrator Staff Member

    No the command line will be silent.

    You can look at (install jq first):
    jq < /run/adsbexchange-feed/aircraft.json

    It will be updated regularly.
    That /run folder can also be used for data and displayed in tar1090.
    But i have no real interest in making that work for you without systemd.

    Quite honestly running a Ubuntu VM is gonna give you much more flexibility and with modern processors the performance hit isn't bad.
    You can have a webinterface / statistics / everything.
     
  11. Toby_Koh_Chang

    Toby_Koh_Chang New Member

    Now booth feeder and MLAT are green !
    Thanks a lot for all help !

    "But i have no real interest in making that work for you without systemd."

    I can understand that....
     
  12. wiedehopf

    wiedehopf Administrator Staff Member

  13. Toby_Koh_Chang

    Toby_Koh_Chang New Member

    I will give it a try....