It's so painful to install nVidia driver by hand on linux.

If you remove it or you want to upgrade by all your hand, you ought to need be very patient about this stuff coz it will kill you a lot of time.

first you need to download the latest driver from their site.

it looks like "NVIDIA-{version number}.run"

download it and run it after closing your X service.

    # Tips : how to close X service

          when booting your PC, you could use this key conbination to get into new TTY "Ctrl + Alt + F{1,2,3,...,7}"

          then, log in using 'root' account.

              then 'service kdm stop' # if your display manager is from others such as lightdm, mdm, gdm. do the same

                  'service gdm stop'

                  then execute the binary you've downloaded by "sh NVIDIA-{version number}.run"

You need to know what those commands mean:

*************

lsmod   # to see how many kernel modules have been loaded already

modprobe # to probe a module whichi is registered in /lib/modules/modules.alias by using command 'depmod'

rmmod     # to remove a module dynamically

    ## after using 'rmmod xxxx' , we will not be able to get ' lsmod | grep xxxx'

modinfo    # to check out one registered module's infomation

depmod    # to set modules , and document them in order to make the docments used by command 'modprobe' next time if necessary

***********

the lib folder

which contains system's libs

/usr/lib32/

a folder which contains kernel modules and other settings before booting the PC up.

/lib/modules/

Remember to use 'depmod -aq' to ensure all neccessary kernel modules will be used when booting up next time

it's good to use ' man depmod ' when you don't what what it is. :)

************

nVidia's var lib folder

Almost everytime when nVidia package is trying to install its new features, they will check out /var/lib/nvidia.

it's easy to find confilictions. then it will dump. if you don't dig it, you will be stuck there.

I solved this sucessfully by 'mv /var/lib/nvidia /var/lib/nvidia_backup'      . or you can just delete it.

then,

re-install it using the binary package downloaded from the offical nVidia site.

/var/lib/nvidia

REMEMBER:

    you will need to set other lnk files well in folders such as:

        /usr/lib, /usr/lib32    (make soft links of those files in from these folders)

           something like this: "#ln -sf libnvidia-opencl.so.1 libnvidia-opencl.so.304.88" , you need to make sure the 304.88 is a geninue one.

******

Then my KDE came back to me.

It's because it's a little bit too unstable when using nVidia's 304 series drivers.

That's the reason I put my PC down for serveral hours . :(

Now I sucessfully upgrade the driver to the lasted which is very neat.

Hope no more screen zoggling...

linux nVidia driver 304 319 . installation by hand的更多相关文章

  1. 【linux基础err】NVIDIA-SMI has failed because it could't communicate with the NVIDIA driver.

    问题 安装nvidia driver和cuda关机重启之后出现不能进入系统的问题,进入命令行模式使用nvidia-smi检查驱动的问题. nvidia-smi NVIDIA-SMI has faile ...

  2. Cleaning up old NVIDIA driver files

    原文地址:https://www.gameplayinside.com/optimize/cleaning-up-old-nvidia-driver-files-to-save-disk-space/ ...

  3. Install Nvidia driver 367.18 or later

    Install Nvidia driver 367.18 or later from ppa:graphics-drivers/ppa as follows: sudo add-apt-reposit ...

  4. linux device driver —— 环形缓冲区的实现

    还是没有接触到怎么控制硬件,但是在书里看到了一个挺巧妙的环形缓冲区实现. 此环形缓冲区实际为一个大小为bufsize的一维数组,有一个rp的读指针,一个wp的写指针. 在数据满时写进程会等待读进程读取 ...

  5. nvidia-smi failed because it couldn't communicate with the nvidia driver

    Ubuntu装好CUDA之后过段时间提示NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. NV ...

  6. hacking a friend's Linux buzzer driver in OK335xS

    /**************************************************************************** * hacking a friend's L ...

  7. Linux Device Driver 学习(1)

    Linux Device Driver 学习(1) 一.搭建虚拟机开发环境 1.选择虚拟机VirtualBox,官网下载.deb包安装: VirtualBox Linux 5.1.6 下载fedora ...

  8. Ubuntu 18.04 nvidia driver 390.48 安装 TensorFlow 1.12.0 和 PyTorch 1.0.0 详细教程

    最近要在个人台式机上搭建TensorFlow和PyTorch运行环境,期间遇到了一些问题.这里就把解决的过程记录下来,同时也可以作为安装上述环境的过程记录. 如果没有遇到类似的问题,想直接从零安装上述 ...

  9. Program for Linux USB-devices driver step by step (ONE)

    Program for Linux USB-devices driver 開始啃硬骨头~ 这里我打算一步步给出USB device driver 的demo.希望有心能可以共同交流学习. 希望认识很多 ...

随机推荐

  1. ASP.NET MVC基于标注特性的Model验证:一个Model,多种验证规则

    原文:ASP.NET MVC基于标注特性的Model验证:一个Model,多种验证规则 对于Model验证,理想的设计应该是场景驱动的,而不是Model(类型)驱动的,也就是对于同一个Model对象, ...

  2. 大约php,mysql,html数字寻呼和文本分页2分页样式供大家参考

    做盗版.转载请添加源http://blog.csdn.net/yanlintao1 请勿盗版,转载请加上出处http://blog.csdn.net/yanlintao1 首先进行样式展示希望对大家有 ...

  3. 编译安装gimp插件之Mathmap(流水记录)

    本文为在Fedora 20下编译安装Mathmap1.3.5的编译过程,如果你仅仅需要快速的安装Mathmap,那么请拉至文末的"快速安装" 其实,过程还是很有趣的,充满Error ...

  4. Springmvc+Spring+Hibernate搭建方法

    Springmvc+Spring+Hibernate搭建方法及example 前面两篇文章,分别介绍了Springmvc和Spring的搭建方法,本文再搭建hibernate,并建立SSH最基本的代码 ...

  5. 使用UDL文件来测试SQL Server数据库连接

    原文 来自http://www.2cto.com/database/201308/234427.html 使用UDL测试SQL Server连接问题   做数据库经常会遇到SQL Server连接的问 ...

  6. ACdream 1195 Sudoku Checker (暴力)

    Sudoku Checker Time Limit: 2000/1000MS (Java/Others)Memory Limit: 128000/64000KB (Java/Others) Submi ...

  7. PHP+MYSQL分页原理

    1.SQL语句中的limit用法 2.学习分页的一种公式 3.parse_url()解析URL函数 parse_url() 是将URL解析成有固定键值的数组的函数 4.$_SERVER["R ...

  8. asp.net mvc 中 tempdata、viewdata、viewbag生命周期(转载)

                 TempData ViewData ViewBag都可以用来保存数据,它们之间的区别如下: TempData保存在Session中,Controller每次执行请求的时候,会 ...

  9. Web层后端权限模块

    从零开始编写自己的C#框架(19)——Web层后端权限模块   不知不觉本系统写了快三个月了,最近写页面的具体功能时感觉到有点吃力,很多地方如果张嘴来讲的话可以说得很细,很全面,可写成文字的话,就不太 ...

  10. MVC 过滤器1

    ASP.NET MVC 过滤器(一) 前言 前面的篇幅中,了解到了控制器的生成的过程以及在生成的过程中的各种注入点,按照常理来说篇幅应该到了讲解控制器内部的执行过程以及模型绑定.验证这些知识了.但是呢 ...