ubuntu14.4 Installation gtx970 Graphics driver's hard journey

Source: Internet
Author: User

1 Description:
I machine description, graphics card gtx970, memory 4G, the original system is Win7 64. Some recent algorithms for machine learning need to be installed in Ubuntu. But the installation environment this road is really tortuous, to go back and forth for a long time. The following is a list of issues encountered during the configuration of the environment.


2 already have integrated graphics on the machine, I want to use the hard drive and then install ubuntu14.4 64-bit system, dual system. The process of installing a dual system can be seen in previous essays. Windows system installed Ubuntu dual system but during the installation process, if the independent graphics card on the machine, always in the login interface does not come out, and then is a black screen, check the data show that this is because the BIOS set the boot will default using a discrete graphics card as the display output. So want to install dual system on the machine in the video card, first need to enter the BIOS setting boot boot the default display device is integrated video card. The specific setup steps please Baidu yourself. It looks like it's in the peripheral section.

3 Steps to install a standalone graphics driver: One is an online installation, one is an offline installation, and you need the corresponding installation package yourself now

1) completely uninstall the installed graphics driver, perform the following steps

sudo apt-get remove--purge nvidia-*sudo apt-get install ubuntu-/etc/x11/   'nouveau' | sudo tee-a/etc/modules

If you have not previously installed NVIDIA graphics drivers, executing these commands may prompt you not to find a directory or file, which can be ignored.

2) Restart the computer, press CTRL+ALT+F1 on the login page to enter the TTY, turn off LIGHTDM.

sudo service LIGHTDM stop

  

3) Add Drive source

sudo add-apt-repository ppa:xorg-edgers/ppasudo apt-get update

4) Reinstall the driver

I) Online version: Install version 340 driver: sudo apt-get install nvidia-340

II) Offline version: sudo sh nvidia-linux-x86_64-367.57.run

During the installation process as prompted to do so, the general choice is yes or OK.

  

5) After the installation is complete, restart the computer using the following command :

 sudo reboot


If you already have access to the desktop, do not bother with the following steps

6) After entering the system, the resolution may not be correct, execute the following command to view the current drive
prime-Select Query

If the display is using NVIDIA, proceed to the next step, otherwise execute the following command to configure the driver:

sudo update-alternatives--config i386-linux-gnu_gl_conf

In the list of displayed graphics cards, select the installed nvidia:

sudo prime-select nvidia

Use the following command to update the system driver

sudo ldconfig-nsudo update-initramfs-u

Restart the computer, the desktop appears normal, you can use Prime-select query to see if the current video card is nvidia.

4 error occurred during installation

  

error:unable to load the kernel module'Nvidia.ko'. This happens more frequently when Thiskernel module was built against the wrong or improperly configured kernel sources, with a version of GCC that D Iffers fromThe one used to build the target kernel, orifA driver such asRIVAFB/nvidiafb isPresent and prevents the NVIDIA kernel module fromobtaining ownership of the Nvidia graphics device (s), or NVIDIA GPU installedinch  ThisSystem isNot supported by ThisNVIDIA Linux Graphics driver release.

Find the solution to the foreigner

1) Download newest Nvidia drivers from their website
2) Open module blacklist as admin: (I use gedit for text file editing)

Code:
sudo gedit/etc/modprobe.d/blacklist.conf

3) Add These lines and save:

Code:
Blacklist vga16fbblacklist nouveaublacklist rivafbblacklist nvidiafbblacklist RIVATV

4) Uninstall any previously installed Nvidia drivers:

Code:
sudo apt-get--purge Remove nvidia-*

5) Reboot your computer
6) When a error message pops up saying this Ubuntu cannot load Nvidia drivers, choose Exit to Terminal (exit to console)
7) Login and CD to the directory where you saved your file
8) Install Drivers

Code:
sudo sh nvidia-linux-x86_64-195.36.24-pkg2.run

9) Start GDM

Code:
sudo service GDM start

    

5 If it is a notebook dual graphics card can not be installed successfully, at this time the solution to install Bumblebee. Reference official documentation

ubuntu14.4 Installation gtx970 Graphics driver's hard journey

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.