centos7系统安装
centos7系统安装
https://www.jb51.net/os/128751.html
启动网络
输入 ifconfig 查看网卡(默认第一个)
在终端输入 gedit /etc/sysconfig/network-script/ifcfg-ens33 回车。(ifcfg-ens33为网卡名称)进入后找到 ONBOOT 项,将no改为yes保存退出。
最后 systemctl restart network.service 重启网卡即可。
参考 https://jingyan.baidu.com/article/9c69d48ff9143b13c9024e04.html
安装ssh
安装openssh-server
yum install -y openssl openssh-server
修改配置文件
gedit /etc/ssh/sshd_config
将 PermitRootLogin,RSAAuthentication,PubkeyAuthentication的设置yes
启动ssh的服务:
systemctl start sshd.service
设置开机自动启动ssh服务
systemctl enable sshd.service
参考 https://my.oschina.net/laiconglin/blog/675317
nvidia驱动安装
首先都要安装kernel
yum -y install gcc kernel-devel kernel-headers
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
yum install yum-plugin-fastestmirror
屏蔽默认带有的nouveau
打开 /lib/modprobe.d/dist-blacklist.conf
将nvidiafb注释掉。
#blacklist nvidiafb
然后添加以下语句:
blacklist nouveau
options nouveau modeset=0
重建initramfs image(强烈建议复制)