Skip to content

Commit

Permalink
Deploy: Fix jetson-on-Ubuntu-18 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendade committed Dec 12, 2023
1 parent 35f3858 commit bf1c094
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deploy/install_common_libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 7 additions & 1 deletion deploy/jetson-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf1c094

Please sign in to comment.