手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

配置Xmanager3连接Redhat Enterprise Linux 5

[日期:2011-07-03] 来源:Linux社区  作者:Linux [字体:大 中 小]
有台RedHat Enterprise Linux 5的机器,但是没有显示器,每次要使用都需要临时把显示器接到该机器。麻烦啊!所以想起配置下Xmanager3,这样就方便远程控制这里Linux机器了。个人参照以下步骤成功配置了Xmanager3的配置。

相关配置文件介绍
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

Enable=true

DisplaysPerHost=10

Port=177

AllowRoot=true

AllowRemoteroot=true

AllowRemoteAutoLogin=false



3.做如下配置---编辑 /etc/gdm/custom.conf(这部因为上边那部 ,该部可以不做)

[xdmcp]

Enable=1


然后gdm-restart 重启一下  
4.做如下配置---编辑 /etc/inittab(不要修改原来设置,在最后新增一行如下记录)
    x:5:respawn:/usr/sbin/gdm

5.重新加载GNOME桌面配置
   init 3 ; init 5


二、 如果允许Root用户连接到XMANAGER 需要修改以下内容:


  # vi 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=true
# This will allow remote timed login.
AllowRemoteAutoLogin=false
# 0 is the most restrictive, 1 allo


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


添加这一些。
注意:以下配置我没有配置,也可以用xbrowser对linux机器进行访问。

# vi /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
~

#vi  /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    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
~
~

#vi /etc/xinetd.d/telnet

# default: on
# description: The telnet server serves telnet sessions; it uses \
#       unencrypted username/password pairs for authentication.
service telnet
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID
       disable         = no
}

然后在windows系统上运行xmanager3裡的Xbrowser程序,在裡面新建一个Xmanager Session,在Host这裡输入ip地址,其它配置都不要改变(包括端口号),确定退出。然后双击这个New Xmanager Session,看到登录界面.

linux
相关资讯       redhat 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款