redhat mini os 安装图形界面


  1. Once your system is booted up and you’ve logged in, we can use a yum groupinstall command to install a GUI. To see the packages available, execute the following command.

    # yum group list
    Available environment groups:
       Minimal Install
       Infrastructure Server
       File and Print Server
       Basic Web Server
       Virtualization Host
       Server with GUI
       .....
  2. Next, let’s install the Server with GUI package with the command below. This will begin to install all the necessary packages for the GNOME desktop environment.

    # yum groupinstall "Server with GUI"
  3. Just because gnome desktop environment is a default GUI on RHEL 7 and 8 linux system the above command will install gnome. Alternatively, you can run the below command to only install core GNOME packages:

    # yum groupinstall 'X Window System' 'GNOME'
  4. Once installation has finished, we can make GNOME start every time the system boots up by changing the default systemd target to use a graphical interface.

    # systemctl set-default graphical.target
  5. Finally, reboot the system for all changes to take effect. When Red Hat finishes loading back up, you should be welcomed by the GNOME login screen. If you only have a root user account, you’ll be prompted to create a new regular user when GNOME first loads.

    # reboot

    Depending on your previous installations, you may need to accept the Red Hat License after you reboot your system.


上一篇: