Running CNUT in linux

For the linux users out there, there are a couple of issues with the CNUT distributed by cambium:


  • The launch script uses windows style newlines, this means that
    sudo bash /usr/local/Canopy/networkupdater/CNUTLauncher.sh

    Will issue errors like:
    ‘: not a valid identifierexport: CANOPY_HOME<br>': not a valid identifierexport: JAVA_HOME
    CNUTLauncher.sh: line 7: $’'r’: command not found
    ‘: not a valid identifierexport: `PATH
    CNUTLauncher.sh: line 10: $’'r’: command not found
    CNUTLauncher.sh: line 12: $‘'r’: command not found
    CNUTLauncher.sh: line 33: syntax error: unexpected end of file

    The easiest fix is to convert the script into linux format by using the dostolinux utitity
    fromdos CNUTLauncher.sh

  • You will need to launch the script as root (by using sudo), otherwise you will get a message saying
    Failed to start http Server:
    java.net.SocketException: Permission denied


So far this, if I forget anything or any of this has been fixed/changed on newer versions, please ping me to update this doc.

1 Like