当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > Fedora 9.0系统下创建和配置vncserver远程连接

Unix/Linux
Linux的使用
Linux下的软件安装
Linux下的硬件安装
Linux学习基础
Linux学习指导
Linux值得信任吗?
Linux 管理员手册(2)
Linux 管理员手册(3)
Linux 管理员手册(4)
Linux 管理员手册(5)
Linux 管理员手册(6)
Linux 管理员手册(7)
Linux 管理员手册(8)
Linux 管理员手册(9)
Linux新技术对象存储文件系统
Linux系统文件命令精通指南
Linux基础知识99问(五)
Linux基础知识99问(四)
Linux基础知识99问(三)
Linux基础知识99问(二)

Unix/Linux 中的 Fedora 9.0系统下创建和配置vncserver远程连接


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-15   浏览: 27 ::
收藏到网摘: n/a

#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