Centos 安装图形桌面

发布于 2024-06-07 01:21:23 字数 1751 浏览 23 评论 0

yum -y groups install "GNOME Desktop"
# 未测试
yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

开启启动图形界面

systemctl get-default # 获取当前启动模式
systemctl set-default multi-user.target # 修改启动模式为命令行
systemctl set-default graphical.target # 修改启动模式为图形化
startx # 从命令行切换到桌面环境

默认启动桌面环境后以 root 用户自动登录

vi /etc/gdm/custom.conf
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=root

Windows 远程登录需要安装 Xrdp,需要 epel 源

wget -O /etc/yum.repos.d/epel.repo  http://mirrors.aliyun.com/repo/epel-7.repo 
yum install -y xrdp

Xrdp 会调用 VNC,安装 tigervnc-server

yum install -y tigervnc-server

修改 Xrdp 最大连接数

vim /etc/xrdp/xrdp.ini
max_bpp=32

启动 Xrdp 并设置开机启动

systemctl start xrdp
systemctl enable xrdp

开放 3389 端口,或者关闭 防火墙

firewall-cmd --permanent --zone=public --add-port=3389/tcp
firewall-cmd --reload

关闭防火墙

systemctl stop firewalld

禁止防火墙开机启动

systemctl disable firewalld

启动 win 的 mstsc 工具

mstsc

卸载 GNOME

yum groupremove "GNOME Desktop"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

关于作者

文章
评论
28 人气
更多

推荐作者

櫻之舞

文章 0 评论 0

弥枳

文章 0 评论 0

m2429

文章 0 评论 0

野却迷人

文章 0 评论 0

我怀念的。

文章 0 评论 0

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文