安装实验环境。
使用图形化界面的虚拟机。
[root@localhost ~]# yum install -y vnc-server vnc vim
启动VNCSERVER
[root@localhost ~]# vncserver :1
You will require a password to access your desktops.
Password:
Verify:
New 'localhost:1 (zx)' desktop is localhost:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost:1.log
配置VNC
[root@localhost ~]# vim /etc/sysconfig/vncservers
VNCSERVERS="2:hubery"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
在远程Windows机器安装VNC Viewer并打开