Fedora Linux 9系统下创建vncserver过程

王朝system·作者佚名  2008-06-17
窄屏简体版  字體: |||超大  

#vi /etc/sysconfig/vncserver //编辑vncserver配置文件

VNCSERVERS=”1:root”

VNCSERVERARGS[1]=”-geometry 800×600 -0.0.0.0″

#vncpasswd //创建vnc口令

#vncserver (service vncserver start) //启动vncserver

#service iptables stop //关闭iptables防火墙

#vi .vnc/xstartup //编辑xstartup的脚本

#!/bin/sh

vncconfig -iconic &

# Uncomment the following two lines for normal desktop:

unset SESSION_MANAGER

exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

xsetroot -solid grey

xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &

twm &

在windowx xp 客户端打开vic viewer 连接输入: Fedora ip add:1

其它:

#vi /etc/sysconfig/iptables //允许5901端口通过

-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 5901 -j ACCEPT

#vi /etc/sysconfig/vncserver //允许连接两个不同的用户,当然同时需要iptables开放5902端口

VNCSERVERS=”1:root 2:keith”

vncviewer 切换全屏模式--F8

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航