零零社区|百姓的网上家园-互动交流平台!(0.0)=^_^=(00社区)

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz

Fedora Linux 9系统下创建vncserver过程

2013-4-7 11:00| 发布者: 123456000000| 查看: 16| 评论: 0

摘要: #vi /etc/sysconfig/vncserver //编辑vncserver配置文件 VNCSERVERS=”1:root” VNCSERVERARGS=”-geometry 800×600 -0.0.0.0″ #vncpasswd //创建vnc口令 #vncserver (service vncserver start) //启动vncserver # ...
 

#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


路过

雷人

握手

鲜花

鸡蛋

相关阅读

发表评论

最新评论

相关分类


Archiver|手机版|小黑屋|00社区

GMT+8, 2023-1-31 10:50 , Processed in 0.050324 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部