RHEL7 單獨安裝圖形 X11

執行以下命令

[root@LiuZhen mnt]# yum group list

Loaded plugins: langpacks, product-id, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

There is no installed groups file.

Maybe run: yum groups mark convert (see man yum)

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@LiuZhen mnt]#

 

 列出的組包中 Server with GUI 就是安裝圖形所需要的,繼續執行以下命令

[root@LiuZhen mnt]# yum -y groupinstall "Server with GUI"

Loaded plugins: langpacks, product-id, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

There is no installed groups file.

Maybe run: yum groups mark convert (see man yum)

Package 1:NetworkManager-config-server-0.9.9.1-12.git20140326.4dba720.el7.x86_64 already installed and latest version

Warning: Group core does not have any packages to install.

Warning: Group gnome-desktop does not have any packages to install.

Warning: Group guest-agents does not have any packages to install.

Package gtk2-immodule-xim-2.24.22-5.el7.x86_64 already installed and latest version

Package imsettings-gsettings-1.6.3-9.el7.x86_64 already installed and latest version

Package ibus-gtk3-1.5.3-11.el7.x86_64 already installed and latest version

Package ibus-gtk2-1.5.3-11.el7.x86_64 already installed and latest version

Package gtk3-immodule-xim-3.8.8-5.el7.x86_64 already installed and latest version

Warning: Group input-methods does not have any packages to install.

Group input-methods does have 2 conditional packages, which may get installed.

Warning: Group guest-desktop-agents does not have any packages to install.

Warning: Group fonts does not have any packages to install.

Warning: Group print-client does not have any packages to install.

Warning: Group desktop-debugging does not have any packages to install.

Warning: Group dial-up does not have any packages to install.

Warning: Group base does not have any packages to install.

Group base does have 1 conditional packages, which may get installed.

Package gstreamer1-plugins-bad-free-1.0.7-4.el7.x86_64 already installed and latest version

Package gstreamer1-plugins-good-1.0.7-5.el7.x86_64 already installed and latest version

Warning: Group multimedia does not have any packages to install.

Warning: Group internet-browser does not have any packages to install.

Warning: Group x11 does not have any packages to install.

Maybe run: yum groups mark install (see man yum)

No packages in any requested group available to install or update

 

 

[root@LiuZhen mnt]# show-installed

WARNING: The following packages are installed but not in the repository:

cups-pdf

 

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

@core

-bfa-firmware

-ql2100-firmware

-ql2200-firmware

-ql23xx-firmware

@dial-up

@fonts

@gnome-desktop

-gvfs-obexftp

-polkit-gnome

-unoconv

@guest-agents

@guest-desktop-agents

@input-methods

@internet-browser

@multimedia

@print-client

@x11

# Others

Red_Hat_Enterprise_Linux-Release_Notes-7-zh-CN

Red_Hat_Enterprise_Linux-Release_Notes-7-zh-TW

clucene-core

cups-pdf

grub2

lftp

samba-client

screen

# 1196 package names, 228 leaves

# 12 groups, 8 leftovers, 8 excludes

# 32 lines

安裝報錯:Transaction check error:
  file /usr/lib/systemd/system/blk-availability.service from install of device-mapper-7:1.02.107-5.el7_2.1.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
  file /usr/sbin/blkdeactivate from install of device-mapper-7:1.02.107-5.el7_2.1.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
  file /usr/share/man/man8/blkdeactivate.8.gz from install of device-mapper-7:1.02.107-5.el7_2.1.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64

Error Summary

運行命令:yum install libdevmapper* -y

再執行yum install docker

可以執行startx看下效果。


CentOS 7 版本如何實現開機以圖形界面啓動?

新版本的 CentOS 7 和之前版本有些不同. 以開機運行級別來舉例, 我們之前對/etc/inittab 配置文件的修改,已經成爲歷史, id:5:initdefault: 的配置已經不生效了XD。

新版本的Cent OS 裏,已經做了調整. /etc/inittab 文件的第7行已經做出了說明: 系統已經使用'targets' 取代了運行級別的概念. 系統有兩種默認的'targets': 多用戶.target 對應之前版本的3 運行級別; 而圖形.target 對應之前的5運行級別.

文件的12~14行指導你如何調整開機運行級別:直接複製下面命令即可。

ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target

即可配置系統開機即使用圖形模式.


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章