Xmanager无法登录Red Hat Linux——解决方法
2012-03-31 22:26
459 查看
刚装的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/Xservers7.最后运行#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.关闭客户端系统的防火墙。
![](http://www.cnblogs.com/Emoticons/others/haha002.gif)
折磨了好一会,没做这个步骤。后来想着把自己本机上的防火墙关掉试试,果然可以了。
说明:
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有关没能解的问题困扰着我
![](http://www.cnblogs.com/Emoticons/others/think001.gif)
我用Xmanager登录aix系统(aix5.3)登录后,输入用户名密码,终于以为可以进去了,结果登录后,让我太失望了,只有一个灰灰的界面挂着一个Xclock,右键还能看到菜单,但是怎么就见不到桌面呢,如下图所示:
![](http://images.cnblogs.com/cnblogs_com/lanzi/xmanager-w1.png)
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/Xservers7.最后运行#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.关闭客户端系统的防火墙。
![](http://www.cnblogs.com/Emoticons/others/haha002.gif)
折磨了好一会,没做这个步骤。后来想着把自己本机上的防火墙关掉试试,果然可以了。
说明:
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有关没能解的问题困扰着我
![](http://www.cnblogs.com/Emoticons/others/think001.gif)
我用Xmanager登录aix系统(aix5.3)登录后,输入用户名密码,终于以为可以进去了,结果登录后,让我太失望了,只有一个灰灰的界面挂着一个Xclock,右键还能看到菜单,但是怎么就见不到桌面呢,如下图所示:
![](http://images.cnblogs.com/cnblogs_com/lanzi/xmanager-w1.png)
![](http://images.cnblogs.com/cnblogs_com/lanzi/xmanager-w2.png)
相关文章推荐
- Red Hat Enterprise Linux 5 (RHEL5)中物理网卡被peth0占用无法联网的问题解决方法
- Red Hat Linux 9无法进入图形界面的解决方法
- 在VMWare WorkStation 5.5中安装Red hat linux 9后网卡无法激活的问题解决
- 用VMware装Red Hatlinux的共享文件的解决方法
- Red Hat Enterprise Linux 5.4关于中文乱码的解决方法
- Red Hat linux 6.4 无法开启Apache服务,解决httpd: Could not reliably determine the server's fully qualified do
- 安装Red Hat Linux 9.0,所遇错误问题的解决方法
- linux--解决登录vsftpd后无法使用dir和切换目录的方法
- linux忘记密码或错误修改/etc/inittab导致无法登录后解决方法
- Linux 中无法使用 root 用户通过 SSH 远程登录解决方法
- Red Hat Enterprise Linux AS 4.7 下 VMware Workstation 6.5.2 build-156735 运行出错,解决方法
- Red Hat Enterprise Linux Server(RHEL) yum安装软件时This system is not registered with RHN. RHN support will be disabled. 的解决方法(转)
- 在Red Hat Enterprise Linux 5下ArcGIS Server的一些问题和解决方法
- Red Hat Linux使用yum 安装报 关于Public key for *.rpm is not installed 的解决方法
- linux无法登录 根分区空间使用完了的解决方法
- Red Hat Enterprise Linux 5.4 中文乱码、输入法的解决方法
- Red Hat Linux使用yum 安装报 关于Public key for *.rpm is not installed 的解决方法
- SecureCRT无法远程登录到virtualbox中linux系统的解决方法
- 安装Red Hat Linux 9.0,所遇错误问题的解决方法
- 在Linux环境下无法正常安装VMware tools工具的解决方法