Skip to content

Instantly share code, notes, and snippets.

@unsalted
Last active January 14, 2019 16:36
Show Gist options
  • Save unsalted/d6ea202e2f2a8ef65176985fa78e6a2e to your computer and use it in GitHub Desktop.
Save unsalted/d6ea202e2f2a8ef65176985fa78e6a2e to your computer and use it in GitHub Desktop.

Scooby setup

nvidia

Setup that should work with current TF and cuda 9.2

From: CUDA Problems with Nvidia Driver Version

sudo add-apt-repository ppa:graphics-drivers

sudo apt install nvidia-driver-396

Download the CUDA run file for the install from (https://developer.nvidia.com/cuda-92-download-archive?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1710&target_type=runfilelocal)

sudo sh cuda_9.2.148_396.37_linux.run

Step through carefully

You are attempting to install on an unsupported configuration. Do you wish to continue?
(y)es/(n)o [ default is no ]: y

Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 396.37?
(y)es/(n)o/(q)uit: n

Install the CUDA 9.2 Toolkit?
(y)es/(n)o/(q)uit: y

Enter Toolkit Location
 [ default is /usr/local/cuda-9.2 ]:

Do you want to install a symbolic link at /usr/local/cuda?
(y)es/(n)o/(q)uit: y

Install the CUDA 9.2 Samples?
(y)es/(n)o/(q)uit: y

Enter CUDA Samples Location
 [ default is /home/terrance ]: /usr/local/cuda-9.2

Then add the following to ~/.profile:

# set PATH for cuda 9.2 installation
if [ -d "/usr/local/cuda-9.2/bin/" ]; then
    export PATH=/usr/local/cuda-9.2/bin${PATH:+:${PATH}}
    export LD_LIBRARY_PATH=/usr/local/cuda-9.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
fi

To build samples and test you need:

sudo apt-get install g++ freeglut3-dev build-essential libx11-dev \
    libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev

Reboot

Others

sudo apt install ubuntu-restricted-extras gnome-tweaks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment