Installation from Source¶
Note
Currently, only Ubuntu 20.04 is officially supported for the NRP installation from source.
Pre-installation Steps¶
Set the HBP folder:
Add this variable to your .bashrc for persistence:
Ensure the HBP folder exists:
Install Nginx and HAProxy:
Install nvm and Node versions 8 & 14:
Clone nrp-user-scripts repository (for the last stable version use master branch, for the development version use development branch):
Clone nrp-backend, nrp-proxy, nrp-frontend, nrp-core repositories using nrp-user-scripts or do it manually:
Install NRP-Core. Refer to the NRP-Core Installation instructions.
Warning
The proper installation of the NRP-Core is essential for the functioning of the NRP source installation.
Configuration and Building¶
Add required paths to PYTHONPATH:
For persistence, you can also add it to .bashrc.
Clean old storage or set a non-default STORAGE_PATH in ${HBP}/nrp-user-scripts/nrp_variables.
Source nrp_variables from nrp-user-scripts:
Warning
Temporarily remove it when the need of rebuilding nrp-core arises (e.g. when developing the latter).
Configure NRP:
Update NRP with build option:
Add default user to the database (if not added before):
Source nrp_aliases:
Run NRP reverse proxies:
Start the MQTT broker (using the mosquitto Docker broker or another of your choice, ensuring the proper ports are open):
Start NRP:
Access¶
Once everything is set up, the frontend should be accessible at http://localhost:9000.