双系统安装,用U盘安装ubuntu14.04(有点晕,告辞)

U盘安装ubuntu14.04(16.04出错)
1.通过在UEFI启动模式下正确安装
https://www.cnblogs.com/iamnewsea/p/7701436.html
2.在分区时将data盘分出的50G全给了/
3.巨坑的是显卡驱动的安装,我的显卡是NVIDIA GeForce GTX 1050
(官网下载驱动 https://www.nvidia.cn/Download/index.aspx?lang=cn
产品类型: GeForce    
产品系列: GeForce 10 Series (Notebooks)      
产品家族: GeForce GTX 1050   
操作系统: Linux 64-bit    )
为了避免安装之后在登陆界面循环,采用手动安装的方法 https://blog.csdn.net/ysy950803/article/details/78507892/ 中问题(4)

原因分析: 在登录界面输入密码后进不去桌面,又跳回了登录,无限循环,这个问题主要原因其实也是因为没有正确地安装Nvidia官方显卡驱动导致的(英伟达工程师还专门给出了解决办法的,大概是因为OpenGL的一些问题)。 
解决办法: 下面就给大家一个正确的姿势在Ubuntu上安装Nvidia驱动: 
(a)首先去N卡官网下载自己显卡对应的驱动:www.geforce.cn/drivers (https://pan.baidu.com/s/1-t7ZR3b7JsTrfRFFZbr6EQ)
(b)下载后好放在英文路径的目录下,怎么简单怎么来,然后最好是把文件名改成自己记得的名字,等会儿要用到,因为默认下载下来后面带了一串版本号,比如我就改成了Nvidia-Linux.run 
(c)为了避免后面各种麻烦,直接给驱动程序赋最高权限:
sudo chmod 777 Nvidia-Linux.run
(d)然后我们去把那个第三方驱动给拉入黑名单,先编辑文件:
sudo gedit /etc/modprobe.d/blacklist.conf
在文件末尾加上 blacklist nouveau 
然后刷新配置:
sudo update-initramfs -u
(e)到这一步时最好重启一下系统,然后正式进入官方驱动的安装流程。按下Ctrl+Alt+F1(我的是F4)进入非图形终端; 
(f)禁用X服务:
sudo service lightdm stop
(g)带参数安装驱动(这个地方我的驱动程序直接在Home目录下,所以很方便):
sudo ./Nvidia-Linux.run -no-opengl-files
(h)重启X服务:
sudo service lightdm restart
然后重启系统吧,驱动问题一切OK。
4.cuda和cudnn均利用官网的安装方法(cudnn下载需要英伟达账号,账号是用qq登录后又填写的信息(扫码即可登陆,密码为Nzzfswjg0417?))
cuda  (https://pan.baidu.com/s/1ig8HEKOPhS8uo67ilzJ2Tw)


cudnn 官网 https://developer.nvidia.com/cudnn 下载,安装向导 https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html
Installing from a Debian File:(网盘:https://pan.baidu.com/s/1ev_K7DAmEmGnZHM8ZUrzFA)
Navigate to your <cudnnpath> directory containing cuDNN Debian file.
Install the runtime library, for example:
sudo dpkg -i libcudnn7_7.0.3.11-1+cuda9.0_amd64.deb
Install the developer library, for example:
sudo dpkg -i libcudnn7-dev_7.0.3.11-1+cuda9.0_amd64.deb
Install the code samples and the cuDNN Library User Guide, for example:
sudo dpkg -i libcudnn7-doc_7.0.3.11-1+cuda9.0_amd64.deb

To verify that cuDNN is installed and is running properly, compile the mnistCUDNN sample located in the /usr/src/cudnn_samples_v7 directory in the debian file.
Copy the cuDNN sample to a writable path.
$cp -r /usr/src/cudnn_samples_v7/ $HOME
Go to the writable path.
$ cd  $HOME/cudnn_samples_v7/mnistCUDNN
Compile the mnistCUDNN sample.
$make clean && make
Run the mnistCUDNN sample.
$ ./mnistCUDNN
If cuDNN is properly installed and running on your Linux system, you will see a message similar to the following:
Test passed!


附:在安装ubuntu过程中中断了,发现被分出的50g中的UbuntuEFI分区删除不掉,可参考 https://blog.csdn.net/mtllyb/article/details/78635757
和 https://blog.csdn.net/qq_28057541/article/details/51723914,将50g空出,可重新安装Ubuntu
 
 

       
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值