OS Linux[centos,RHEL]/Trouble shooting

CentOS7/8 minimal 설치되어있는 환경 -> GUI로 설치후 변경

infra 2021. 10. 24. 21:26

최초 minimal 설치시에 GNOME, X windows (GUI)로 전환하는 방법

 

  명령어 설명
RHEL/CentOS7
yum grouplist

yum grouplist 로 확인
RHEL/CentOS8   Server with GUI 가능
dnf grouplist 로 확인 후 패키지 그룹 리스트 확인후 설치

yum

 

RHEL/CentOS 계열 기준 7.4

 

minimal 설치되어있는 상태

 

[root@centos7 system]# runlevel
N 3
[root@centos7 system]# systemctl get-default
graphical.target
[root@centos7 system]# systemctl set-default
Invalid number of arguments.
[root@centos7 system]# systemctl set-default multi-user.target
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target.
[root@centos7 system]# systemctl get-default
multi-user.target

 


[root@centos7 system]# yum groups in
info     install
yum groups intall "X Window System"'    // =yum groupinstall "X windows system" 도 가능함

더보기

 

Installed:
  glx-utils.x86_64 0:8.3.0-10.el7
  initial-setup-gui.x86_64 0:0.3.9.45-1.el7.centos
  mesa-dri-drivers.x86_64 0:18.3.4-12.el7_9
  plymouth-system-theme.x86_64 0:0.8.9-0.34.20140113.el7.centos
  spice-vdagent.x86_64 0:0.14.0-18.el7
  xorg-x11-drivers.x86_64 0:7.7-6.el7
  xorg-x11-server-Xorg.x86_64 0:1.20.4-16.el7_9
  xorg-x11-utils.x86_64 0:7.5-23.el7
  xorg-x11-xauth.x86_64 1:1.0.9-1.el7
  xorg-x11-xinit.x86_64 0:1.3.4-2.el7
  xvattr.x86_64 0:1.3-27.el7

