1.首先开启xdmcp
[root@localhost ~]# cat /etc/gdm/custom.conf
[xdmcp]
Enable=true
[chooser]
[security]
DisallowTCP=true
AllowRemoteRoot=true
[debug]
[root@localhost ~]#
2.开启vnc
[root@localhost ~]# yum -y install xinetd tigervnc-server-minimal
[root@localhost ~]# cat /etc/xinetd.d/vnc
# default: off
# description: This serves out a VNC connection which starts at a KDM login \
# prompt. This VNC connection has a resolution of 1024x768, 16bit depth.
service vnc1
{
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = -inetd -noreset -once -query localhost -geometry 1024x768 -depth 16 -securitytypes none
type = UNLISTED
port = 5901
}
[root@localhost ~]#
3. 重启
4. 通过vnc客户端测试(略),输入服务器IP地址:1连接即可