日期:2014-05-16  浏览次数:20802 次

Xmanager3.0连接配置RedHat Enterprise Linux 5
我们这里采用Xmanager3.0连接配置RedHat Enterprise Linux 5进行图形界面导航安装,需要在linux上面进行一些配置文件的修改,具体如下。

环境介绍

服务器:RedHat Enterprise Linux 5.0
客户端:xmanager3.0英文版
服务器相关配置文件介绍

1./usr/share/gdm/defaults.conf----GNOME管理默认的配置文件

2./etc/inittab---init进程的主配置文件

3./etc/gdm/custom.conf---GNOME的自定义配置文件

步骤如下:

1.改变defaults.conf文件权限,默认是只读

chmod 700 /usr/share/gdm/defaults.conf

2.做如下配置---编辑/usr/share/gdm/defaults.conf

将以下内容添加到defaults.conf后面:

Enable=true

DisplaysPerHost=10

Port=177

AllowRoot=true

AllowRemoteRoot=true

AllowRemoteAutoLogin=false

3.做如下配置---编辑/etc/gdm/custom.conf

[xdmcp]

Enable=1

4.做如下配置---编辑/etc/inittab,注意:不要修改原来设置,在最后新增一行如下记录

x:5:respawn:/usr/sbin/gdm

5.配置防火墙,注意,如果防火墙已经关闭,这个可以不用设置。

   iptables -A INPUT -p udp --dport 177 -j ACCEPT

6.重新加载GNOME桌面配置

   init 3 或者 init 5

设置到这里Xmanager3就可以连接到服务器了,但是不能使用root用户来登录。要是想让root用户来登录还需要做如下设置。

1. 修改/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.
Vi
# 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=true  (说明,将这行修改成true)
# This will allow remote timed login.
AllowRemoteAutoLogin=false
# 0 is the most restrictive, 1 allo

………

2. 修改 /etc/securetty,在文件底部添加红色部分

......
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
pts/0
pts/1
pts/2
pts/3
pts/4

3. 修改/etc/pam.d/login

#%PAM-1.0
#auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so  (将这行注释掉)
auth       include      system-auth
account    required     pam_nologin.so
account    include      system-auth
password   include      system-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    include      system-auth
session    required     pam_loginuid.so
session    optional     pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session    required     pam_selinux.so open
session    optional     pam_keyinit.so force revoke
~

4. 修改/etc/pam.d/remote
#%PAM-1.0
#auth       required     pam_securetty.so(将此行注释掉)
auth       include      system-auth
account    required     pam_nologin.so
account    include      system-auth
password   include      system-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    include      system-auth
session  &nbs