查看: 68|回复: 0

Fedora 9系统下创建和配置vncserver过程

[复制链接]

4

主题

0

回帖

0

积分

积极分子

金币
0
阅读权限
220
精华
0
威望
0
贡献
0
在线时间
0 小时
注册时间
2009-10-14
发表于 2008-9-8 17:18:04 | 显示全部楼层 |阅读模式

#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

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

相关侵权、举报、投诉及建议等,请发 E-mail:qiongdian@foxmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部