如何配置vnc

  1. 安装组件

$ sudo yum install -y lico-vnc-mond
$ sudo yum install -y gdm tigervnc tigervnc-server
$ sudo zypper install lico-vnc-mond
$ sudo zypper install gdm tigervnc tigervnc-server
  1. 配置

编辑 /etc/gdm/custom.conf, 作如下修改
[xdmcp]
Enable=true
sle12 修改文件 /etc/sysconfig/displaymanager
DISPLAYMANAGER_REMOTE_ACCESS="yes"

Note

若需要在所有计算节点安装,可以使用批量安装命令

# Installation
$ sudo psh compute yum install -y lico-vnc-mond
$ sudo psh compute yum install -y gdm tigervnc tigervnc-server

# Distribute files
$ sudo xdcp compute /etc/gdm/custom.conf  /etc/gdm/custom.conf
# Installation
$ sudo psh compute zypper install -y --force-resolution lico-vnc-mond
$ sudo psh compute zypper install -y --force-resolution gdm tigervnc tigervnc-server

# Distribute files
$ sudo xdcp compute /etc/gdm/custom.conf  /etc/gdm/custom.conf
$ sudo xdcp compute /etc/sysconfig/displaymanager  /etc/sysconfig/displaymanager
  1. 启动

# Management node
$ sudo systemctl start lico-vnc-mond
$ sudo vncserver -query localhost -securitytypes=none

# Other node
$ sudo psh compute systemctl start lico-vnc-mond
$ sudo psh compute vncserver -query localhost  -securitytypes=none