LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1222|回复: 5

CentOS5 Vs. Xmanager

[复制链接]
发表于 2007-8-16 11:51:18 | 显示全部楼层 |阅读模式
希望在局域网内实现用Windows下的Xmanager管理另外一个CentOS5,已经设置了ssh,能够顺利在命令行模式登陆和管理,但希望用图形方式。

请教具体的设置方式和经验。谢谢!
发表于 2007-8-16 12:14:35 | 显示全部楼层
在 ssh下,用startx DISPLAY参数
最简单的X11通过SSH转发设置DISPLAY变量为localhost:10.0因为DISPLAY变量的设置错误也可以导致X程序直接寻找X Server而非通过SSH 隧道转发
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-16 12:36:53 | 显示全部楼层
谢谢楼上回复。

我具体该如何做呢?

我用startx得到如下结果:

startx
xauth:  creating new authority file /root/.serverauth.6120


Fatal server error:
Server is already active for display 0
        If this server is no longer running, remove /tmp/.X0-lock
        and start again.

Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
giving up.
xinit:  unable to connect to X server
xinit:  No such process (errno 3):  unexpected signal 2.
回复 支持 反对

使用道具 举报

发表于 2007-8-16 14:02:34 | 显示全部楼层
以下内容转自CU:

For XDMCP connection to Red Hat 5 EL
1. XDM Configuration
1. Change runlevel to 5

Open/etc/inittab and set the initial runlevel to 5 as following:
id:5:initdefault:

2. Enable XDMCP

   For GDM:

Open /etc/gdm/custom.conf and set the Enable entry to 1 in the [xdmcp] section as following.
[xdmcp]
Enable=1

   For KDM:

Open /usr/share/config/kdm/Xaccess and remove the initial "#" character for the following line:
#* #any host can get a login window ==>
* #any host can get a login window
Open /usr/share/config/kdm/kdmrc and set the Enable entry to true in the [xdmcp] section as following.
[xdmcp]
Enable=true


2. 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
# init 3; init 5
回复 支持 反对

使用道具 举报

发表于 2007-8-16 14:44:50 | 显示全部楼层
好久没用Xmanager了,现在换成X-Win32了,不过原理/配置方法是一样的。
服务器装好后,只要开了ssh服务就行了,
在Xmanager或X-Win32中设好服务器IP地址、端口、用户名、密码后,设置执行命令为
/usr/bin/gnome-session即可过入桌面(X-Win32中要先设置窗口模式为单窗口,不然你的桌面会很乱),不过我不喜欢这样,我喜欢设为多窗口,然后设置执行命令为/usr/bin/gnome-terminal,这样开的是终端,当我需要运行哪个命令时,就输入哪个命令,就象在自己的机上操作一样,很省内存。
如果你要用的是KDE,可以把命令改为/usr/bin/startkde
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-16 15:45:49 | 显示全部楼层
谢谢lanyao和南蛮XP,按照lanyao给的文章设定后,再按照南蛮XP的方法设定Xmanager的命令后就搞定了!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表