- 安装 xinetd tigervnc-server
yum install xinetd tigervnc-server |
- 更改xdmcp gdm,启动xdmcp服务
vi /etc/gdm/custom.conf
[xdmcp]
Enable=true |
- 建立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 |
- 设置为图形界面启动, 设置防火墙
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