在RHEL6.5中部署VNC服务

  1. 安装 xinetd tigervnc-server
yum install xinetd tigervnc-server
  1. 更改xdmcp gdm,启动xdmcp服务
vi /etc/gdm/custom.conf
[xdmcp]
Enable=true
  1. 建立vnc服务
vim /etc/xinetd.d/vnc
service vnc
{
   disable = no
   socket_type = stream
   protocol = tcp
   instances = 32
   wait = no
   user = nobody      
   server = /usr/bin/Xvnc
   server_args = -desktop myvnc -inetd -query localhost -once -SecurityTypes None -IdleTimeout 60
   type = UNLISTED
   port = 5900
}
service xinetd start
chkconfig xinetd on
  1. 设置为图形界面启动, 设置防火墙
vi /etc/inittab
id:5:initdefault:
 
 vi /etc/sysconfig/iptables
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5900 -j ACCEPT
service iptables restart

参考:
https://help.gnome.org/admin/gdm/2.32/configuration.html.en#xdmcpsection

http://tigervnc.org/doc/Xvnc.html

http://www.linuxfocus.org/English/November2000/article175.shtml#lfindex5

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.

Proudly powered by WordPress   Premium Style Theme by www.gopiplus.com