TLeconte acars for Raspberrypi

Discussion in 'Other technical not related to ADSBx Feeding' started by gcopter1, May 2, 2018.

  1. MDA

    MDA Administrator Staff Member

    File is empty, paste code mentioned in one of previous posts.
    at the beginning of file you can add:
    Code:
    #!/bin/sh
    
     
  2. gcopter1

    gcopter1 Member

    So add that to the previous line, the one that had the acars frequencies, or, is it two lines?
     
  3. MDA

    MDA Administrator Staff Member

    just insert to this file:
    Code:
    #!/bin/sh
    ./acarsdec -p -8 -r 0 131.525 131.550 131.725 131.825
    
    And make it executable.
     
  4. gcopter1

    gcopter1 Member

    Sorry, make it executable?
     
  5. MDA

    MDA Administrator Staff Member

    sudo chmod +x run-acars.sh
     
    Last edited: May 3, 2018
  6. gcopter1

    gcopter1 Member

    Attached Files:

  7. MDA

    MDA Administrator Staff Member

    From root level simply go to acars
    Code:
    cd acars
    list files, open run-acars in nano.
    Code:
    sudo nano run-acars.sh
     
  8. MDA

    MDA Administrator Staff Member

    sudo chmod +x run-acars.sh
     
  9. gcopter1

    gcopter1 Member

    Ok, trying to follow here.
    If from root level you mean, start with a fresh terminal window and enter;
    cd acars
    I get this.
    If I then follow entering the next command;
    sudo nano run-acars.sh
    I end up with;
     

    Attached Files:

  10. MDA

    MDA Administrator Staff Member

    Now try to launch it:
    sudo ./run-acars.sh
     
  11. gcopter1

    gcopter1 Member

    This is what I get.
     

    Attached Files:

  12. MDA

    MDA Administrator Staff Member

    It looks like acarsdec is not installed.
    Remove folder and try to start-over carefuly folowing steps described on project website.
    to remove folder:
    Code:
    sudo rm -rf acars
     
  13. gcopter1

    gcopter1 Member

    I have begun all over. Now I´m stuck at step three; ¨Running the decoder¨

    I used sudo nano to create the run-acars file.
    I then copied and pasted the contents, with some modifications as the acars frequencies given in the instructions, did´nt match any that were active in my area.
    When I´m done with nano, I exit using ctrl x.
    Now the instructions say to enter the following;

    chmod +x run acars
    I get;
    chmod: changing permissions of 'run-acars': Operation not permitted

    If I use sudo it then would say Permission denied.
    Oh, and acarsdec is now installed.
     
  14. MDA

    MDA Administrator Staff Member

    Rename script to "run-acars.sh" and try to make it executable again.
    If you created file as sudo you'll need to use sudo to make it executable.
     
  15. gcopter1

    gcopter1 Member

    Yeah, this isn´t working. Don´t know where I´m making the mistakes, hard to troubleshoot going back and forth in forums. I thank you for your efforts.

    I did find out when opening the folder containing everything needed to run the program, there´s one named; scan.sh.
    When I double click that, it asks me whether I want to execute it or execute it in terminal.
    If I choose the terminal option, the terminal window would briefly flash and close.
    Choosing execute, nothing seems to happen. There doesn´t seem to be a way to ¨execute¨ this program unless I use terminal and commands, correct?
     
  16. MDA

    MDA Administrator Staff Member

    If you have TeamViewer installed we can try remote support. Tomorrow, think about 6 hours time difference.
     
  17. gcopter1

    gcopter1 Member

    Currently I don´t have team viewer installed.
    Downloaded it, right clicked it, choose package install, got an error saying a package could not be found that allows the action to complete.
     
  18. MDA

    MDA Administrator Staff Member

    Install TeamViewer Host. Just follow steps from TeamViewer website.
     
  19. gcopter1

    gcopter1 Member

    Done. I´m in the eastern coast of the US. What would be an agreeable time for you?
     
  20. MDA

    MDA Administrator Staff Member

    Add 6 hours to your local time. For me not a big issue. Just say "I'm ready for remote support session".