How to Install GUI (Gnome 3) Using CD/DVD on RHEL/CentOS 7

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

32 Responses

  1. Lee Chang Hwa says:

    great!!!

  2. Optimxr says:

    Hi Ravi, I had no luck with the repo as [centos7] but when I changed it to[centos7dvd] the packages downloaded but I ran into another problem with the public key file. Here is the final output:
    ================================================================================
    Transaction Summary: Install 288 Packages (+705 Dependent packages)
    Total Download size: 721 M
    Installed size: 2.1 G
    Is this ok [y/d/N]: y
    Downloading Packages:
    # warning: /mnt/cdrom/Packages/GConf2-3.2.6-8.e17.x86_64.rpm: Header V3 RSA/SHA256
    Signature, key ID f4a80eb5: NOKEY
    Public Key for GConf2-3.2.6-8.e17.x86_64.rpm is not installed
    —————————————————————————————————————-
    Total 7.3 MB/s | 721 MB 01:38
    Retrieving key from file: ///etc/pki/rpm-gpg/RPM-GPG-KEY-centOS-7
    GPG key retrieval failed: [Errno 14] curl#37 – “Couldn’t open file /etc/pki/rpm-gpg/RPM-GPG-KEY-centOS-7”
    Do have any suggestions I can try?

    • Ravi Saive says:

      @Optimxr,

      Please use following command to import GPG key.

      # rpmkeys --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centOS-7
      
      • Optimxr says:

        Thanks Ravi, I found the problem, I had a lower case “c” for the PGP= statement instead of “CentOS-7”

        I made that change and then ran:

        # yum –disablerepo=* --enablerepo=centos7dvd groupinstall “GNOME Desktop”
        

        and all 993 packages were installed & verified. I then unmounted the cdrom by typing:

        # umount /mnt/cdrom
        

        but the message said nothing mounted.
        I typed in the GUI target switch as follows:

        # ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target
        

        There were no errors, just went to the root prompt again. When I rebooted, it went to the normal Centos 7 command line login.

        I logged in as root and typed

        # init 5
        

        and it then started the GUI.

        I repeated this process once more and now it boots to the GUI.

        Happy Days!!! Thanks for all you good instructions and patience.

        • Ravi Saive says:

          @Optimxr,

          Yeah, that’s great to know, you finally install GUI i.e Gnome Desktop on CentOS 7. I hope you learned few things today..

  3. Optimxr says:

    When clearing the yum I get this message;
    [root@localhost~]# yum clear all
    loaded plugins: fastestmirror
    No such command: clear. please use /bin/yum –help

    I am not sure what I need to do with –help menu, any suggestions?

    • Ravi Saive says:

      @Optimxr,

      It should be yum clean all, if you wanted to clear all system repository cache, type:

      # yum clean all
      
      • Optimxr says:

        Thanks Ravi for responding so quickly. A silly mistake on my part. It cleans successfully now.
        However, when I do the repolist I do not see centos7 in red and I see enabled: 0 . Could this be due to no network connection( it did not appear when I did the core installation)?

  4. wathsala says:

    I did every thing right. it said an successful installation. also run the last command to boot with GUI. but it went to usual centos 7 core mode

    • Ravi Saive says:

      @Wathsala,

      Have you executed the following command without any errors?

      # ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target
      

      What you will getting after reboot? is the server booted into GUI mode or not? or it remains in same server mode? if yes, try init 5 command to switch to GUI mode.

      # init 5
      
  5. FherPie says:

    Please I have this error:
    after to type: mount /dev/cdrom /mnt/cdrom
    mount /dev/sr0 is write-protected. mounting read-only
    sorry but What is means??
    Thanks a lot

    • Ravi Saive says:

      @Fherpie,

      That means your CD-Rom is mounted as read-only mode, you can’t write to this drive, but you can copy/view the content of cdrom.

  6. Majid says:

    Thank you,it is really helpful.

  7. Kumar says:

    For anyone tring this out, i recommend naming the repo as centos7dvd for the file, the bracket and name. Should get you around the repodata error on CentOS 7

  8. diego Bustamante says:

    I have Problem i do everything, but when i do the install i have these message: ” Cannot find a valid base url for repo: base/y/x86_64

    • Ravi Saive says:

      @Diego,
      Try adding following DNS nameservers entries to /etc/resolv.conf file and try again…

      nameserver 8.8.8.8
      nameserver 8.8.4.4
      
  9. Volodymyr Krupach says:

    Thank you!!!

Got something to say? Join the discussion.

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

Join Over 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?