使用 Xmanager 远程连接到 CentOS 7

来源:互联网 发布:成对比较矩阵word 编辑:程序博客网 时间:2024/05/02 02:12

1.打开终端,切换root帐号


# su -

2.安装 lightdm
# yum install lightdm

3.配置 lightdm,如果不存在,则创建之
# vi /etc/lightdm/lightdm.conf
[XDMCPServer]
enabled=true
port=177

4.修改默认 display manager 为 lightdm
# systemctl disable gdm ; systemctl enable lightdm

5.开始 lightdm,注意,有风险,有可能会黑屏,重启一般会恢复,至少我测试时是恢复了
# systemctl start lightdm

6.关闭防火墙,或自行开启177端口
# systemctl stop firewalld.service

 


增加 Xfce

1. 安装 Xfce
# yum groupinstall xfce

2.重启 lightdm
# systemctl restart lightdm

3.使用 Xmanager连接

远程执行处填写执行命令 /usr/bin/xfce4-serssion

0 0