公 告
登 陆
日志日历
日 志
评 论
链 接
统 计
 
http://roamerliu.mypm.net
 
 
标题:   使用Xmanager登录linuxas4和AS5

使用Xmanager登录linuxas4

经过实践,使用xmanager远程管理linux很方便,现把在l如何在inux下使用xmanager来远程登录贴出来,供大家参考。

1.修改/etc/X11/xdm/Xaccess文件如下:
* # any host can get a login window
(说明:即把这句语句的前面一个#符去掉)
2.修改/etc/X11/gdm/gdm.conf文件
[xdmcp]
Enable=false 改为Enable=1或Enable=true
Port=177
(实践证明:改Enable=1成功登录,Enable=true不能登录)
3.修改 /etc/inittab文件
id:3:initdefault改为id:5:initdefault (有些linux版本已是id:5:initdefault就不需要改)
最后一行改为: x:5:respawn:/usr/bin/gdm
4.修改/etc/X11/xdm/xdm-config文件
在 displayManager.requestPort : 0 前面加上!符号
(说明:这语句在这文件的最后一行)
5.修改防火墙:
  /etc/sysconfig/ipchains文件中加入以下语句:
-A input -p udp -s 0/0 -d 0/0 177 -j accept
6.重启机器
7.在windows下使用xmanager登录

使用Xmanager登录linuxas5

1. Change runlevel to 5
Open/etc/inittab and set the initial runlevel to 5 as following:
id:5:initdefault:
//如果是图形方式登入的,这一步可以不用设置。

2. Enable XDMCP
Open /etc/gdm/custom.conf and set the Enable entry to 1 in the [xdmcp] section as following.
[security]
AllowRemoteRoot=true    //不加此项root用户将不能登入
[xdmcp]
Enable=1

3. Firewall (TCP/UDP Ports) Configuration
Open UDP port 177 from the PC to the remote host direction.
Open incoming TCP ports 6000~6010 from the remote host to your PC.
3. Reboot the remote host and start Xmanager
以图形方式启动。

roamerliu 发表于 2010/8/6 10:51:00 阅读全文 | 回复(0) | 引用通告 | 编辑 | 收藏该日志

发表评论:

    昵称:
    密码:
    主页:
    标题: