信步漫谈之OpenEuler——介绍与安装

目标

  • OpenEuler系统安装
  • 配置OpenEuler图形化界面
  • 安装OpenEuler的远程连接

1 资源

2 OpenEuler 是什么

华为欧拉操作系统是基于 CentOS 开发的服务器操作系统,主要服务于B端(企业)用户。

版本

  • 长期支持版本(LTS版本):发布间隔周期定为2年,提供4年社区支持。社区首个LTS版本openEuler 20.03 已于20年3月正式发布。
  • 社区创新版本:openEuler每隔6个月会发布一个社区创新版本,提供6个月社区支持。

证书

3 虚拟机安装

  • 注意操作系统要选择:其他 4.x 或更高版本的 Linux (64 位),因为OpenEuler的内核版本是4.x或以上,其他推荐配置即可,进入安装界面后,默认安装。
  • 选用OpenEuler安装包为:

4 配置图形化界面

  • 安装yum依赖
[root@localhost ~]# yum install -y gnome-shell gdm gnome-session gnome-terminal
  • 设置图形化启动
[root@localhost ~]# systemctl enable gdm.service
  • 避免中文乱码
[root@localhost ~]# yum -y groupinstall fonts 
  • 重启
[root@localhost ~]# reboot 

5 安装VNC远程登录服务

  • 安装VNC组件&xined守护服务
[root@localhost ~]# yum install -y xinetd
[root@localhost ~]# yum install -y tigervnc-server-minimal
  • 配置VNC守护服务
[root@localhost ~]# cat > /etc/xinetd.d/vncserver0   << EOF
service vncserver0
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/bin/Xvnc
server_args = -inetd -query localhost   -geometry 1280x800 -depth 24 -once -fp unix/:7100 -securitytypes=none
}
EOF
  • 配置GDM服务
[root@localhost ~]# cat > /etc/gdm/custom.conf <<   EOF
# GDM configuration storage

[daemon]
# Uncomment the line below to force the   login screen to use Xorg
WaylandEnable=false

[security]
DisallowTCP=fals
AllowRemoteRoot=true

[xdmcp]
Enable=true

[chooser]

[debug]
# Uncomment the line below to turn on   debugging
#Enable=true
EOF
  • 配置GDM服务端口转发到VNC
[root@localhost ~]# sed -i '/^vncserver0/d' /etc/services
[root@localhost ~]# cat >> /etc/services << EOF
vncserver0   5900/tcp              # VNC & GDM
EOF
  • 重启系统生效
[root@localhost ~]# reboot
  • 查看验证服务是否在运行,如果5900端口处于监听状态,则正常
[root@localhost ~]# netstat -nlpt
  • 查看Seliunx&Iptables&Firewalld状态

1)查看Seliunx状态

[root@localhost ~]# getenforce

2)如果是 "Enforcing" 请输入

[root@localhost ~]# setenforce 0
[root@localhost ~]# sed -i 's/^SELINUX=.*/SELINUX=permissive/g' /etc/selinux/config

3)查看Iptables状态

[root@localhost ~]# systemctl status iptables

4)如在运行,则执行以下命令永久关闭(生产环境下勿使用该操作)

[root@localhost ~]# systemctl stop iptables
[root@localhost ~]# chkconfig iptables off

5)查看firewalld状态

[root@localhost ~]# systemctl status firewalld

6)如在运行,则执行以下命令永久关闭(生产环境下勿使用该操作)

[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# chkconfig firewalld off

6 常用指令

  • 重启网络:systemctl restart NetworkManager

参考资料(感谢)

最详细 openEuler 安装教程

黑猴子的家:华为 OpenEuler(欧拉) Linux 系统之配置图形化界面openEuler-20.03-LTS

OpenEuler安装远程桌面登录 VNC和GNOME的安装

posted @ 2024-08-01 10:43  临渊启明  阅读(16)  评论(0编辑  收藏  举报