首页 > 系统服务 > 详细

Fedora 9.0系统下创建和配置vncserver远程连接

时间:2016-02-06 23:29:46      阅读:124      评论:0      收藏:0      [点我收藏+]
#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

Fedora 9.0系统下创建和配置vncserver远程连接

原文:http://www.jb51.net/os/Fedora/1407.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!