From bf1c0946c4a9fd2486066f79ebefa84a7f16e70b Mon Sep 17 00:00:00 2001 From: Stephen Dade Date: Tue, 12 Dec 2023 22:22:47 +1100 Subject: [PATCH] Deploy: Fix jetson-on-Ubuntu-18 issues --- deploy/install_common_libraries.sh | 4 ++-- deploy/jetson-deploy.sh | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/deploy/install_common_libraries.sh b/deploy/install_common_libraries.sh index 60acb19f..408d6492 100755 --- a/deploy/install_common_libraries.sh +++ b/deploy/install_common_libraries.sh @@ -34,9 +34,9 @@ fi ## Pymavlink and gpsbabel to create KMZ. #Ubuntu 18 (Jetson) doesn't like the --break-system-packages option if [ "$ID" == "ubuntu" ] && [ "$VERSION_CODENAME" == "bionic" ]; then - DISABLE_MAVNATIVE=True pip3 install --upgrade pymavlink --user --break-system-packages -else DISABLE_MAVNATIVE=True pip3 install --upgrade pymavlink --user +else + DISABLE_MAVNATIVE=True pip3 install --upgrade pymavlink --user --break-system-packages fi sudo apt-get install -y gpsbabel zip diff --git a/deploy/jetson-deploy.sh b/deploy/jetson-deploy.sh index 9186b617..35ca9bf6 100755 --- a/deploy/jetson-deploy.sh +++ b/deploy/jetson-deploy.sh @@ -17,7 +17,13 @@ sudo systemctl disable dnsmasq sudo apt-get install -y ca-certificates curl gnupg sudo mkdir -p /etc/apt/keyrings curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg -echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list +#Ubuntu 18 (Jetson) doesn't like modern nodejs +if [ "$ID" == "ubuntu" ] && [ "$VERSION_CODENAME" == "bionic" ]; then + echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list +else + echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list +fi + sudo apt update sudo apt install -y nodejs