|
|
|
|
|
|
|
[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]
|
|
|