VNC安装与使用
查看是否安装VNC:rpm -qa | grep vnc
安装VNC:rpm -ivh vnc-4.1.2-14.el5_3.1.i386.rpm ,rpm -ivh vnc-server-4.1.2-14.el5_3.1.i386.rpm
编辑配置文件:/etc/sysconfig/vncservers #增加:VNCSERVERS="1:root" VNCSERVERARGS[2]="-geometry 1024x768"
运行“vncpasswd”进行密码设置
查看连接端口:vncserver -list
停止多余服务:vncserver -kill :2
启动/停止:
1、/etc/init.d/vncserver start (stop )
2、service vncserver start (stop)
关闭防火墙:service iptables start/stop
防火墙开放特定端口: /etc/sysconfig/iptables
添加规则:-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT
保存规则:service iptables save