Installation from sourceΒΆ


Currently, only Ubuntu 20.04 is officially supported for the NRP installation from source.

  • Set HBP folder, i.e.

    export HBP=~/NRP4

    You can add this variable to your ~/.bashrc so that it is always available:

    echo "export HBP=~/NRP4" >> ~/.bashrc
  • Make sure, that the $HBP folder exists

    mkdir -p "${HBP}"
  • clone/checkout there nrp-user-scripts repository

    cd "${HBP}"
    git clone -b master
  • clone/checkout nrp-backend, nrp-proxy, nrp-frontend, nrp-core repositories. This can be done with help of script from nrp-user-scripts (or manually)

    cd ${HBP}/nrp-user-scripts
  • install nrp-core as usual and as desired, see NRP-Core Installation instructions.

  • add ${NRP_INSTALL_DIR}/lib/python3.8/site-packages and ${NRP_DEPS_INSTALL_DIR}/lib/python3.8/site-packages to PYTHONPATH

    export PYTHONPATH="${NRP_INSTALL_DIR}"/lib/python3.8/site-packages:"${PYTHONPATH}"
    export PYTHONPATH="${NRP_DEPS_INSTALL_DIR}"/lib/python3.8/site-packages:"${PYTHONPATH}"

    You can also add it to ~/.bashrc.

  • clean old ~/.opt/nrpStorage (or set non-default STORAGE_PATH in ${HBP}/nrp-user-scripts/nrp_variables)

  • install nvm and then two versions of node 8 & 14

    curl -o- | bash
    source ~/.bashrc
    nvm install 8
    nvm install 14
  • in nrp-user-scripts source nrp_variables

    cd "${HBP}"/nrp-user-scripts
    source nrp_variables
  • run ./configure_nrp

    cd "${HBP}"/nrp-user-scripts
  • run ./update_nrp build

    cd "${HBP}"/nrp-user-scripts
    ./update_nrp build
  • run ./configure_nrp

  • source nrp_aliases

    cd "${HBP}"/nrp-user-scripts
    source nrp_aliases
  • run nrp-reverse-proxies

  • start MQTT broker. You can use mosquitto Docker broker, or any other on your choice (but make sure the proper ports are open)

    docker run -d -p 1883:1883 -p 9001:9001 -p 8883:8883 -v $HBP/nrp-user-scripts/config_files/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf eclipse-mosquitto
  • run nrp-start

  • The frontend should be available at http://localhost:9000