Skip to content

Instantly share code, notes, and snippets.

@tstellanova
Last active August 29, 2015 14:06
Show Gist options
  • Save tstellanova/6164d0dd621476c0b4b4 to your computer and use it in GitHub Desktop.
Save tstellanova/6164d0dd621476c0b4b4 to your computer and use it in GitHub Desktop.
Script to setup Jetson tk1 development environment
#!/bin/bash
#
# 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