RHEL7安装图形化

很多时候我们在安装OS的时候可能默认选择的最小化安装(Minimal Install),是没有图形化界面的。后面又想安装GUI图形化。在rhel7 平台上可以通过如下命令实现图形化安装。

查看当前可用的安装组

[root@361way mnt]# yum group list
Available environment groups:
   Minimal Install
   Infrastructure Server
   File and Print Server
   Basic Web Server
   Virtualization Host
   Server with GUI
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

安装图形化界面

[root@361way mnt]#yum -y groupinstall "Server with GUI"
...
Complete!

查看已经安装详情

[root@361way mnt]# show-installed
WARNING: The following groups contain packages not found in the repositories:
XXX base
        yum-plugin-security
XXX core
        ql2100-firmware
        ql23xx-firmware
        ql2200-firmware
        bfa-firmware
XXX gnome-desktop
        unoconv
        polkit-gnome
        gvfs-obexftp
@base
        -yum-plugin-security
@compat-libraries
@core
        -bfa-firmware
        -ql2100-firmware
        -ql2200-firmware
        -ql23xx-firmware
@development
@dial-up
@fonts
@gnome-desktop
        -gvfs-obexftp
        -polkit-gnome
        -unoconv
@guest-agents
@guest-desktop-agents
@input-methods
@internet-browser
@multimedia
@print-client
@x11
# Others
grub2
# 1255 package names, 246 leaves
# 14 groups, 3 leftovers, 8 excludes
# 29 lines

show-installed是一个用python写的命令,该命令会去调用yum查看当前已安装的软件组和软件包。

启用图形界面并设置默认启动

[root@361way mnt]# startx
[root@361way mnt]#systemctl get-default
multi-user.target
[root@361way mnt]#systemctl set-default graphical.target
rm '/etc/systemd/system/default.target'
ln -s '/usr/lib/systemd/system/graphical.target' '/etc/systemd/system/default.target'
[root@361way mnt]#systemctl get-default
graphical.target
[root@361way mnt]#reboot




本站的发展离不开您的资助,金额随意,欢迎来赏!

You can donate through PayPal.
My paypal id: itybku@139.com
Paypal page: https://www.paypal.me/361way

分类: Linux/unix/mac 标签:
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.