Xmanager远程连接CentOS7

上周例会,又被说了一通,Xmanager远程连接的文档没写?服务没搭建?心想这都有VNC了,为毛一定要弄这个啊?!!但是,我还是在今天给弄了,╮(╯▽╰)╭没人权。搭建完尝试用了下,感觉吧,也不咋地啊,也许是那个服务器上进程太多,内存使用高所以在登录的时候好等待10s刷新出界面来,然后就飞快的工作了,这时才显示出来确实比VNC好用。闲话不多说了。 
还要说一下o(╯□╰)o,从Xmanger官网博客得知: 
“Gnome in CentOS 7 tries to use local hardware acceleration and this becomes a problem when trying to connect remotely using XDMCP. To avoid this problem, you have to use an alternative display manager (other than ‘gdm’) and desktop environment.” 
“This guide explains how you can change the display manager to lightdm from gdm and desktop environment from Gnome to Xfce.” 
这就是使用Xfce而不用gdm的原因(仅限CentOS7),嗯,不懂的可以百度一下。

参考: 
http://blog.netsarang.com/89/connecting-to-centos-7/ 
http://blog.csdn.net/lic95/article/details/48948099 
http://blog.csdn.net/wuzhimang/article/details/51523867

 

安装epel源

yum install -y epel-release

安装lightdm和xfce

1. yum install -y lightdm

2. yum groupinstall -y xfce

 

修改配置文件

修改配置文件

1. vim /etc/lightdm/lightdm.conf

2. ...

3. [XDMCPServer]

4. enabled=true

5. port=177

6. ...

 

将Display Manager切换为lightdm

systemctl disable gdm && systemctl enable lightdm

启动lightdm

systemctl start lightdm

关闭防火墙

systemctl stop firewalld.service

这是因为刚开始安装的是Gnome,所以系统默认使用它,现在要改成Xfce,最简单的方法就是把xfce.desktopz之外的文件都干掉。

1. cd /usr/share/xsessions/

2. mkdir bak

3. mv gnome* bak

4. systemctl restart lightdm  

 

 

posted on 2019-03-01 10:48  遇见阿杜  阅读(1427)  评论(0编辑  收藏  举报