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. ArcGIS API for Silverlight 编辑Geometry

    概述 ArcMap的编辑功能是非常强大的,ArcEngine编写的CS程序也可以用到ArcMap中提供的编辑功能,那么ArcGIS API forSilverlight针对Geometry的编辑提供了 ...

  2. java-list-remove()用法浅析 解决java list remove() 数据不对的问题

    在java中对list进行操作很频繁,特别是进行list启遍历,这些操作我们都会,也很熟悉,但是对java中list进行删除元素,remove list中的元素就不怎么熟悉了吧,可以说很陌生,是实际操 ...

  3. effective C++ 札记 规定17 在单独的陈述newed对象插入智能指针

    // Test.cpp : 自定义控制台应用程序的入口点. // #include "stdafx.h" #include <iostream> #include &l ...

  4. 最新发布树莓派2代Wi-Fi自动连接实战(适合初学者)

    话说天地会珠海分舵在上几天才刚给大家分享了个海外资讯说树莓派2已经发布且Windows10加盟之类的资讯,具体请查看<海外优秀资讯抢先看8 - Windows 10 for Raspberry ...

  5. jmeter java请求

    demo下载地址http://yun.baidu.com/share/link?shareid=4277735898&uk=925574576 1.引用jmeter的jar包 到jmeter的 ...

  6. Goldeneye.py网站压力测试工具2.1版源码

    Goldeneye压力测试工具的源代码,粗略看了下,代码写的蛮规范和易读的,打算边读边加上了中文注释,但是想来也没太大必要,代码600多行,值得学习的地方还是蛮多的,喜欢Python的同学可以一读 这 ...

  7. [译]Java 设计模式之适配器

    (文章翻译自Java Design Pattern: Adapter) 适配器模式在现在的Java框架中被频繁的用到. 当你想去使用一个存在的类而且它的接口和你需要的不吻合,或者是你想去创建一个可复用 ...

  8. C#发送邮件三种方法(Localhost,SMTP,SSL-SMTP)

    原文:C#发送邮件三种方法(Localhost,SMTP,SSL-SMTP) 最近公司由于一个R&I项目的需要,用户要求在购买产品或出货等一些环节,需要发送邮件提醒或者说每周一让系统自动采集数 ...

  9. class 添加样式,删除,开关 【选择】addClass,removeClass,toggleClass

    <1> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>< ...

  10. .net中,控件(Name)属性或ID属性的常见命名规则

    控件名称 缩写 介绍 公共控件   Button btn 按钮 CheckBox chk 复选框 CheckedListBox ckl 显示一个项列表,其中每一项左侧都有一个复选框 ComboBox ...