Xmanager無法登錄Red Hat Linux——解決方法


 剛裝的Red Hat Linux,telent能用了,ssh也能用了,但Xmanager不能登錄,因此搜啊,發現如下的該博文寫的還是很詳細,跟着自己的操作一遍

http://blog.csdn.net/snlying/article/details/6446934

 

具體如下:

1.編輯/etc/X11/xdm/Xaccess

將改行#* # any host can get a login window 中第一個#去掉,即

 

* # any host can get a login window
  2.修改/etc/X11/gdm/gdm.conf

 

將[xdmcp]中的Enable=0 或Enable=false 修改為: [xdmcp] Enable=1 或Enable=true 並確保以下信息存在: Port=177

如下所示:

 

[xdmcp]

# Distributions: Ship with this off. It is never a safe thing to leave

# out on the net. Alternatively you can set up /etc/hosts.allow and

# /etc/hosts.deny to only allow say local access.

Enable=true
 

 

 

# The port. 177 is the standard port so better keep it that way

Port=177

 3.修改/etc/inittab

將id:3:initdefault:    修改為: id:5:initdefault:

 5表示以圖形的方式啟動,3表示以命令窗口方式啟動

 

 4.確保/etc/X11/xdm/Xservers的屬性為444,/etc/X11/xdm/Xsetup_0的屬性為755

如下所示:

 

[root@localhost root]# ls -l /etc/X11/xdm/Xsetup_0

-rwxr-xr-x    1 root     root          563 Feb 6 2003 /etc/X11/xdm/Xsetup_0

[root@localhost root]# ls -l /etc/X11/xdm/Xservers

-r--r--r--    1 root     root          487 Feb 28 2003 /etc/X11/xdm/Xservers

如果不對,采用chmod進行文件權限修改

chmod 444 /etc/X11/xdm/Xservers

 5.修改/etc/X11/xdm/xdm-config文件
將該文件的最后一行: DisplayManager.requestPort: 0 前面加!號注釋掉此行

6.修改/etc/X11/xdm/Xservers

將在最后一行::0 local /usr/X11R6/bin/X 前面加#號注釋掉這一行
[root@localhost root]# vi /etc/X11/xdm/Xservers

7.最后運行#xdm。這樣使用xmanager等工具就可以連接Linux了

默認是這樣的:

[root@localhost root]# ps -ef|grep xdm
root      3717  3690  0 22:05 pts/0    00:00:00 grep xdm

 

[root@localhost root]# which xdm
/usr/X11R6/bin/xdm
[root@localhost root]# /usr/X11R6/bin/xdm

 

執行xdm后再查看多了第一行,如果沒執行 /usr/X11R6/bin/xdm無法用xmanager登錄
[root@localhost root]# ps -ef|grep xdm
root      3724     1  0 22:06 ?        00:00:00 /usr/X11R6/bin/xdm
root      3727  3690  0 22:07 pts/0    00:00:00 grep xdm

 

8. 關閉linux系統的防火牆

一切配置好后,用Xmanager登錄該系統,半天后卻提示:連接失敗

9.關閉客戶端系統的防火牆。

折磨了好一會,沒做這個步驟。后來想着把自己本機上的防火牆關掉試試,果然可以了。

 

說明:

1.我沒有找到kdmrc這個文件,反正最終也沒影響,就不管了。

2./etc/rc.d/rc.local文件的內容如下

 

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
                                                                                
touch /var/lock/subsys/local
我沒有增加
./etc/X11R6/bin/xdm
這句話,但是照樣可以使用Xmanager登錄。

 

 一個最終還是有一個與Xmanager有關沒能解的問題困擾着我

 我用Xmanager登錄aix系統(aix5.3)登錄后,輸入用戶名密碼,終於以為可以進去了,結果登錄后,讓我太失望了,只有一個灰灰的界面掛着一個Xclock,右鍵還能看到菜單,但是怎么就見不到桌面呢,如下圖所示:

 

 


 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM