Setup a deep learning machine – step 1 . install Nvidia driver

You need to disable secure start to successfully install third party Drivers

  • DOWNLOAD THE LATEST NVIDIA DRIVER
  • REMOVE ANY PREVIOUS NVIDIA DRIVER

sudo apt-get remove –purge nvidia*

  • UPDATE AND DOWNLOAD A FEW TOOLS THAT WE WILL NEED:
    sudo spt-get update
    sudo apt-get install dkms build-essential linux-headers-generic

* if you get error while installing driver (relating to headers-generic), to save time install all headers (not the best way, but at least it saves time)
* sudo apt-get install linux-headers-*

  • BLACKLIST NOUVEAU

# Create the /etc/modprobe.d/blacklist-nouveau.conf file with :
sudo nano /etc/modprobe.d/blacklist-nouveau.conf

# add these lines:
blacklist nouveau
options nouveau modeset=0
blacklist lbm-nouveau
alias nouveau off
alias lbm-nouveau off

#Disable the Kernel nouveau by typing the following commands:

echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
sudo update-initramfs -u

  • GO TO TTYX AND STOP LIGHTDM

#press ALt+Ctrl+F1
sudo service lightdm stop

  • INSTALL DRIVER

chmod +x NVIDIA-Linux-x86_64-X.Y.Z.run
sudo ./NVIDIA-Linux-x86_64-X.Y.Z.run

*Replace “NVIDIA-Linux-x86_64-X.Y.Z.run” with the name of the file that you Download in the previous step.

  • ENABLE SLI (optional)

sudo nvidia-xconfig --sli=on
sudo reboot

# to check if sli is enabled. go to nvidia- xserver-setting
in GPU(0) –> graphic card information(main page)-> end of the page: Xscreens : it has to display the screen name + (SLI)
IF THE SCREEN FLICKERS AFTER ENABLING THE SLI, INSTALL COMPIZ CONFIG, FROM A TERMINAL. TYPE:
sudo apt-get install compizconfig-settings-manager

–> From the launcher, execute CompizConfig Settings Manager
–> Check the checkbox in “Utility -> Workarounds -> Force full screen redraws (buffer swap) on repaint”

Leave a Reply

Your email address will not be published. Required fields are marked *