-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b59033
commit 50cf380
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
# Script to set up Isaac Sim on a cluster. | ||
# This script was adapted from here: | ||
# https://docs.omniverse.nvidia.com/isaacsim/latest/installation/install_container.html | ||
|
||
# Run updates and install dependencies. | ||
sudo apt-get update | ||
sudo apt install build-essential -y | ||
|
||
# Install NVIDIA drivers. | ||
wget https://us.download.nvidia.com/XFree86/Linux-x86_64/525.85.05/NVIDIA-Linux-x86_64-525.85.05.run | ||
chmod +x NVIDIA-Linux-x86_64-525.85.05.run | ||
sudo ./NVIDIA-Linux-x86_64-525.85.05.run | ||
|
||
# Docker installation using the convenience script | ||
curl -fsSL https://get.docker.com -o get-docker.sh | ||
sudo sh get-docker.sh | ||
|
||
# Post-install steps for Docker | ||
sudo groupadd docker | ||
sudo usermod -aG docker $USER | ||
newgrp docker | ||
|
||
# Verify Docker | ||
docker run hello-world | ||
|
||
# Configure the repository | ||
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \ | ||
&& curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \ | ||
sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \ | ||
sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list \ | ||
&& \ | ||
sudo apt-get update | ||
|
||
# Install the NVIDIA Container Toolkit packages | ||
sudo apt-get install -y nvidia-container-toolkit | ||
sudo systemctl restart docker | ||
|
||
# Verify NVIDIA Container Toolkit | ||
docker run --rm --gpus all ubuntu nvidia-smi |