如何在CentOS 8 / RHEL 8上安装GNOME GUI

如果选择在安装时将CentOS 8 / RHEL 8安装为最小的服务器,则只能获得命令行模式。要获得图形模式,您需要在CentOS 8 / Redhat Enterprise Linux 8上安装GNOME桌面包。

READStep by Step Guide To Install CentOS 8 with Screenshots

READStep by Step Guide To Install RHEL 8 with Screenshots

本指南将帮助您在最小的服务器安装之上的RHEL 8上安装GNOME GUI。

我建议您配置一个本地YUM存储库,以便更快地安装。

READHow To Configure the YUM repository using DVD on CentOS 8 / RHEL 8

 

首先,列出CentOS 8 / RHEL 8可用的包组。

yum group list

Output:

Available Environment Groups:
   Server with GUI
   Server
   Workstation
   Virtualization Host
   Custom Operating System
Installed Environment Groups:
   Minimal Install
Available Groups:
   Container Management
   .NET Core Development
   RPM Development Tools
   Smart Card Support
   Development Tools
   Graphical Administration Tools
   Headless Management
   Legacy UNIX Compatibility
   Network Servers
   Scientific Support
   Security Tools
   System Tools

 选择安装Server with GUI

yum groupinstall "Server with GUI"

Output:

.			.			.
.			.			.


 udisks2-iscsi                      x86_64 2.8.0-2.el8                       LocalRepo_AppStream  45 k
 udisks2-lvm2                       x86_64 2.8.0-2.el8                       LocalRepo_AppStream  68 k
 webkit2gtk3-plugin-process-gtk2    x86_64 2.22.6-1.el8                      LocalRepo_AppStream  11 M
 adcli                              x86_64 0.8.2-2.el8                       LocalRepo_BaseOS    102 k
 p11-kit-server                     x86_64 0.23.14-4.el8                     LocalRepo_BaseOS    237 k
 sssd-proxy                         x86_64 2.0.0-43.el8                      LocalRepo_BaseOS    122 k
Enabling module streams:
 container-tools                           rhel8
 llvm-toolset                              rhel8
 perl-DBD-SQLite                           1.58
 perl-DBI                                  1.641
 python36                                  3.6
 virt                                      rhel
Installing Environment Groups:
 Server with GUI
Installing Groups:
 Container Management
 Core
 Fonts
 GNOME
 Guest Desktop Agents
 Hardware Monitoring Utilities
 Hardware Support
 Headless Management
 Internet Browser
 Multimedia
 Common NetworkManager submodules
 Printing Client
 Server product core
 Standard

Transaction Summary
=======================================================================================================
Install  916 Packages

Total size: 755 M
Installed size: 2.3 G
Is this ok [y/N]: y

Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: kmod-kvdo-6.2.0.293-50.el8.x86_64                                             1/1
  Preparing        :                                                                               1/1
  Installing       : gdk-pixbuf2-2.36.12-2.el8.x86_64                                            1/916
  Running scriptlet: gdk-pixbuf2-2.36.12-2.el8.x86_64                                            1/916
  Installing       : atk-2.28.1-1.el8.x86_64                                                     2/916
  Installing       : fontpackages-filesystem-1.44-22.el8.noarch                                  3/916
  Installing       : perl-Exporter-5.72-396.el8.noarch                                           4/916
  Installing       : perl-libs-4:5.26.3-416.el8.x86_64 [===================================  ]   5/916

  
.			.			.
.			.			.  


  tpm2-tools-3.1.1-4.el8.x86_64
  tpm2-tss-2.0.0-4.el8.x86_64
  usb_modeswitch-data-20170806-2.el8.noarch
  userspace-rcu-0.10.1-2.el8.x86_64
  wpa_supplicant-1:2.7-1.el8.x86_64
  xml-common-0.6.3-50.el8.noarch
  xmlrpc-c-1.51.0-5.el8.x86_64
  xmlrpc-c-client-1.51.0-5.el8.x86_64

Complete!

Issue the following command to enable the GUI as default so that the system will boot into graphical mode.

 

systemctl set-default graphical

Output:

Removed /etc/systemd/system/default.target.
Created symlink /etc/systemd/system/default.target → /usr/lib/systemd/system/graphical.target.

重启系统

 

reboot

 

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值