在Suma(中科可控)安装OpenEuler和Ukui及驱动
- 登入管理后台(ip可以在开机时左上角看到)
- 进入KVM界面
- 右上角挂在镜像后开机
- 文本化安装即可
修改网卡自启动
1 2 3
| cd /etc/sysconfig/network-scripts/ ls vi ifcfg-ens33
|
改为yes
systemctl restart NetworkMangager
换清华源
1 2
| cp /etc/yum.repos.d/openEuler.repo /etc/yum.repos.d/openEuler.repo.bak vi /etc/yum.repos.d/openEuler.repo
|
所有网址前缀换为https://mirrors.tuna.tsinghua.edu.cn/openeuler/
即可
执行yum update
安装Ukui
1 2 3
| sudo dnf update sudo dnf install ukui systemctl set-default graphical.target
|
Nvida显卡的话安装驱动
一定安驱动,否则无法启动
1 2 3 4 5 6 7 8 9 10 11
| # wget下载 wget https://cn.download.nvidia.com/tesla/535.183.06/NVIDIA-Linux-x86_64-535.183.06.run
# 安装依赖 sudo yum install epel-release sudo yum update sudo yum install pkgconfig libglvnd-devel
yum -y install gcc gcc-c++ make yum -y install kernel-headers-$(uname -r) yum -y install kernel-devel-$(uname -r)
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| lsmod |grep nouveau
在 /usr/lib/modprobe.d/dist-blacklist.conf 中添加两行内容: blacklist nouveau options nouveau modeset=0
给当前镜像做备份 mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak
建立新镜像 dracut /boot/initramfs-$(uname -r).img $(uname -r)
重启操作系统 reboot
检查nouveau驱动加载情况 lsmod |grep nouveau
|
1 2
| sh ./NVIDIA-Linux-x86_64-535.183.06.run -s --no-x-check nvidia-smi
|
systemctl start lightdm
安装CUPS
1 2 3
| yum install -y cups yum install ghostscript yum install foomatic
|
ghostscript、foomatic是两个驱动,一定要安装
vim /etc/cups/cupsd.conf,
修改以下配置并重启systemctl restart cups
1 2 3 4 5 6
| Listen 192.0.2.1:631
<Location /> Allow from 192.0.2.0/24 Order allow,deny </Location>
|
参考