分类: LINUX
2012-02-02 11:43:42
设置Xmanager For Redhat ES 5.6
修改配置文件:
vi /usr/share/gdm/defaults.conf
[security]
# Allow root to login. It makes sense to turn this off for kiosk use, when
# you want to minimize the possibility of break in.
AllowRoot=true
# Allow login as root via XDMCP. This value will be overridden and set to
# false if the /etc/default/login file exists and contains
# "CONSOLE=/dev/login", and set to true if the /etc/default/login file exists
# and contains any other value or no value for CONSOLE.
#AllowRemoteRoot=false
AllowRemoteRoot=true
# This will allow remote timed login.
……
[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=false
Enable=true
# Honor 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=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
DisplaysPerHost=10
# 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
Port=177
编辑启动文件
vi /etc/inittab
# Run xdm in runlevel 5
#x:5:respawn:/etc/X11/prefdm -nodaemon
x:5:respawn:/usr/sbin/gdm
重启电脑即可
Reboot.