2013/11/10

Install nvidia driver on Ubuntu

Background
OS: ubuntu 12.10
Graphic card: GTX 560

Goal
Install the driver from nvidia official website.

Steps
0. Install required package
`sudo apt-get update`
`sudo apt-get dist-upgrade`
sudo apt-get install build-essential linux-source linux-headers-`uname -r`
1. Make sure your graphic card module and OS system
`lspci -v | less`
`uname -a` # 32bit or 64bit
2. http://www.geforce.com.tw/drivers get your device installation file
3. Reboot your machine and enter recovery mode
4. Enable network mode (In order to get the write access on grub)
5. Enter root shell on grub and modify file
/etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"
6. Go to the directory where you download the *.run file
`chmod 755 *.run`
`./*.run`
7. Follow the installation shell.
PS. Press yes and yes and yes....
8. Reboot after installation finished
9. Enjoy :D

CAUTION
You may fail to boot ubuntu again if you have already installed nvidia-* provided by apt-get.
`sudo apt-get remove --purge nvidia-*`
In other word, make use you pick either one way for installing nvidia driver instead of both.

沒有留言:

張貼留言