1。打开系统服务设置
+----------------------------------------------------------------------------------------+
|[root@cat xiaomao101]# serviceconf
|Launching a SCIM daemon with Socket FrontEnd...
|Loading simple Config module ...
|Creating backend ...
|Loading socket FrontEnd module ...
|Starting SCIM as daemon ...
|GTK Panel of SCIM 1.4.4
|
+----------------------------------------------------------------------------------------+
2。启动VNC服务,并设置成开机启动
3。修改VNCServer配置文件,
+----------------------------------------------------------------------------------------+
|[root@cat xiaomao101]# cd /etc/sysconfig/
|[root@cat sysconfig]# ls
|amd diskdump kdump network-scripts syslog
|apmd dund kdump.rpmnew ntpd sysstat
|apm-scripts firstboot kernel pand sysstat.ioconf
|arpwatch grub keyboard pgsql system-config-securitylevel
|auditd hidd kudzu pm system-config-users
|authconfig hsqldb lm_sensors prelink tux
|autofs httpd modules rhn vncservers
|bluetooth hwconf named samba vncservers_backup
|cbq i18n named.rpmnew saslauthd wpa_supplicant
|clock init netdump selinux xinetd
|console iptables netdump_id_dsa sendmail
|crond iptables-config netdump_id_dsa.pub smartmontools
|daemons irda network spamassassin
|desktop irqbalance networking squid
|[root@cat sysconfig]# vi vncservers
+----------------------------------------------------------------------------------------+
vncservers文件内容,红色部分为已经修改了的
+----------------------------------------------------------------------------------------+
|# The VNCSERVERS variable is a list of display:user pairs.
|#
|# Uncomment the lines below to start a VNC server on display :2
|# as my 'myusername' (adjust this to your own). You will also
|# need to set a VNC password; run 'man vncpasswd' to see how
|# to do that.
|#
|# DO NOT RUN THIS SERVICE if your local area network is
|# untrusted! For a secure way of using VNC, see
|#
|
|# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
|
|# Use "-nohttpd" to prevent web-based VNC clients connecting.
|
|# Use "-localhost" to prevent remote VNC clients connecting except when
|# doing so through a secure tunnel. See the "-via" option in the
|# `man vncviewer' manual page.
|
|VNCSERVERS="2:xiaomao101"
|# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
+----------------------------------------------------------------------------------------+
注:
“2:xiaomao101”表示以xiaomao101登录,并且端口是5802
4。防火墙设置
打开端口5802,5902(因为不知道是UDP还是TCP的,所以5802的UDP和TCP我都选上了)
注:
vncview通信用到端口5802,IE通过JAVA访问VNCServer用到端口5902
5。IE端需要安装MS的JAVA插件
csbinghu 于 2006-11-11 13:07:01发表:
:0L