How to Enable GUI in LINUX 7 Inside Oracle VM

February 4, 2021

How to Enable GUI in LINUX 7 Inside Oracle VM

In this article, we are going to demonstrate how to enable/install GUI mode in LINUX 7.9 in side Oracle VM. This situation occurs when we don’t select the correct available option while installation for GUI/missing require packages. So when we start the server, we get the below text mode screen on the console instead of GUI which is similar looks to the putty terminal.

Follow below step by step to achieve enable GUI.

1. Update requires packages, execute the below command which will update all required packages to the latest along with the latest Linux from ULN.

[root@DBsGuruN1 ~]# yum update
Loaded plugins: langpacks, ulninfo
ol7_UEKR6                                                                                                                                                                              | 2.5 kB  00:00:00
ol7_latest                                                                                                                                                                             | 2.7 kB  00:00:00
(1/5): ol7_UEKR6/x86_64/updateinfo                                                                                                                                                     |  95 kB  00:00:00
(2/5): ol7_latest/x86_64/group                                                                                                                                                         | 660 kB  00:00:00
(3/5): ol7_latest/x86_64/updateinfo                                                                                                                                                    | 3.1 MB  00:00:02
(4/5): ol7_UEKR6/x86_64/primary_db                                                                                                                                                     |  10 MB  00:00:04
(5/5): ol7_latest/x86_64/primary_db                                                                                                                                                    |  32 MB  00:00:07
Resolving Dependencies
--> Running transaction check
---> Package 389-ds-base.x86_64 0: will be updated
---> Package 389-ds-base.x86_64 0: will be an update
---> Package 389-ds-base-libs.x86_64 0: will be updated
---> Package 389-ds-base-libs.x86_64 0: will be an update
--------------------Trimmed Data--------------------
---> Package xfsprogs.x86_64 0:4.5.0-22.0.1.el7 will be updated
---> Package xfsprogs.x86_64 0:5.4.0-1.0.1.el7 will be an update
--> Running transaction check
---> Package libzstd.x86_64 0:1.4.4-1.el7 will be installed
ol7_UEKR6/x86_64/filelists_db                                                                                                                                                          | 5.0 MB  00:00:00
ol7_latest/x86_64/filelists_db                                                                                                                                                         |  17 MB  00:00:03
--> Finished Dependency Resolution

Dependencies Resolved

 Package                                                      Arch                                 Version                                                     Repository                                Size
 kernel                                                       x86_64                               3.10.0-1160.11.1.el7                                        ol7_latest                                50 M
 kernel-devel                                                 x86_64                               3.10.0-1160.11.1.el7                                        ol7_latest                                18 M
 kernel-uek                                                   x86_64                               5.4.17-2036.102.0.2.el7uek                                  ol7_UEKR6                                 59 M
 kernel-uek-devel                                             x86_64                               5.4.17-2036.102.0.2.el7uek                                  ol7_UEKR6                                 16 M
 389-ds-base                                                  x86_64                                                                 ol7_latest                               1.7 M
 389-ds-base-libs                                             x86_64                                                                 ol7_latest                               714 k
---------------------Trimmed Data--------------------
     x86_64                               2:7.4.629-8.0.1.el7_9                                       ol7_latest                               1.1 M
 vim-filesystem                                               x86_64                               2:7.4.629-8.0.1.el7_9                                       ol7_latest                                11 k
 vim-minimal                                                  x86_64                               2:7.4.629-8.0.1.el7_9                                       ol7_latest                               443 k
 xfsprogs                                                     x86_64                               5.4.0-1.0.1.el7                                             ol7_UEKR6                                1.0 M
Installing for dependencies:
 libzstd                                                      x86_64                               1.4.4-1.el7                                                 ol7_UEKR6                                259 k

Transaction Summary
Install    4 Packages (+1 Dependent package)
Upgrade  159 Packages

