CentOS 7 最小化安装环境配置 Xmanager 连接
Centos7 最小化安装环境中使用 Xmanager 远程连接桌面 _XDMCP 方式。
安装epel源
# yum install -y epel-release
安装lightdm和Xfce
# yum install -y lightdm
# yum groupinstall -y xfce
LightDM,即:Light Display Manager,是一个全新的、轻量的Linux桌面的桌面显示管理器。
Xfce 是类 UNIX 操作系统上的轻量级桌面环境。
修改配置文件
- 修改
lightdm.conf文件
# vim /etc/lightdm/lightdm.conf
...
[XDMCPServer]
enabled=true
port=177
...

将 Display Manager 切换为 lightdm
# systemctl disable gdm && systemctl enable lightdm
启动 lightdm
# systemctl start lightdm
Job for lightdm.service failed because the control process exited with error code. See "systemctl status lightdm.service" and "journalctl -xe" for details.
- 这一步在Xshell中运行会报错,但实际已经正常运行
Xmanager 配置
- 打开 Xmanager

- 新建 Xstart 会话

- 填写服务器IP地址、用户名以及密码
- 执行命令填写
/usr/bin/xfce4-session - 填写完成后,点击确定

- 双击新建好的
Xstart会话

- 点击
Use default config即可连接成功!


关闭连接
- 点击右上角的
root按钮,选择Log Out

- 再点击
Log Out即可关闭连接

标题:CentOS 7 最小化安装环境配置 Xmanager 连接
作者:Mune
地址:https://cnxiaobai.com/articles/2021/09/10/1631204538034.html
评论
0 评论