有时候使用命令行在服务器上进行一些操作真的很不方便,所以我就想搞个图形界面来解决一些不好操作的事情。
一、客户端下载安装Xmanager 7
https://www.xshellcn.com
二、服务器端进行如下操作
1.安装epel
yum install -y epel-release
2.安装lightdm
yum install -y lightdm
3.安装xfce
yum groupinstall -y xfce
4.修改配置文件
vim /etc/lightdm/lightdm.conf
改为:
5.将Display Manager切换为lightdm
systemctl disable gdm && systemctl enable lightdm
6.启动lightdm
systemctl start lightdm
7.开放177号端口
firewall-cmd --zone=public --add-port=177/tcp --permanent
firewall-cmd --reload
firewall-cmd --zone=public --list-ports
三、在本地Xmanager上新建Xstart连接
执行命令:
/usr/bin/xfce4-session