linux nVidia driver 304 319 . installation by hand
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的更多相关文章
- 【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 ...
- Cleaning up old NVIDIA driver files
原文地址:https://www.gameplayinside.com/optimize/cleaning-up-old-nvidia-driver-files-to-save-disk-space/ ...
- 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 ...
- linux device driver —— 环形缓冲区的实现
还是没有接触到怎么控制硬件,但是在书里看到了一个挺巧妙的环形缓冲区实现. 此环形缓冲区实际为一个大小为bufsize的一维数组,有一个rp的读指针,一个wp的写指针. 在数据满时写进程会等待读进程读取 ...
- 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 ...
- hacking a friend's Linux buzzer driver in OK335xS
/**************************************************************************** * hacking a friend's L ...
- Linux Device Driver 学习(1)
Linux Device Driver 学习(1) 一.搭建虚拟机开发环境 1.选择虚拟机VirtualBox,官网下载.deb包安装: VirtualBox Linux 5.1.6 下载fedora ...
- Ubuntu 18.04 nvidia driver 390.48 安装 TensorFlow 1.12.0 和 PyTorch 1.0.0 详细教程
最近要在个人台式机上搭建TensorFlow和PyTorch运行环境,期间遇到了一些问题.这里就把解决的过程记录下来,同时也可以作为安装上述环境的过程记录. 如果没有遇到类似的问题,想直接从零安装上述 ...
- Program for Linux USB-devices driver step by step (ONE)
Program for Linux USB-devices driver 開始啃硬骨头~ 这里我打算一步步给出USB device driver 的demo.希望有心能可以共同交流学习. 希望认识很多 ...
随机推荐
- Coreseek:索引和检测的第二步骤施工
1,非常索引easy,代码行 g:/service/coreseek/bin/indexer -c g:/service/coreseek/etc/csft_mysql.conf person 在 ...
- MVC页面声命周期
MVC页面声命周期 ASP.Net请求处理机制初步探索之旅 - Part 4 WebForm页面生命周期 开篇:上一篇我们了解了所谓的请求处理管道,在众多的事件中微软开放了19个重要的事件给我们, ...
- C#验证IP地址
using System.Net; try { IPAddress a = IPAddress.Parse(输入的IP字符串); } catch (System.Exception ex) { Mes ...
- jQuery实现表格行的动态增加与删除
删除之前删除2行后: 1<script> 8 $(document).ready(function(){ 9 //<tr/>居中 10 $("#tab tr" ...
- Node.js日志框架选型比較:Winston
日志对于问题定位.调试,系统性能调优至关重要,尤其是系统复杂以及在线执行的情况下. 好的开发框架都会有一个可开启关闭/可配置记录级别的日志系统.我们从下面几个方面来做选型: 1. 每行日志都须要有准确 ...
- ubuntu安装wine之后进不了系统
以前曾经装过一次wine,安装的时候没碰到什么问题,但卸载的时候却出问题了,把我nouvean显卡给删除了. 自然,我下一次启动的时候就进不了桌面了.所以我得重装一次,那一次重装的是整个系统! 今天突 ...
- Sql开发技巧
原文:Sql开发技巧 简介 本文主要介绍下述几个技巧: 使用Row_Number分页 事务 根据条件刷选记录的技巧 分页 主要是使用了Row_Number()这个函数.一般如下: declare @P ...
- web开发中的多线程死锁问题,避免死锁
1.什么是死锁,产生死锁的原因,和产生死锁的必要条件 所谓死锁(DeadLock),是指多个进程或线程在运行过程中因争夺资源而造成的一种僵局,当进程或线程处于僵局时,若无外力作用,它们将无法再向前推进 ...
- SufaceView(绘图类)
public class MainActivity extends Activity { GrameView grameView; @Override public void onCreate(Bun ...
- Cygwin 是一个用于 Windows 的类 UNIX shell 环境
cygwin的安装使用 Cygwin 是一个用于 Windows 的类 UNIX shell 环境. 它由两个组件组成:一个 UNIX API 库,它模拟 UNIX 操作系统提供的许多特性:以及 ...