Ubuntu 16.04+GTX970 黑屏无法安装解决方法
参考http://www.linuxidc.com/Linux/2017-01/139318.htm
http://blog.sciencenet.cn/blog-655584-877622.html
深度学习主机环境配置: Ubuntu16.04+Nvidia GTX 1080+CUDA8.0
安装Ubuntu16.04LTS系统时,安装一路顺利但重启时卡在开机logo界面,是NVIDIA显卡的问题
解决方法:
安装成功之后,重启,在引导页按e进入grub编辑页面
倒数第二段 quiet splash 后面,也是还有别的,反正这段的最后,加上nomodeset,然后f10保存退出,等待开机,就可以正常进入系统了。
视频线接入Nvidia显卡(这里是GTX970)上,开机启动按F12(这里清华同方台式机)进入USB安装选择界面:
选择“USB:Generic Flash Disk”, 回车Enter,在按e键,可进入到Ubuntu选择安装界面
选择“Install Ubuntu”,并按F6(Other Options),出现可编辑内容
"Boot Options ed boot=... initrd=/casper/initrd.lz quiet splash ---"
修改红色部分(删去“---”并添加“nomodeset”)如下
"Boot Options ed boot=... initrd=/casper/initrd.lz nomodeset quiet splash"
编辑好后按Enter键,黑屏等待几秒钟顺利的话即可进入Ubuntu安装引导界面
二、当安装结束后,启动系统出现黑画面
1.开机,进入grub画面(如果硬碟没有别的OS,请开机时按住shift不放才会有grub画面)
2.按'''e''' 进入编辑开机指令的模式, 同样找到'''quite splash''' 并在后面加上对应的“nomodeset”,即。
'''quite splash nomodeset'''
3.按 ''F10''启动系统.
4.进去系统之后编辑'''/etc/default/grub''' :
Ubuntu>打开终端机,输入
1 |
$ sudo vi /etc/default/grub
|
5.找到这一行:
1 |
GRUB_CMDLINE_LINUX_DEFAULT= "quiet splash"
|
修改为:
1 |
GRUB_CMDLINE_LINUX_DEFAULT= "quiet splash nomodeset"
|
6. 更新GRUB:
1 |
$ sudo update-grub
|
7.存档,并重新开机。
VNC server
通过VNC server远程登陆Ubuntu,设置方法如下
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
gnome-panel & gnome-settings-daemon & metacity & nautilus & gnome-terminal |
设置成功后,根据Ubuntu的ip通过VNC登陆
登陆后界面如下
在linux中执行 vncconfig -nowin&
在linux选中文字后,无需其他按键,直接在windows中可以黏贴。
在windows中选中文字,Ctrl+C,在linux中按中键黏贴。
http://www.jb51.net/os/Ubuntu/104948.html
http://jingyan.baidu.com/article/8ebacdf0cdc64949f75cd555.html