URN Logo
UNIX Resources » Linux » China Linux Forum » Linux桌面与办公软件 » 14 » Fedora 下X远程连接(gnome桌面)
announcement 声明: 本页内容为中国Linux论坛的内容镜像,文章的版权以及其他所有的相关权利属于中国Linux论坛和相应文章的作者,如果转载,请注明文章来源及相关版权信息。
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.net
  业界新闻与评论
  自由软件杂谈
  IT 人生
  Linux软件快递
  翻译作坊
  Linux图书与评论
  GNU Emacs/XEmacs
  Linux 中文环境和中文化
  Linux桌面与办公软件
  Linux 多媒体与娱乐版
  自由之窗Mozilla
  笔记本电脑上的Linux
  Gentoo
  Debian 一族
  网络管理技术
  Linux 安装与入门
  WEB服务器和FTP服务器
  域名服务器和邮件服务器
  Linux防火墙和代理服务器应用
  文件及打印服务器
  技术培训与认证
  Linux内核技术
  Linux 嵌入技术
  Linux设备驱动程序
  Linux 集群技术
  LINUX平台数据库
  系统和网络安全
  CPU 与 编译器
  系统计算研究所专栏
  Linux下的GUI软件开发
  C/C++编程版
  PHP 技 术
  Java&jsp技术
  Shell编程技术
  Perl 编 程
  Python 编 程
  XML/Web Service 技术
  永远的Unix
  FreeBSD世界
   
Fedora 下X远程连接(gnome桌面)
Author: solaris7    Posted: 2004-02-24 11:03    Length: 3,649 byte(s)
[Original] [Print] [Top]
Fedora 下X远程连接(gnome桌面)

确定udp 177是否打开
[root@digitalD gdm]# netstat -an|grep 177
[root@digitalD gdm]#

设置DISPLAY变量
set DISPLAY=your-ip:0.0
export DISPLAY

修改/etc/X11/gdm/gdm.conf
找到如下字段
[xdmcp]
# Distributions: Ship with this off. It is never a safe thing to leave
# out on the net. Setting up /etc/hosts.allow and /etc/hosts.deny to only
# allow local access is another alternative but not the safest.
# Firewalling port 177 is the safest if you wish to have xdmcp on.
# Read the manual for more notes on the security of XDMCP.
Enable=ture
# Honour indirect queries, we run a chooser for these, and then redirect
# the user to the chosen host. Otherwise we just log the user in locally.
HonorIndirect=fault (改成true)
# Maximum pending requests
#MaxPending=4 (去掉#)
#MaxPendingIndirect=4 (去掉#)
# Maximum open XDMCP sessions at any point in time
#MaxSessions=16 (去掉#)
# Maximum wait times
#MaxWait=15 (去掉#)
#MaxWaitIndirect=15 (去掉#)
# How many times can a person log in from a single host. Usually better to
# keep low to fend off DoS attacks by running many logins from a single
# host. This is now set at 2 since if the server crashes then gdm doesn't
# know for some time and wouldn't allow another session.
#DisplaysPerHost=2
# The number of seconds after which a non-responsive session is logged off.
# Better keep this low.
#PingIntervalSeconds=15
# The port. 177 is the standard port so better keep it that way
#Port=177 (去掉#)
# Willing script, none is shipped and by default we'll send
# hostname system id. But if you supply something here, the
# output of this script will be sent as status of this host so that
# the chooser can display it. You could for example send load,
# or mail details for some user, or some such.
Willing=/etc/X11/gdm/Xwilling

确定gdm
[root@digitalD gdm]# ps -auxw|grep gdm
root 2773 0.0 0.1 11116 2012 ? S Feb23 0:00 /usr/bin/gdm-binary -nodaemon
root 25226 0.0 0.1 11112 2036 ? S 10:32 0:00 /usr/bin/gdm-binary -nodaemon
root 25228 0.0 0.0 1896 268 ? S 10:32 0:00 /usr/libexec/gdmopen -l /bin/sh -c /usr/bin/dialog --yesno 'There already appears to be an X server running on display :0. Should I try another display number? If you answer no, I will attempt to start the server on :0 again. (You can change consoles by
root 25268 0.0 0.2 11776 2572 ? S 10:32 0:00 /usr/bin/gdm-binary -nodaemon
root 25456 0.1 0.5 12756 5452 pts/4 S 10:42 0:00 emacs gdm.conf
root 25470 0.0 0.0 5116 580 pts/5 S 10:53 0:00 grep gdm
[root@digitalD gdm]#

重启gdm
[root@digitalD gdm]# killall -HUP gdm-binary
[root@digitalD gdm]#

查看是否生效
[root@digitalD gdm]# netstat -an|grep 177
udp 0 0 0.0.0.0:177 0.0.0.0:*
unix 2 [ ] DGRAM 3177
[root@digitalD gdm]#



不出意外就可以用windows 下x-win32,exceed,或linux X -query yourip 进行连接了。
错误处请大家指正
----
i am not bound to please three with my answers
[Original] [Print] [Top]
« Previous thread
openoffice打开office文档的中文问题
Linux桌面与办公软件
14
Next thread »
Linux桌面环境玩转BT(ZT)
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
备案序号: 京ICP备05006143    webmaster: webmaster@unixresources.net
This page created on 2008-07-17 02:09:12, cost 0.034414052963257 ms.