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

Unix/Linux
fedora 9.0 添加新到yum源和fastestmirror插件
Fedora 9.0 详细安装图解
Fedora 10 安装教程全程图解推荐
Linux系统通过手机GPRS无线上网
手动编译安装Linux网卡驱动
取消挂载 umount 时出现的 “Device is busy”
linux系统挂载光盘镜像ISO的方法
yum安装命令的使用方法
linux echo命令说明
etc/profile环境变量配置解析
Linux系统下ifconfig命令使用说明
putty乱码的解决办法
putty连接linux乱码的解决办法
linux 下Apache设置与优化
linux操作系统下 RAR的安装和使用
linux服务器安全小知识
LINUX系统一个网卡绑定多个IP的方法
Linux用软件实现RAID 的方法
linux一些小技巧
Linux下调整网卡的工作模式

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


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