Total download size: 349 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
warning: /var/cache/yum/x86_64/7Server/ol7_latest/packages/389-ds-base-libs- Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Public key for 389-ds-base-libs- is not installed
(1/164): 389-ds-base-libs-                                                                                                                                                               | 714 kB  00:00:00
(2/164): 389-ds-base-                                                                                                                                                                    | 1.7 MB  00:00:00
(3/164): NetworkManager-config-server-1.18.8-2.el7_9.noarch.rpm                                                                                                                                                     | 151 kB  00:00:00
---------------------Trimmed Data--------------------                                                                                                                                                                | 5.9 MB  00:00:01
(161/164): vim-filesystem-7.4.629-8.0.1.el7_9.x86_64.rpm                                                                                                                                                            |  11 kB  00:00:00
(162/164): vim-minimal-7.4.629-8.0.1.el7_9.x86_64.rpm                                                                                                                                                               | 443 kB  00:00:00
(163/164): xfsprogs-5.4.0-1.0.1.el7.x86_64.rpm                                                                                                                                                                      | 1.0 MB  00:00:00
(164/164): vim-enhanced-7.4.629-8.0.1.el7_9.x86_64.rpm                                                                                                                                                              | 1.1 MB  00:00:01
Total                                                                                                                                                                                                      5.3 MB/s | 349 MB  00:01:05
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Importing GPG key 0xEC551F03:
 Userid     : "Oracle OSS group (Open Source Software group) <[email protected]>"
 Fingerprint: 4214 4123 fecf c55b 9086 313d 72f9 7b74 ec55 1f03
 Package    : 7:oraclelinux-release-7.9-1.0.9.el7.x86_64 (@anaconda/7.9)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : systemd-libs-219-78.0.1.el7_9.2.x86_64                                                                                                                                                                                1/323
  Updating   : libcom_err-1.45.4-3.0.5.el7.x86_64                                                                                                                                                                                    2/323
  Updating   : 1:openssl-libs-1.0.2k-21.el7_9.x86_64                                                                                                                                                                                 3/323
  Updating   : coreutils-8.22-24.0.1.el7_9.2.x86_64                                                                                                                                                                                  4/323
---------------------Trimmed Data--------------------                                                                                                                                                                     132/323
  Updating   : 1:NetworkManager-team-1.18.8-2.el7_9.x86_64                                                                                                                                                                         133/323
  Updating   : samba-client-4.10.16-9.el7_9.x86_64                                                                                                                                                                                 134/323
  Installing : kernel-3.10.0-1160.11.1.el7.x86_64                                                                                                                                                                                  135/323
  Installing : kernel-uek-5.4.17-2036.102.0.2.el7uek.x86_64                                                                                                                                                                        136/323
---------------------Trimmed Data--------------------                                                                                                                                                             319/323
  Verifying  : 1:grub2-pc-modules-2.02-                                                                                                                                                                         320/323
  Verifying  : httpd-2.4.6-95.0.1.el7.x86_64                                                                                                                                                                                       321/323
  Verifying  : 1:NetworkManager-config-server-1.18.8-1.el7.noarch                                                                                                                                                                  322/323
  Verifying  : 32:bind-license-9.11.4-26.P2.el7.noarch                                                                                                                                                                             323/323

  kernel.x86_64 0:3.10.0-1160.11.1.el7              kernel-devel.x86_64 0:3.10.0-1160.11.1.el7              kernel-uek.x86_64 0:5.4.17-2036.102.0.2.el7uek              kernel-uek-devel.x86_64 0:5.4.17-2036.102.0.2.el7uek

Dependency Installed:
  libzstd.x86_64 0:1.4.4-1.el7

  389-ds-base.x86_64 0:                                         389-ds-base-libs.x86_64 0:                                        NetworkManager.x86_64 1:1.18.8-2.el7_9
  NetworkManager-config-server.noarch 1:1.18.8-2.el7_9                          NetworkManager-libnm.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                                    autofs.x86_64 1:5.0.7-116.0.1.el7_9                                               bind.x86_64 32:9.11.4-26.P2.el7_9.3
---------------------Trimmed Data--------------------  
  tomcat-el-2.2-api.noarch 0:7.0.76-16.el7_9                                    tomcat-jsp-2.2-api.noarch 0:7.0.76-16.el7_9                                       tomcat-lib.noarch 0:7.0.76-16.el7_9
  tomcat-servlet-3.0-api.noarch 0:7.0.76-16.el7_9                               tuned.noarch 0:2.11.0-10.0.3.el7                                                  tzdata.noarch 0:2021a-1.el7
  tzdata-java.noarch 0:2021a-1.el7                                              vim-common.x86_64 2:7.4.629-8.0.1.el7_9                                           vim-enhanced.x86_64 2:7.4.629-8.0.1.el7_9
  vim-filesystem.x86_64 2:7.4.629-8.0.1.el7_9                                   vim-minimal.x86_64 2:7.4.629-8.0.1.el7_9                                          xfsprogs.x86_64 0:5.4.0-1.0.1.el7


2. Install GUI packages to change text mode to GUI mode.

[root@DBsGuruN1 ~]# yum groupinstall "Server with GUI"
Loaded plugins: langpacks, ulninfo
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Package 1:NetworkManager-config-server-1.18.8-2.el7_9.noarch already installed and latest version
Warning: Group core does not have any packages to install.
Warning: Group guest-agents 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.
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
---------------------Trimmed Data-------------------- 
--> Running transaction check
---> Package hyphen-en.noarch 0:2.8.6-5.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package                                                                       Arch                                     Version                                                         Repository                                    Size
Installing for group install "Desktop Debugging and Performance Tools":
 abrt-desktop                                                                  x86_64                                   2.1.11-60.0.1.el7                                               ol7_latest                                    88 k
 crash                                                                         x86_64                                   7.2.7-1.0.3.el7                                                 ol7_latest                                   2.7 M
 libreport-gtk                                                                 x86_64                                   2.1.11-53.0.1.el7                                               ol7_latest                                   101 k