Dependency Installed:
  GConf2.x86_64 0:3.2.6-8.el7
  ModemManager-glib.x86_64 0:1.6.10-4.el7
  NetworkManager-glib.x86_64 1:1.18.8-2.el7_9
  adwaita-cursor-theme.noarch 0:3.28.0-1.el7
  adwaita-icon-theme.noarch 0:3.28.0-1.el7
  anaconda-core.x86_64 0:21.48.22.159-1.el7.centos
  anaconda-gui.x86_64 0:21.48.22.159-1.el7.centos
  anaconda-tui.x86_64 0:21.48.22.159-1.el7.centos
  anaconda-widgets.x86_64 0:21.48.22.159-1.el7.centos
  at-spi2-atk.x86_64 0:2.26.2-1.el7
  at-spi2-core.x86_64 0:2.28.0-1.el7
  atk.x86_64 0:2.28.1-2.el7
  augeas-libs.x86_64 0:1.4.0-10.el7
  avahi-glib.x86_64 0:0.6.31-20.el7
  avahi-libs.x86_64 0:0.6.31-20.el7
  cairo.x86_64 0:1.15.12-4.el7
  cairo-gobject.x86_64 0:1.15.12-4.el7
  cdparanoia-libs.x86_64 0:10.2-17.el7
  chrony.x86_64 0:3.4-1.el7
  colord-libs.x86_64 0:1.3.4-2.el7
  control-center-filesystem.x86_64 1:3.28.1-8.el7_9
  createrepo.noarch 0:0.9.9-28.el7
  cryptsetup.x86_64 0:2.0.3-6.el7
  cryptsetup-python.x86_64 0:2.0.3-6.el7
  cups-libs.x86_64 1:1.6.3-51.el7
  daxctl-libs.x86_64 0:65-5.el7
  dconf.x86_64 0:0.28.0-4.el7
  dejavu-fonts-common.noarch 0:2.33-6.el7
  dejavu-sans-fonts.noarch 0:2.33-6.el7
  deltarpm.x86_64 0:3.6-3.el7
  device-mapper-multipath.x86_64 0:0.4.9-135.el7_9
  device-mapper-multipath-libs.x86_64 0:0.4.9-135.el7_9
  dmraid.x86_64 0:1.0.0.rc16-28.el7
  dmraid-events.x86_64 0:1.0.0.rc16-28.el7
  enchant.x86_64 1:1.6.0-8.el7
  fcoe-utils.x86_64 0:1.0.32-2.el7_6
  flac-libs.x86_64 0:1.3.0-5.el7_1
  fontconfig.x86_64 0:2.13.0-4.3.el7
  fontpackages-filesystem.noarch 0:1.44-8.el7
  fribidi.x86_64 0:1.0.2-1.el7_7.1
  fros.noarch 0:1.0-5.el7
  gcr.x86_64 0:3.28.0-1.el7
  gdk-pixbuf2.x86_64 0:2.36.12-3.el7
  geoclue2.x86_64 0:2.4.8-1.el7
  glade-libs.x86_64 0:3.22.1-1.el7
  glib-networking.x86_64 0:2.56.1-1.el7
  gnome-icon-theme.noarch 0:3.12.0-1.el7
  gnutls.x86_64 0:3.3.29-9.el7_6
  graphite2.x86_64 0:1.3.10-1.el7_3
  gsettings-desktop-schemas.x86_64 0:3.28.0-3.el7
  gsm.x86_64 0:1.0.13-11.el7
  gstreamer1.x86_64 0:1.10.4-2.el7
  gstreamer1-plugins-bad-free.x86_64 0:1.10.4-3.el7
  gstreamer1-plugins-base.x86_64 0:1.10.4-2.el7
  gtk-update-icon-cache.x86_64 0:3.22.30-6.el7
  gtk2.x86_64 0:2.24.31-1.el7
  gtk3.x86_64 0:3.22.30-6.el7
  harfbuzz.x86_64 0:1.7.5-2.el7
  harfbuzz-icu.x86_64 0:1.7.5-2.el7
  hicolor-icon-theme.noarch 0:0.12-7.el7
  hunspell.x86_64 0:1.3.2-16.el7
  hunspell-en-US.noarch 0:0.20121024-6.el7
  hyphen.x86_64 0:2.8.6-5.el7
  initial-setup.x86_64 0:0.3.9.45-1.el7.centos
  iscsi-initiator-utils.x86_64 0:6.2.0.874-21.el7_9
  iscsi-initiator-utils-iscsiuio.x86_64 0:6.2.0.874-21.el7_9
  iso-codes.noarch 0:3.46-2.el7
  isomd5sum.x86_64 1:1.0.10-5.el7
  jasper-libs.x86_64 0:1.900.1-33.el7
  jbigkit-libs.x86_64 0:2.0-11.el7
  json-c.x86_64 0:0.11-4.el7_0
  json-glib.x86_64 0:1.4.2-2.el7
  keybinder3.x86_64 0:0.3.0-1.el7
  langtable.noarch 0:0.0.31-4.el7
  langtable-data.noarch 0:0.0.31-4.el7
  langtable-python.noarch 0:0.0.31-4.el7
  lcms2.x86_64 0:2.6-3.el7
  libICE.x86_64 0:1.0.9-9.el7
  libSM.x86_64 0:1.2.2-2.el7
  libX11.x86_64 0:1.6.7-4.el7_9
  libX11-common.noarch 0:1.6.7-4.el7_9
  libXau.x86_64 0:1.0.8-2.1.el7
  libXcomposite.x86_64 0:0.4.4-4.1.el7
  libXcursor.x86_64 0:1.1.15-1.el7
  libXdamage.x86_64 0:1.1.4-4.1.el7
  libXdmcp.x86_64 0:1.1.2-6.el7
  libXext.x86_64 0:1.3.3-3.el7
  libXfixes.x86_64 0:5.0.3-1.el7
  libXfont2.x86_64 0:2.0.3-1.el7
  libXft.x86_64 0:2.3.2-2.el7
  libXi.x86_64 0:1.7.9-1.el7
  libXinerama.x86_64 0:1.1.3-2.1.el7
  libXmu.x86_64 0:1.1.2-2.el7
  libXrandr.x86_64 0:1.5.1-2.el7
  libXrender.x86_64 0:0.9.10-1.el7
  libXt.x86_64 0:1.1.5-3.el7
  libXtst.x86_64 0:1.2.3-1.el7
  libXv.x86_64 0:1.0.11-1.el7
  libXvMC.x86_64 0:1.0.10-1.el7
  libXxf86dga.x86_64 0:1.1.4-2.1.el7
  libXxf86misc.x86_64 0:1.0.3-7.1.el7
  libXxf86vm.x86_64 0:1.1.4-1.el7
  libarchive.x86_64 0:3.1.2-14.el7_7
  libasyncns.x86_64 0:0.8-7.el7
  libblockdev.x86_64 0:2.18-5.el7
  libblockdev-nvdimm.x86_64 0:2.18-5.el7
  libblockdev-utils.x86_64 0:2.18-5.el7
  libcanberra.x86_64 0:0.30-9.el7
  libcanberra-gtk2.x86_64 0:0.30-9.el7
  libcanberra-gtk3.x86_64 0:0.30-9.el7
  libconfig.x86_64 0:1.4.9-5.el7
  libdmx.x86_64 0:1.1.3-3.el7
  libdvdnav.x86_64 0:5.0.3-1.el7
  libdvdread.x86_64 0:5.0.3-3.el7
  libepoxy.x86_64 0:1.5.2-1.el7
  libevdev.x86_64 0:1.5.6-1.el7
  libfontenc.x86_64 0:1.1.3-3.el7
  libglvnd.x86_64 1:1.0.1-0.8.git5baa1e5.el7
  libglvnd-egl.x86_64 1:1.0.1-0.8.git5baa1e5.el7
  libglvnd-gles.x86_64 1:1.0.1-0.8.git5baa1e5.el7
  libglvnd-glx.x86_64 1:1.0.1-0.8.git5baa1e5.el7
  libgnomekbd.x86_64 0:3.26.0-3.el7
  libgudev1.x86_64 0:219-78.el7_9.3
  libgusb.x86_64 0:0.2.9-1.el7
  libicu.x86_64 0:50.2-4.el7_7
  libjpeg-turbo.x86_64 0:1.2.90-8.el7
  libmodman.x86_64 0:2.0.1-8.el7
  libmpcdec.x86_64 0:1.2.6-12.el7
  libnma.x86_64 0:1.8.6-2.el7
  libnotify.x86_64 0:0.7.7-1.el7
  libogg.x86_64 2:1.3.0-7.el7
  libpng.x86_64 2:1.5.13-8.el7
  libproxy.x86_64 0:0.4.11-11.el7
  libreport.x86_64 0:2.1.11-53.el7.centos
  libreport-anaconda.x86_64 0:2.1.11-53.el7.centos
  libreport-cli.x86_64 0:2.1.11-53.el7.centos
  libreport-filesystem.x86_64 0:2.1.11-53.el7.centos
  libreport-gtk.x86_64 0:2.1.11-53.el7.centos
  libreport-plugin-bugzilla.x86_64 0:2.1.11-53.el7.centos
  libreport-plugin-reportuploader.x86_64 0:2.1.11-53.el7.centos
  libreport-plugin-rhtsupport.x86_64 0:2.1.11-53.el7.centos
  libreport-python.x86_64 0:2.1.11-53.el7.centos
  libreport-rhel-anaconda-bugzilla.x86_64 0:2.1.11-53.el7.centos
  libreport-web.x86_64 0:2.1.11-53.el7.centos
  librsvg2.x86_64 0:2.40.20-1.el7
  libseccomp.x86_64 0:2.3.1-4.el7
  libsecret.x86_64 0:0.18.6-1.el7
  libsndfile.x86_64 0:1.0.25-12.el7_9.1
  libsoup.x86_64 0:2.62.2-2.el7
  libsrtp.x86_64 0:1.4.4-11.20101004cvs.el7
  libtar.x86_64 0:1.2.11-29.el7
  libtdb.x86_64 0:1.3.18-1.el7
  libthai.x86_64 0:0.1.14-9.el7
  libtheora.x86_64 1:1.1.1-8.el7
  libtiff.x86_64 0:4.0.3-35.el7
  libtimezonemap.x86_64 0:0.4.4-1.el7
  libtool-ltdl.x86_64 0:2.4.2-22.el7_3
  libusbx.x86_64 0:1.0.21-1.el7
  libuser-python.x86_64 0:0.60-9.el7
  libvisual.x86_64 0:0.4.0-16.el7
  libvorbis.x86_64 1:1.3.3-8.el7.1
  libwayland-client.x86_64 0:1.15.0-1.el7
  libwayland-cursor.x86_64 0:1.15.0-1.el7
  libwayland-egl.x86_64 0:1.15.0-1.el7
  libwayland-server.x86_64 0:1.15.0-1.el7
  libwebp.x86_64 0:0.3.0-10.el7_9
  libxcb.x86_64 0:1.13-1.el7
  libxkbcommon.x86_64 0:0.7.1-3.el7
  libxkbfile.x86_64 0:1.0.9-3.el7
  libxklavier.x86_64 0:5.4-7.el7
  libxml2-python.x86_64 0:2.9.1-6.el7_9.6
  libxshmfence.x86_64 0:1.2-1.el7
  libxslt.x86_64 0:1.1.28-6.el7
  lldpad.x86_64 0:1.0.1-5.git036e314.el7
  llvm-private.x86_64 0:7.0.1-1.el7
  lsof.x86_64 0:4.87-6.el7
  lz4.x86_64 0:1.8.3-1.el7
  mdadm.x86_64 0:4.1-7.el7_9
  mesa-filesystem.x86_64 0:18.3.4-12.el7_9
  mesa-libEGL.x86_64 0:18.3.4-12.el7_9
  mesa-libGL.x86_64 0:18.3.4-12.el7_9
  mesa-libgbm.x86_64 0:18.3.4-12.el7_9
  mesa-libglapi.x86_64 0:18.3.4-12.el7_9
  mesa-libxatracker.x86_64 0:18.3.4-12.el7_9
  metacity.x86_64 0:2.34.13-7.el7
  mobile-broadband-provider-info.noarch 0:1.20170310-1.el7
  mtdev.x86_64 0:1.1.5-5.el7
  ndctl.x86_64 0:65-5.el7
  ndctl-libs.x86_64 0:65-5.el7
  nettle.x86_64 0:2.7.1-9.el7_9
  nm-connection-editor.x86_64 0:1.8.6-2.el7
  oddjob.x86_64 0:0.31.5-4.el7
  oddjob-mkhomedir.x86_64 0:0.31.5-4.el7
  opus.x86_64 0:1.0.2-6.el7
  orc.x86_64 0:0.4.26-1.el7
  pango.x86_64 0:1.42.4-4.el7_7
  pixman.x86_64 0:0.34.0-1.el7
  plymouth-graphics-libs.x86_64 0:0.8.9-0.34.20140113.el7.centos
  plymouth-plugin-label.x86_64 0:0.8.9-0.34.20140113.el7.centos
  plymouth-plugin-two-step.x86_64 0:0.8.9-0.34.20140113.el7.centos
  plymouth-theme-charge.x86_64 0:0.8.9-0.34.20140113.el7.centos
  pulseaudio-libs.x86_64 0:10.0-6.el7_9
  pycairo.x86_64 0:1.8.10-8.el7
  pykickstart.noarch 0:1.99.66.22-1.el7
  pyparted.x86_64 1:3.9-15.el7
  python-IPy.noarch 0:0.75-6.el7
  python-backports.x86_64 0:1.0-8.el7
  python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7
  python-blivet.noarch 1:0.61.15.76-1.el7_9
  python-chardet.noarch 0:2.2.1-3.el7
  python-coverage.x86_64 0:3.6-0.5.b3.el7
  python-deltarpm.x86_64 0:3.6-3.el7
  python-di.noarch 0:0.3-2.el7
  python-gobject.x86_64 0:3.22.0-1.el7_4.1
  python-ipaddress.noarch 0:1.0.16-2.el7
  python-kitchen.noarch 0:1.1.1-5.el7
  python-meh.noarch 0:0.25.3-1.el7
  python-meh-gui.noarch 0:0.25.3-1.el7
  python-nss.x86_64 0:0.16.0-3.el7
  python-ntplib.noarch 0:0.3.2-1.el7
  python-pwquality.x86_64 0:1.2.3-5.el7
  python-pyblock.x86_64 0:0.53-6.el7
  python-setuptools.noarch 0:0.9.8-7.el7
  python-six.noarch 0:1.9.0-2.el7
  python2-blockdev.x86_64 0:2.18-5.el7
  python2-subprocess32.x86_64 0:3.2.6-14.el7
  pytz.noarch 0:2016.10-2.el7
  realmd.x86_64 0:0.16.1-12.el7_9.1
  rest.x86_64 0:0.8.1-2.el7
  rsync.x86_64 0:3.1.2-10.el7
  satyr.x86_64 0:0.13-15.el7
  sgpio.x86_64 0:1.2.0.10-13.el7
  sound-theme-freedesktop.noarch 0:0.8-3.el7
  soundtouch.x86_64 0:1.4.0-9.el7
  startup-notification.x86_64 0:0.12-8.el7
  tigervnc-license.noarch 0:1.8.0-22.el7
  tigervnc-server-minimal.x86_64 0:1.8.0-22.el7
  trousers.x86_64 0:0.3.14-2.el7
  usermode.x86_64 0:1.111-6.el7
  webkitgtk4.x86_64 0:2.28.2-2.el7
  webkitgtk4-jsc.x86_64 0:2.28.2-2.el7
  xcb-util.x86_64 0:0.4.0-2.el7
  xkeyboard-config.noarch 0:2.24-1.el7
  xml-common.noarch 0:0.6.3-39.el7
  xmlrpc-c.x86_64 0:1.32.5-1905.svn2451.el7
  xmlrpc-c-client.x86_64 0:1.32.5-1905.svn2451.el7
  xorg-x11-drv-ati.x86_64 0:19.0.1-3.el7_7
  xorg-x11-drv-dummy.x86_64 0:0.3.7-1.el7.1
  xorg-x11-drv-evdev.x86_64 0:2.10.6-1.el7
  xorg-x11-drv-fbdev.x86_64 0:0.5.0-1.el7
  xorg-x11-drv-intel.x86_64 0:2.99.917-28.20180530.el7
  xorg-x11-drv-nouveau.x86_64 1:1.0.15-1.el7
  xorg-x11-drv-qxl.x86_64 0:0.1.5-5.el7
  xorg-x11-drv-synaptics.x86_64 0:1.9.0-2.el7
  xorg-x11-drv-v4l.x86_64 0:0.2.0-49.el7
  xorg-x11-drv-vesa.x86_64 0:2.4.0-3.el7
  xorg-x11-drv-vmmouse.x86_64 0:13.1.0-1.el7.1
  xorg-x11-drv-vmware.x86_64 0:13.2.1-1.el7.1
  xorg-x11-drv-void.x86_64 0:1.4.1-2.el7.1
  xorg-x11-drv-wacom.x86_64 0:0.36.1-3.el7
  xorg-x11-server-common.x86_64 0:1.20.4-16.el7_9
  xorg-x11-server-utils.x86_64 0:7.7-20.el7
  xorg-x11-xkb-utils.x86_64 0:7.7-14.el7
  yelp.x86_64 2:3.28.1-1.el7
  yelp-libs.x86_64 2:3.28.1-1.el7
  yelp-xsl.noarch 0:3.28.0-1.el7
  yum-utils.noarch 0:1.1.31-54.el7_8
  zenity.x86_64 0:3.28.1-1.el7

Updated:
  NetworkManager-libnm.x86_64 1:1.18.8-2.el7_9

Dependency Updated:
  NetworkManager.x86_64 1:1.18.8-2.el7_9
  NetworkManager-team.x86_64 1:1.18.8-2.el7_9
  NetworkManager-tui.x86_64 1:1.18.8-2.el7_9
  NetworkManager-wifi.x86_64 1:1.18.8-2.el7_9
  cryptsetup-libs.x86_64 0:2.0.3-6.el7
  dbus.x86_64 1:1.10.24-15.el7
  dbus-libs.x86_64 1:1.10.24-15.el7
  freetype.x86_64 0:2.8-14.el7_9.1
  glib2.x86_64 0:2.56.1-9.el7_9
  kpartx.x86_64 0:0.4.9-135.el7_9
  libdrm.x86_64 0:2.4.97-2.el7
  libpwquality.x86_64 0:1.2.3-5.el7
  libuser.x86_64 0:0.60-9.el7
  libxml2.x86_64 0:2.9.1-6.el7_9.6
  plymouth.x86_64 0:0.8.9-0.34.20140113.el7.centos
  plymouth-core-libs.x86_64 0:0.8.9-0.34.20140113.el7.centos
  python-gobject-base.x86_64 0:3.22.0-1.el7_4.1
  systemd.x86_64 0:219-78.el7_9.3
  systemd-libs.x86_64 0:219-78.el7_9.3
  systemd-sysv.x86_64 0:219-78.el7_9.3

Complete!

 

설치를 321개의 각종 패키지 및 라이브러리 , 컴파일러 파일들을 설치완료 후 reboot을 해주어야 한다.

 

 

2)  rebooting없이 화면 전환 가능

 

조건 : 원래 minimal이 아닌 Server with GUI로 설치되어있을 경우에는 rebooting 없이 바로 GUI로 변경 가능하다

 

다시 GUI에서 minimal로 전환해보자

 

 

또 다시 전환해보자 리부팅 없이도 GUI -> TUI 로도 가능하며 TUI -> GUI로도 가능해진다.

init 5 대신 startx 명령어로 가능하다. x window 로 GUI화면으로 리부팅없이도 바로 전환 가능하다.