• Xmanager 连接RHEL5.4简易配置 分享




    由于客户那边说Xmanager连接不了RHEL5的服务器 我自己做了个试验 整理下 免得以后忘了

    [root@localhost gdm]# vi /etc/inittab 

    #x:5:respawn:/etc/X11/prefdm -nodaemon

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

    当 然运行级别是要改成5的 这个不用说了
    改变defaults.conf文件权限,默认是只读chmod 700 /usr/share/gdm/defaults.conf[root@localhost gdm]# 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=true[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=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=2DisplaysPerHost=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=177Port=177其 他的功能 自己看看配置文件的说明改改如果有防火墙 加条规则iptables -A INPUT -p udp -s 0.0.0.0/0 -d 0.0.0.0/0 --dport 177 -j ACCEPT然后重启下机器或者 gdm-restart

    最后,编辑/etc/hosts,里面添加上 自己机器的地址,不能使用带*的,Ip全部的地址

    环境要求1.客户端利用xmanager3.0连接服务器可以看到和本机登录一样的图 形界面2.允许root远程连接登录 相关配置文件介绍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

    4.做如下配置---编辑 /etc/inittab(不要修改原来设置,在最后新增一行如下记录)    x:5:respawn:/usr/sbin/gdm 5.重新加载GNOME桌面配置   init 3 ; init 5

    SecureCRT设置X11如最上面的图所示
    如果上述方法不行,编辑/etc/hosts,里面添加上 自己机器的地址
  • 相关阅读:
    android存储訪问框架Storage Access Framework
    hdu 5338 ZZX and Permutations (贪心+线段树+二分)
    集成CCFlow工作流与GPM的办公系统驰骋CCOA介绍(三)
    PHP中文分词扩展 SCWS
    使用docker 搭建基础的 mysql 应用
    UVA 11090 Going in Cycle!!(Bellman-Ford推断负圈)
    HDU 5237 Base64
    Android 自己定义主菜单
    HDU 1018 Big Number 数学题解
    python经常使用的十进制、16进制、字符串、字节串之间的转换(长期更新帖)
  • 原文地址:https://www.cnblogs.com/danghuijian/p/4400259.html
Copyright © 2020-2023  润新知