# 安装
yum install tigervnc-server
# 启动,切换到需远程的普通用户
sudo su - suhua
# 设置密码
vncpasswd
# 启动第一个会话,端口 5901
vncserver :1
# 启动多一个会话,端口 5902
vncserver :2
# 查看所有会话
vncserver -list
# 关闭会话
vncserver -kill :2
# 启动时,报错
[lxapp01@rpa04 ~]$ vncserver :1
You will require a password to access your desktops.
Password:
Cannot check password quality: Opening the configuration file failed
Password quality check failed, please set it correctly.
# 重装 pam 模块试试
sudo yum reinstall pam pam_pwquality -y
# 重启 vnc 服务
vncserver -kill :1
vncserver :1
# kylin server 安装桌面
yum groupinstall "Server with UKUI GUI"
systemctl set-default graphical.target