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

Unix/Linux
MX 10
使用Apache&花生壳架设Web服务器
请教dns!有关于密码的问题!
Linux下各种服务器的架设详解
用init玩转 Linux 运行级别
修改/etc/inittab后如何保存退出
emacs进行文件编辑后如何保存退出
linux怎样用普通用户关机
Linux下备份恢复技术的应用
Linux下使用磁带机的常用命令 tar
vmware中linux如何设置网卡
vmware中linux怎么设置网络
怎么在redhat linux下挂载光驱软驱???
redhat linux 下载大全 完全整理
用vmware安装linux系统过程
在linux如何查看IP
linux下如何修改ip地址,主机名等信息
vmware 网络配置
Linux系统中如何查看运行级别
Slackware Linux init 进程

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


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