Skip to content

Instantly share code, notes, and snippets.

@dudo
Last active July 17, 2024 13:17
Show Gist options
  • Save dudo/5b14dcbb873aec6a6c307ecfea2ee678 to your computer and use it in GitHub Desktop.
Save dudo/5b14dcbb873aec6a6c307ecfea2ee678 to your computer and use it in GitHub Desktop.
@dudo
Copy link
Author

dudo commented Jul 31, 2023

Nvidia

The version of the nvidia toolkit needs to be updated... forcefully.

Install

https://nvidia.github.io/nvidia-container-runtime/

distribution=$(. /etc/os-release;echo $ID$VERSION_ID)

curl -s -L https://nvidia.github.io/libnvidia-container/gpgkey | sudo apt-key add -
curl -s -L https://nvidia.github.io/libnvidia-container/experimental/$distribution/libnvidia-container.list | sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list

sudo apt update
apt -y install python3-pip curl
sudo pip3 install -U jetson-stats

Helpful commands

jtop

@dudo
Copy link
Author

dudo commented Jul 31, 2023

kube-router

Jetson ubuntu does not have ipset kernel module installed.

Installation

sudo cp /etc/apt/sources.list /etc/apt/sources.list~
sudo sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list
sudo apt update
sudo apt build-dep ipset

Edit /etc/depmod.d/ubuntu.conf and add ‘extra’ to the end of the line, so it looks like:

search updates ubuntu built-in extra

This part needs to be ran after every kernel upgrade

Load dependencies

sudo depmod

Build ipset kernel module and install

sudo apt source ipset
cd ipset-7.*
sudo ./autogen.sh
sudo ./configure
sudo make modules
sudo make modules_install
modprobe xt_set
lsmod

@dudo
Copy link
Author

dudo commented Jul 31, 2023

CNI

If ever changing CNIs... clear out this dir

sudo rm -rf /etc/cni/net.d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment