首页 > 其他 > 详细

xmanager centos6

时间:2015-11-26 01:30:01      阅读:375      评论:0      收藏:0      [点我收藏+]

参考了很多资料,花了几个钟终于把XManager连接centos搞定.

第一步:
先下载图形界面GNOME
yum groupinstall "Desktop"
yum groupinstall "X Window System"
yum groupinstall "Chinese Support"
 
第二步:
修改/etc/X11/xdm/Xaccess
如果没有xdm该目录,则需要安装xdm
yum install xdm
用vi打开后找到
#*                        *any host can get a login window
将前面的#去掉变成
*                        *any host can get a login window

第三步:
修改/etc/gdm/custom.conf

[daemon]

[security]

AllowRemoteRoot=true  //添加1

[xdmcp]
Port=177   //添加2
Enable=1    ////添加3

[gui]

[greeter]

[chooser]

[debug]

如果startx启动出现如下
[root@cloud ssh]#startx
xauth:  creating new authority file /root/.serverauth.3234


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

(EE)
Please consult the CentOS support
         at http://wiki.centos.org/Documentation
 for help.
(EE)


或者gdm启动出现如下
[root@cloud ssh]#gdm

** (gdm-binary:3256): WARNING **: Failed to acquire org.gnome.DisplayManager

** (gdm-binary:3256): WARNING **: Could not acquire name; bailing out

都没有影响.

接下来使用XManager4连接

我使用的是Xstart

填写主机名,协议选SSH,用户名,密码,命令选GNOME,点击run就行了.

 

附注:
Sent password.
Sent password.
Access granted.
Sent X11 forwarding request...
Failed.
如果出现以上情况就修改
/etc/ssh/sshd_config
#X11Forwarding no
修改为:X11Forwarding yes
然后重启ssh
service sshd restart

(就是这地方困了我一个多钟)


本文出自 “MJ为的笔记和总结” 博客,请务必保留此出处http://024mj.blog.51cto.com/10252785/1716893

xmanager centos6

原文:http://024mj.blog.51cto.com/10252785/1716893

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!