Last active
August 12, 2016 13:35
-
-
Save nitheeshas/a2feab4722754d80e05e66fc26bf382b to your computer and use it in GitHub Desktop.
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
## This is not a run script. Go through and create modifications accordingly. | |
sudo apt-get install -y gcc make linux-generic | |
sudo apt-get install -y xserver-xorg mesa-utils | |
sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev | |
##Disabling noveau | |
sudo su - root | |
sudo echo 'blacklist nouveau' >> /etc/modprobe.d/blacklist.conf | |
sudo echo 'options nouveau modeset=0' >> /etc/modprobe.d/blacklist.conf | |
echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf | |
sudo update-initramfs -u | |
sudo reboot now | |
wget <driver RUN file> ##Always stick to run file | |
sudo bash <run file> ## hit yes when asked for updating xorg.conf file | |
##The following are mainly for OpenGL stuff (till line 24) | |
sudo nvidia-xconfig -a --use-display-device=None --virtual=1280x1024 | |
##Only for AWS g2.#xlarge instance | |
sudo sed -i 's/ BoardName "GRID K520"/ BoardName "GRID K520"\n BusID "0:3:0"/g' /etc/X11/xorg.conf | |
sudo /usr/bin/X & | |
DISPLAY=:0 glxinfo ##Test if works | |
echo 'export DISPLAY=:0' >> ~/.bashrc | |
##CUDA installation | |
wget <CUDA run file> ##Strictly use run file. deb file will install drivers again and it will create issues | |
sudo bash <CUDA run file> | |
## hit no when asked to install driver | |
## Inspect for errors while install | |
##you MIGHT need the following; for either GLU or GL | |
##if lGL not found error even after installing gl stuff, use the following line, replacing GLU with GL | |
sudo ln -s /usr/lib/x86_64-linux-gnu/libGLU.so.1 /usr/lib/libGLU.so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment