CentOS7配置nvidia驱动远程桌面cuda8matlab和tensorflow
来源:互联网 发布:淘宝如何查看花费明细 编辑:程序博客网 时间:2024/05/21 00:16
装机,说多了都是泪
多么痛的领悟
在DELL主板、至强cpu的机器上装ubuntu,失败,提示磁盘不能识别,分区失败。
在该机器上装fedora,安装过程中失败。
在该机器上装slackware。卡在校验上。
在该机器上装RHEL成功,删除原yum,去 http://mirrors.zju.edu.cn/ 下载centos的yum安装成功,执行yum update后机器自动重启,再也点不亮了。
在该机器上装minimal、normal、everything版本的centos都失败。
安装centos时遇到问题“this media is not good to install from”:
根据centos社区提交bug的帖子,此问题是linux live usb creator 与 fedora live usb creator等软件问题,原因是其制作的U盘内字节顺序与iso文件不完全一致,存在转换格式的自动行为。正确的行为是要直接用dd命令按字节写入U盘。用win32imager软件才可以正确制作启动盘。
为GTX1080安装英伟达驱动
http://www.dedoimedo.com/computers/centos-7-nvidia.html
https://www.linkedin.com/pulse/20140808222919-219659043-rhel-centos-7-and-nvidia-drivers [参考有效]
https://linuxconfig.org/nvidia-geforce-driver-installation-on-centos-7-linux-64-bit [参考有效]
切换图形界面与命令行界面
用该命令设置启动等级
systemctl set-default multi-user.targetsystemctl set-default graphical.target
无法进入文本模式,无法进入多用户模式,屏幕全黑,没有登陆提示符。
将网络连接设置成开机自动联网,配置静态ip,用ssh登陆操作吧。
设置自动联网
原文来自 http://www.cnblogs.com/xcxc/p/3186130.html
在命令行下输入
下面的ifcfg-eth0,eth0为我的网卡名字。机器之间不同,请先查看自己网卡的名字
vi /etc/sysconfig/network-scripts/ifcfg-eth0
进行如下修改
DEVICE=eth0 #描述网卡对应的设备别名,例如ifcfg-eth0的文件中它为eth0
BOOTPROTO=
static
#设置网卡获得ip地址的方式,可能的选项为
static
,dhcp或bootp,分别对应静态指定的 ip地址,通过dhcp协议获得的ip地址,通过bootp协议获得的ip地址
BROADCAST=192.168.0.255 #对应的子网广播地址
HWADDR=00:07:E9:05:E8:B4 #对应的网卡物理地址
IPADDR=12.168.1.2 #如果设置网卡获得 ip地址的方式为静态指定,此字段就指定了网卡对应的ip地址
IPV6INIT=no
//可以加上,也可以不加
IPV6_AUTOCONF=no
//同上
NETMASK=255.255.255.0 #网卡对应的网络掩码
NETWORK=192.168.1.0 #网卡对应的网络地址
ONBOOT=yes #系统启动时是否设置此网络接口,设置为yes时,系统启动时激活此设备
修改网关的配置文件为:/etc/sysconfig/network
vi /etc/sysconfig/network
修改以下内容
NETWORKING=yes(表示系统是否使用网络,一般设置为yes。如果设为no,则不能使用网络,而且很多系统服务程序将无法启动)
HOSTNAME=localhost(设置本机的主机名,这里设置的主机名要和/etc/hosts中设置的主机名对应)
GATEWAY=192.168.1.1(设置本机连接的网关的IP地址。)
添加dns的配置文件:/etc/resolv.conf
vi /etc/resolv.conf
加入电信的dns服务器
nameserver 222.85.85.88
nameserver 222.88.88.88
重新启动网络配置
service network restart
adduser -mUu1003 -G wheel,cilab wangjun
adduser -mUu3002 -s /sbin/nologin xxx 禁止登陆
systemctl start vncserver@....
firewall-cmd --permanent --zone=public --add-port=5900-5920/tcp
firewall-cmd --reload
安装了vncserver,,发现无法连接,报错:
Xlib: extension "GLX" missing on display ":0".
根据nvidia网站论坛:https://devtalk.nvidia.com/default/topic/965466/linux/centos-7-nvidia-740-and-tigervnc-server-not-working-together/echo $DESKTOP_SESSION
systemctl start vsftpd.servicesystemctl enable vsftpd.serviceman vsftpd 一下就可知道它的conf文件在哪。
错误:严重错误:无法连接到服务器
getcap \ setcap cap_dac_...+ep /usr/sbin/vsftpd
modprobe ip_nat_ftp
vim /etc/sysconfig/iptables-config 里面 IPTABLES_MODULES="ip_nat_ftp"
响应:200 Switching to Binary mode.命令:PASV响应:227 Entering Passive Mode (10,214,164,248,135,244).命令:LIST错误:20 秒后无活动,连接超时错误:读取目录列表失败
这TM什么鬼!!!w
可以查看当前活跃的用户列表
cat /etc/passwd
可以查看所有用户的列表
netstat -antup | grep 5901 查看端口是谁占用
ps -au | grep 15476 查看15476进程是谁的
#!/bin/shunset SESSION_MANAGER#unset DBUS_SESSION_BUS_ADDRESS#exec /etc/X11/xinit/xinitrcxrdb $HOME/.Xresourcesxsetroot -solid greystartkde &
KDETMP=/tmpKDEVARTMP=/var/tmp
lnusertemp=`kde4-config --path exe --locate lnusertemp`if test -z "$lnusertemp"; then # Startup error echo 'startkde: ERROR: Could not locate lnusertemp in '`kde4-config --path exe` 1>&2fi# Link "tmp" "socket" and "cache" resources to directory in /tmp# Creates:# - a directory /tmp/kde-$USER and links $KDEHOME/tmp-$HOSTNAME to it.# - a directory /tmp/ksocket-$USER and links $KDEHOME/socket-$HOSTNAME to it.# - a directory /var/tmp/kdecache-$USER and links $KDEHOME/cache-$HOSTNAME to it.# Note: temporary locations can be overriden through the KDETMP and KDEVARTMP# environment variablesfor resource in tmp cache socket; do if "$lnusertemp" $resource >/dev/null; then : # ok else echo 'startkde: Call to lnusertemp failed (temporary directories full?). Check your installation.' 1>&2 test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null message "Call to lnusertemp failed (temporary directories full?). Check your installation." exit 1 fidone
lnusertemp=`kde4-config --path exe --locate lnusertemp`if test -z "$lnusertemp"; then # Startup error echo 'startkde: ERROR: Could not locate lnusertemp in '`kde4-config --path exe` 1>&2fi# Link "tmp" "socket" and "cache" resources to directory in /tmp# Creates:# - a directory /tmp/kde-$USER and links $KDEHOME/tmp-$HOSTNAME to it.# - a directory /tmp/ksocket-$USER and links $KDEHOME/socket-$HOSTNAME to it.# - a directory /var/tmp/kdecache-$USER and links $KDEHOME/cache-$HOSTNAME to it.# Note: temporary locations can be overriden through the KDETMP and KDEVARTMP# environment variablesKDETMP=/tmpKDEVARTMP=/var/tmpecho 'so far so good!'for resource in tmp cache socket; do if "$lnusertemp" $resource >/dev/null; then : # ok else echo 'startkde: Call to lnusertemp failed (temporary directories full?). Check your installation.' 1>&2 test -n "$ksplash_pid" && kill "$ksplash_pid" 2>/dev/null message "Call to lnusertemp failed (temporary directories full?). Check your installation." exit 1 fidone
vncserver -listvncserver -kill :1vncserver
systemctl start vncserver@:2.service
server@server:~$ HOST=`hostname`server@server:~$ key=`perl -e 'srand; printf int(rand(100000000000000000))'`server@server:~$ key=$key$keyserver@server:~$ xauth add ${HOST}/unix:0 . $key
运行CentOS自带的pip2,直接Trackback跑错,全崩,什么_call()传的参数应该是2个但是就给了一个。
SB!劳资动都没动,你自带的就是坏的pip2。
那么我就安装了py3,然后再yum安装pip3。
用pip3 升级 pip2,升级完后好用了。
再pip install tensorflow 就好了。
运行一下计算,用以下命令查看gpu情况
nvidia-smiMATLAB
这个比较好装,整上就能用,但是一直提示在使用software rendering,这就讨厌了,根据此帖,可以使用如下命令启动matlab。
matlab -nosoftwareopengl
但是在Matlab里一运行 opengl info opengl hardware,就总报错
。。。。。MATLAB has experienced a low-level graphics error。。。。。。。。
运行了tensorflow一个月后,发现一些警告,比如缺少FMA指令集加速,这让我想从源代码编译一下tensorflow
安装scl之后,要手动用yum安装python的附加工具包
yum search all | grep python
在这里面找python35 或者27有关的scl包,两个都装上就好。
HP 打印机
去惠普官网搜打印机型号,惠普说我们把你送到别的连接,马上就送,然后TM的什么都不做。
自己发现此网站是HPlinux驱动页面: http://hplipopensource.com/hplip-web/index.html
安装完成后提示要下载插件,但是中国一直没网速,经历了3小时查找后,在WWW的一个角落里发现了这么一个网址:
http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/
天啊!赶紧下载吧!!
一些教程:
http://www.hplipopensource.com/hplip-web/install/manual/distros/centos.html
http://www.hplipopensource.com/hplip-web/install/manual/hp_setup.html
#!/bin/sh# Uncomment the following two lines for normal desktop:unset SESSION_MANAGER#exec /etc/X11/xinit/xinitrc[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresourcesxsetroot -solid greyvncconfig -iconic &x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &gnome-session-fallback &#x-window-manager &
- CentOS7配置nvidia驱动远程桌面cuda8matlab和tensorflow
- linux从零开始安装nvidia驱动和tensorflow
- fedora25和Centos7安装Nvidia驱动
- Centos7 驱动Nvidia
- CentOS7配置Anaconda和TensorFlow
- CentOS7.2安装NVIDIA驱动
- (超完整)Linux(debian9)服务器配置tensorflow环境:nvidia驱动、CUDA、cudnn、anaconda
- ubuntu16.04 +NVIDIA驱动+cuda8.0+cudnn+andaconda+tensorflow(GPU版)+Spyder+pycharm全套配置
- Ubuntu 16.04安装NVIDIA显卡驱动 、CUDA-8.0、cuDNN和TensorFlow问题及解决方法
- CentOS7.1 安装NVIDIA显卡驱动(双显卡:集显和独显)
- CentOS7(64位)安装NVIDIA显卡驱动和CUDA8.0
- centos7配置wifi驱动
- ubuntu安装1080ti nvidia驱动+cuda8.0+TensorFlow
- Linux(CentOS7) NVIDIA GeForece GTX 745 显卡驱动
- CentOS7从ELRepo源中安装Nvidia显卡驱动
- 双显卡机器Centos7环境下NVIDIA驱动安装
- 远程桌面配置和常见问题
- 【配置】Ubuntu 下安装nvidia显卡驱动
- setup.bin的诞生记
- windows环境下使用word2vector进行词向量训练的方法
- shiro免密码登录
- Redis 配置(redis.conf)说明
- 当对数据进行更改后发现数据不正确,想要恢复但是不是知道怎么找回
- CentOS7配置nvidia驱动远程桌面cuda8matlab和tensorflow
- 中文转为URL编码的UTF-8
- js substr和substring 区别
- try-catch和throw,throws的区别和联系
- Spring MVC的web.xml配置详解(转)
- intellij idea 2017 注册码
- ipv4的不足
- 三星s5pv210 uboot启动过程理解
- 利用iTunes获得UUID