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
~/.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 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-packages
and${NRP_DEPS_INSTALL_DIR}/lib/python3.8/site-packages
toPYTHONPATH
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-defaultSTORAGE_PATH
in${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_variables
cd "${HBP}"/nrp-user-scripts source nrp_variables
run
./configure_nrp
cd "${HBP}"/nrp-user-scripts ./configure_nrp
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
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
nrp-start
The frontend should be available at http://localhost:9000