如何配置vnc
安装组件
$ 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
配置
[xdmcp] Enable=trueDISPLAYMANAGER_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
启动
# 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