Installing for group install "Dial-up Networking Support":
 ModemManager                                                                  x86_64                                   1.6.10-4.el7                                                    ol7_latest                                   737 k
---------------------Trimmed Data--------------------                          x86_64                                   7.7-14.el7                                                      ol7_latest                                   102 k
 yelp-libs                                                                     x86_64                                   2:3.28.1-1.el7                                                  ol7_latest                                   101 k
 yelp-xsl                                                                      noarch                                   3.28.0-1.el7                                                    ol7_latest                                   203 k
 zenity                                                                        x86_64                                   3.28.1-1.el7                                                    ol7_latest                                   4.0 M

Transaction Summary
Install  193 Packages (+509 Dependent packages)

Total download size: 589 M
Installed size: 1.8 G
Is this ok [y/d/N]: y
Downloading packages:
(1/702): ModemManager-glib-1.6.10-4.el7.x86_64.rpm                                                                                                                                                                  | 232 kB  00:00:00
(2/702): NetworkManager-adsl-1.18.8-2.el7_9.x86_64.rpm                                                                                                                                                              | 162 kB  00:00:00
---------------------Trimmed Data--------------------                                                                                                                                                              | 178 kB  00:00:01
(702/702): zenity-3.28.1-1.el7.x86_64.rpm                                                                                                                                                                           | 4.0 MB  00:00:00
Total                                                                                                                                                                                                      3.0 MB/s | 589 MB  00:03:15
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : gstreamer1-1.10.4-2.el7.x86_64                                                                                                                                                                                        1/702
  Installing : libsecret-0.18.6-1.el7.x86_64                                                                                                                                                                                         2/702
---------------------Trimmed Data--------------------                                                                                                                                                                               700/702
  Verifying  : libnice-0.1.3-4.el7.x86_64                                                                                                                                                                                          701/702
  Verifying  : 1:gnome-system-log-3.9.90-3.0.1.el7.x86_64                                                                                                                                                                          702/702

  ModemManager.x86_64 0:1.6.10-4.el7                                              NetworkManager-adsl.x86_64 1:1.18.8-2.el7_9                             NetworkManager-libreswan-gnome.x86_64 0:1.2.4-2.el7
  NetworkManager-ppp.x86_64 1:1.18.8-2.el7_9                                      PackageKit-command-not-found.x86_64 0:1.1.10-2.0.1.el7                  PackageKit-gstreamer-plugin.x86_64 0:1.1.10-2.0.1.el7
---------------------Trimmed Data--------------------                                            xorg-x11-xinit.x86_64 0:1.3.4-2.el7                                     xvattr.x86_64 0:1.3-27.el7
  yelp.x86_64 2:3.28.1-1.el7

Dependency Installed:
  ModemManager-glib.x86_64 0:1.6.10-4.el7                                        NetworkManager-glib.x86_64 1:1.18.8-2.el7_9                                  NetworkManager-libreswan.x86_64 0:1.2.4-2.el7
  NetworkManager-wifi.x86_64 1:1.18.8-2.el7_9                                    ORBit2.x86_64 0:2.14.19-13.el7                                               PackageKit.x86_64 0:1.1.10-2.0.1.el7
---------------------Trimmed Data-------------------- 
  xorg-x11-server-utils.x86_64 0:7.7-20.el7                                      xorg-x11-xkb-utils.x86_64 0:7.7-14.el7                                       yelp-libs.x86_64 2:3.28.1-1.el7
  yelp-xsl.noarch 0:3.28.0-1.el7                                                 zenity.x86_64 0:3.28.1-1.el7


3. Execute the below command to enable GUI on the next startup.

[root@DBsGuruN1 ~]# ln -sf /lib/systemd/system/ /etc/systemd/system/
[root@DBsGuruN1 ~]#

4. Reboot the machine to effect GUI.

[root@DBsGuruN1 ~]# reboot

Congratulations…..after restarting the machine, we can see the system booted in GUI mode.


This document is only for learning purpose and always validate in the LAB environment first before applying in the LIVE environment.

Hope so you like this article

Please share your valuable feedback/comments/subscribe and follow us below and don’t forget to click on the bell icon to get the latest update. Click here to know more about our pursuit.

Related Articles


How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

<strong>Hello and welcome to DBsGuru,</strong>DBsGuru is a group of experienced DBA professionals and serves databases and their related community by providing technical blogs, projects, training. Technical blogs are the source of vast information not about databases but its related product like middleware, PL/SQL, replication methodology, and so on.Thanks for the visits!<strong>Share Learn Grow!</strong>

Leave a Reply

Your email address will not be published. Required fields are marked *