去掉下面的注释
- #* #any host can get a login window
2 修改启动模式/etc/inittab
3修改/etc/gdm/custom.conf
- # GDM configuration storage
-
- [daemon]
-
- [security]
- AllowRemoteRoot=true
- DisallowTCP=false
- [xdmcp]
- Enable=true
- Port=177
- [greeter]
-
- [chooser]
-
- [debug]
4修改/etc/X11/xdm/xdm-config用 ! 注释下面的语句
- !DisplayManager.requestPort: 0
5 修改以下文件权限,确保有444权限
- # ll /etc/X11/xdm/Xservers
- -rw-r--r--. 1 root root 485 Jan 6 22:35 /etc/X11/xdm/Xservers
- # ll /etc/X11/xdm/Xsetup_0
- -rwxr-xr-x. 1 root root 938 Aug 20 2010 /etc/X11/xdm/Xsetup_0
7 修改/etc/securetty
- tty1
- tty2
- tty3
- tty4
- tty5
- tty6
- tty7
- tty8
- tty9
- tty10
- tty11
- rsh
- rexec
- rlogin
添加
- pts/0
- pts/1
- pts/2
- pts/3
- pts/4
8 修改/etc/pam.d/login
注释掉
- #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 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 required pam_namespace.so
- session optional pam_keyinit.so force revoke
- session include system-auth
- -session optional pam_ck_connector.so
9 修改 /etc/pam.d/remote
注释掉
- #auth required pam_securetty.so
- auth include password-auth
- account required pam_nologin.so
- account include password-auth
- password include password-auth
- # pam_selinux.so close should be the first session rule
- session required pam_selinux.so close
- session required pam_loginuid.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 required pam_namespace.so
- session optional pam_keyinit.so force revoke
- session include password-auth
9关闭防火墙,或开放UDP 177端口
可以使用system-config-firewall操作防火墙
可以使用/etc/init.d/iptables stop关闭防火墙
10重启机器
以上操作,顺序及原因不详,望指点,很多操作都是照葫芦画瓢,不讲原因,弄对了就OK,下次还是不明白。
参考:
http://lmdkfs.blog.163.com/blog/static/7461132420124445749639/
http://wenku.baidu.com/view/ac4a2f1aa8114431b90dd842.html
http://blog.sina.com.cn/s/blog_7065a1e40100mahz.html
http://hi.baidu.com/edeed/item/7e511dd9d1e4003e48e1dd8a