Install NVIDIA Driver on Ubuntu 16.04 LTS

1) Log out from GUI

2) Open a terminal (tty) by using the Ctrl + Alt + F6 key combinations.

3) Login to the system by typing your username and password

4) Stop X-server:
    sudo service lightdm stop

5) Disable nouveau driver
    - Create the following file /etc/modprobe.d/blacklist-nouveau.conf 
    - Inside the file write those two lines :
     blacklist nouveau 
     options nouveau modeset=0

6) Update the kernel
    sudo update-initramfs -u

7) Download latest compatible NVIDIA driver from NVIDIA web site( http://www.nvidia.com/Download/index.aspx ) My driver was NVIDIA-Linux-x86_64-384.59.run

8) To install the NVIDIA driver, make sure that you have the right version of the gcc chosen. For my NVIDIA driver, I needed to choose gcc 5.0. To achieve this use
    sudo update-alternatives --config gcc 

9) Uninstall previously installed NVIDIA drivers
    sudo apt-get purge nvidia-*
    sudo apt autoremove

10) Run installation file.
      sudo sh NVIDIA-Linux-x86_64-384.59.run

11) Check if you succesfully installed the driver. The following command should print your NVIDIA driver version ang GPU Memory Usage.
     nvidia-smi

 12) Start X-server
     sudo service lightdm start

No comments:

Post a Comment

Python Line Profilers using Decorator Pattern

You can use any of the following decorators to profile your functions line by line.  The first one(Profiler1) is a decorator as a class and...