XManager5基于gdm连接centos图形界面

前端之家收集整理的这篇文章主要介绍了XManager5基于gdm连接centos图形界面前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

centos6@H_502_5@

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

第一步:

如果是新装的linux centos7,需要先配置好yum,执行命令:

cd /etc/yum.repos.d

rm -rf *@H_502_5@ wget http://mirrors.163.com/.help/CentOS7-Base-163.repo@H_502_5@ yum makecache

@H_502_5@

如果为centos6,则为wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

@H_502_5@

先下载图形界面GNOME
yum groupinstall "Desktop" -y
yum groupinstall "X Window System"-y
yum groupinstall "Chinese Support"-y

第二步:
修改/etc/X11/xdm/Xaccess
如果没有xdm该目录,则需要安装xdm
yum install xdm -y
用vi打开后找到
#* #*any host can get a login window
将前面的#去掉(即去掉两个#号)变成
* *any host can get a login window

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

[daemon]

[security]

AllowRemoteRoot=true //添加1

[xdmcp]@H_502_5@ Port=177 //添加2@H_502_5@ Enable=1 //添加3Enable为true也可以

[gui]

[greeter]

[chooser]

[debug]

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

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

(EE)@H_502_5@ Please consult the CentOS support@H_502_5@ athttp://wiki.centos.org/Documentation@H_502_5@ for help.@H_502_5@ (EE)

@H_502_5@ 或者gdm启动出现如下@H_502_5@ [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就行了. 注:命令是要选择的,不是手动敲

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

感谢:http://blog.csdn.net/wandrong/article/details/20393733

centos7.2@H_502_5@

@H_502_5@

参考: https://www.zhukun.net/archives/7798

http://blog.csdn.net/wuzhimang/article/details/51523867@H_502_5@

执行命令:

@H_502_5@ yum install -y xterm@H_502_5@ yum install -y gnome-core xfce4 firefox@H_502_5@ yum install -y gnome-panel gnome-settings-daemon Metacity nautilus gnome-terminal@H_502_5@

修改/etc/gdm/custom.conf,修改内容

补充:

1.在防火墙中开启 177端口或是关闭防火墙;修改/etc/sysconfig/iptables文件

在 -A INPUT -m state --state NEW -m tcp -ptcp --dport 22 -j ACCEPT这一行下面增加下面两行

-A INPUT -m state --state NEW -mtcp -p tcp --dport 6000:6010 -j ACCEPT

-A INPUT -m state --state NEW -mudp -p udp --dport 177 -j ACCEPT

2.重启系统,reboot

猜你在找的CentOS相关文章