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

Unix/Linux
Ubuntu 8.04系统下Opera浏览器安装配置
Ubuntu系统软件安装方式
解决Ubuntu启动时的Routine check检查时间过长
Ubuntu系统下安装网络打印机
Ubuntu系统下zend for linux中文乱码解决
Ubuntu 8.04升级到Ubuntu 8.10
Ubuntu 8.04中使用fast-cgi搭建Apache2+PHP5环境
Ubuntu压缩/解压缩RAR文件的方法
64位ubuntu8.04 安装QQ
ubuntu关闭图形模式
解决ubuntu系统下vimtutor乱码
Ubuntu下安装KDE桌面环境
Ubuntu 8.10 Intrepid Ibex Alpha4 官方正式版下载
ubuntu8.04下源码安装wine 设置中文
ubuntu下设置共享目录
Ubuntu下Flash乱码的解决方法
Ubuntu 8.04中启用FrameBuffer
Ubuntu系统下升级内核的方法
ubuntu系统下播放mp3及中文乱码的解决
ubuntu 8.04.1 LTS 下的cpu温度监控软件lm-sensors

Unix/Linux 中的 Fedora 9系统下创建和配置vncserver过程


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-15   浏览: 69 ::
收藏到网摘: 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