Installation from sourceΒΆ
Note
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
~/.bashrcso 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 https://bitbucket.org/hbpneurorobotics/nrp-user-scripts.git
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 ./clone-all-repos
install nrp-core as usual and as desired, see NRP-Core Installation instructions.
add
${NRP_INSTALL_DIR}/lib/python3.8/site-packagesand${NRP_DEPS_INSTALL_DIR}/lib/python3.8/site-packagestoPYTHONPATHexport 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-defaultSTORAGE_PATHin${HBP}/nrp-user-scripts/nrp_variables)install nvm and then two versions of node 8 & 14
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash source ~/.bashrc nvm install 8 nvm install 14
in nrp-user-scripts source
nrp_variablescd "${HBP}"/nrp-user-scripts source nrp_variables
run
./configure_nrpcd "${HBP}"/nrp-user-scripts ./configure_nrp
run
./update_nrp buildcd "${HBP}"/nrp-user-scripts ./update_nrp build
run
./configure_nrpsource
nrp_aliasescd "${HBP}"/nrp-user-scripts source nrp_aliases
run nrp-reverse-proxies
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-startnrp-start
The frontend should be available at http://localhost:9000