Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Script to setup Jetson tk1 development environment
# install all essential dev packages
sudo apt-get update
sudo apt-get install -y build-essential locate keychain git cmake cmake-curses-gui libv4l-dev v4l-utils python-numpy python-scipy libavformat-dev libpng-dev libjpeg-dev libtiff-dev libswscale-dev libeigen3-dev libtbb-dev libgtk2.0-dev
sudo dpkg -i /mnt/sdcard/cuda-repo-l4t-r19.2_6.0-42_armhf.deb
# make apt aware of the package you downloaded
sudo apt-get update
# Install the CUDA Toolkit including OpenGL toolkit from NVIDIA
sudo apt-get install -y cuda-toolkit-6-0
# Add yourself to the "video" group to allow access to the GPU
sudo usermod -a -G video $USER
echo "# Add CUDA bin & library paths:" >> ~/.bashrc
echo "export PATH=/usr/local/cuda-6.0/bin:$PATH" >> ~/.bashrc
echo "export LD_LIBRARY_PATH=/usr/local/cuda-6.0/lib:$LD_LIBRARY_PATH" >> ~/.bashrc
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment