1. 检查是否有安装
rpm -q vnc vnc-server
2. 没有则安装
yum install vnc vnc-server
3. 运行VNC(首次需要修改密码)
vncserver
you will require a password to access your desktops
输入两次密码
4. 设置配置文件
/etc/syconfig/vncserver
vncserver="82:root"
# VNCSERVERARGS[2]="-geometry 800*600 -nolisten tcp -localhost"
5. 添加防火墙规则
-A INPUT -m state --state NEW -m tcp -p tcp --dport 5982 -j ACCEPT
6. 开机自动启动
chkconfig vncserver on
chkconfig --list | grep vnc
7. 遇到字体问题
yum -y upgrade
注意:
设置服务器开机,自动连接网络