centos 7.9 安装虚拟化界面

联网

 在/etc/sysconfig/network_script
 onboot改为yes
重新ping baidu.com

Step 2: Update Your Server
Before installing a new package, it is always a good idea to update the System with the latest available versions using yum update command as shown below. If any of the packages needs upgradation then upgrade it by using yum upgrade command.

[root@cyberithub ~]#

yum update

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: centos.mirror.snu.edu.in
  • extras: centos.mirror.snu.edu.in
  • updates: centos.mirror.snu.edu.in
    base | 3.6 kB 00:00:00
    extras | 2.9 kB 00:00:00
    updates | 2.9 kB 00:00:00
    No packages marked for update

Step 3: Check Package Groups
You can check all the available package groups by using yum grouplist or yum group list command. As you can see from the below output, we need to basically install GNOME Desktop and Graphical Administration Tools package groups.

Advertisements
[root@cyberithub ~]#

yum grouplist

Loaded plugins: fastestmirror
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile

  • base: centos.mirror.snu.edu.in
  • extras: centos.mirror.snu.edu.in
  • updates: centos.mirror.snu.edu.in
    Available Environment Groups:
    Minimal Install
    Compute Node
    Infrastructure Server
    File and Print Server
    Basic Web Server
    Virtualization Host
    Server with GUI
    GNOME Desktop
    KDE Plasma Workspaces
    Development and Creative Workstation
    Available Groups:
    Compatibility Libraries
    Console Internet Tools
    Development Tools
    Graphical Administration Tools
    Legacy UNIX Compatibility
    Scientific Support
    Security Tools
    Smart Card Support
    System Administration Tools
    System Management
    Done

Step 4: Install GNOME Desktop(GUI)

To install GNOME Desktop and Graphical Administration Tools package groups, you need to use either yum groupinstall “GNOME Desktop” “Graphical Administration Tools” or yum group install “GNOME Desktop” “Graphical Administration Tools” command as shown below.

[root@cyberithub ~]#

yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

Loaded plugins: fastestmirror
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile

  • base: centos.mirror.snu.edu.in
  • extras: centos.mirror.snu.edu.in
  • updates: centos.mirror.snu.edu.in
    Warning: Group core does not have any packages to install.
    Warning: Group graphical-admin-tools does not have any packages to install.
    Group graphical-admin-tools does have 1 conditional packages, which may get installed.
    Resolving Dependencies
    –> Running transaction check
    —> Package ModemManager.x86_64 0:1.6.10-4.el7 will be installed
    –> Processing Dependency: ModemManager-glib(x86-64) = 1.6.10-4.el7 for package: ModemManager-1.6.10-4.el7.x86_64
    –> Processing Dependency: libqmi-utils for package: ModemManager-1.6.10-4.el7.x86_64
    –> Processing Dependency: libmbim-utils for package: ModemManager-1.6.10-4.el7.x86_64
    –> Processing Dependency: libqmi-glib.so.5()(64bit) for package: ModemManager-1.6.10-4.el7.x86_64
    –> Processing Dependency: libmm-glib.so.0()(64bit) for package: ModemManager-1.6.10-4.el7.x86_64
    –> Processing Dependency: libmbim-glib.so.4()(64bit) for package: ModemManager-1.6.10-4.el7.x86_64
    –> Processing Dependency: libgudev-1.0.so.0()(64bit) for package: ModemManager-1.6.10-4.el7.x86_64
    —> Package NetworkManager-adsl.x86_64 1:1.18.8-2.el7_9 will be installed
    —> Package NetworkManager-bluetooth.x86_64 1:1.18.8-2.el7_9 will be installed

Step 5: Enable GUI
After successful installation of GNOME Desktop environment, you need to enable and make the graphical mode as default. This can be done by using systemctl set-default graphical command as shown below.

[root@cyberithub ~]#

在这里插入代码片
systemctl set-default graphical

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

Step 6: Reboot Server
Finally reboot the Server using reboot command to start the Graphical mode.

[root@cyberithub ~]# reboot

Step 7: Setup GNOME Desktop(GUI)
After reboot, you should be able to see the GNOME Desktop environment like below.

http://t.zoukankan.com/xingbo-p-6100554.html
https://www.cyberithub.com/how-to-install-gnome-desktop-gui-on-centos-7/

猜你喜欢

转载自blog.csdn.net/weixin_44497198/article/details/127612156