rhel7远程kde桌面

2018-08-28  本文已影响0人  答春竹

配置epel yum源

[epel]
name=epel
baseurl=http://dl.fedoraproject.org/pub/epel/7/x86_64
enable=1
gpgcheck=0

安装KDE图形界面

yum groupinstall -y "KDE Plasma Workspaces"

安装lightdm

[root@rhel72 ~]# yum install -y  lightdm 

配置lightdm.conf文件

[root@rhel72 ~]# vim /etc/lightdm/lightdm.conf
搜索修改以下配置
[XDMCPServer]
enabled=true
port=177

将Display Manager禁用gdm,启用lightdm

[root@rhel72 ~]# systemctl disable gdm && systemctl stop gdm

启动lightdm

[root@rhel72 ~]# systemctl enable lightdm && systemctl start lightdm

关闭或者取消防火墙,或者添加177/tcp端口

[root@rhel72 ~]# systemctl stop firewalld.service

只保留/usr/share/xsessions/下kde文件,其他的重命名或者移动到其他地方

[root@rhel72 xsessions]# ls
1-kde-plasma-standard.desktop  2-kde-plasma-safe.desktop  gnome-classic.desktop  gnome-custom-session.desktop  gnome.desktop
[root@rhel72 xsessions]# mkdir gnome && mv gnome* gnome
[root@rhel72 xsessions]# ls
gnome 1-kde-plasma-standard.desktop  2-kde-plasma-safe.desktop

重启下lightdm,即可使用xmanage远程

[root@rhel72 ~]# systemctl restart lightdm

参考
使用X Manager远程CentOS 7服务器(XDMCP)

上一篇 下一篇

猜你喜欢

热点阅读