How to add Gnome to a CentOS 6 minimal install

I have been using the minimal iso (CentOS-6.0-x86_64-minimal.iso) to install CentOS 6. I wanted to add a GUI to my vm, but I could not find easy documentation showing how to add a GUI, or Gnome in this case, to a CentOS 6 minimal install. I was not looking for the smallest X windows install, I was just trying to get the Desktop to function like it would as if I installed from the full DVD.

There are a lot of results of how to do this, but things have been renamed in CentOS 6, so that made it more difficult to figure out. Also, there are “Short Names” and I am assuming they are called “Long Names” associated with a yum groupinstall, which added to my confusion.

To add Gnome/GUI to a minimal CentOS 6 install run (short name version):

yum groupinstall basic-desktop desktop-platform x11 fonts

And the “long name” version:

yum groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts"

Hope that helps someone or at least help me to remember.


Posted

in

by

Tags:

Comments

61 responses to “How to add Gnome to a CentOS 6 minimal install”

  1. Rajeev Avatar
    Rajeev

    I was looking for this and found this very helpful. Thank you.

  2. ZenZa Avatar

    Thanks, it helped a lot πŸ™‚

  3. Harsh Avatar
    Harsh

    Hope that helps someone or at least help me to remember.

    It helped me. Thank you for the notes!

  4. Lawrence Avatar
    Lawrence

    This is exactly what I was looking for.
    I forgot to check the X window when installing CentOS 6 from the ISO. Some posts said I should run: yum groupinstall “Desktop” “X Window System”. I did that, but I did not get any fonts after startx. Now I know I was missing something in the command.
    I wondered how to do the same using the ISO. Would you mind sharing that also? Thanks much!

  5. jbmurphy Avatar

    I am not sure how to do this with the ISO, I always just install from the minimal ISO, so I don’t ever have the X Windows bits on the ISO.
    Thanks for taking the time to comment!

  6. Jordan Eunson Avatar

    OMG, thank you so much, this was exactly what I was looking for.

  7. jbmurphy Avatar

    Glad I could be of assistance! Thanks for taking the time to comment.

  8. Moro Avatar
    Moro

    Thanks!!!

  9. Xmodulo Avatar

    I was trying to set up minimal X windows on CentOS, and your tips greatly helped. Thanks!

  10. jbmurphy Avatar

    Glad I could help! Thanks for taking the time to comment.

  11. rob Avatar
    rob

    very helpful, worked perfectly.

  12. Nirmal Pathak Avatar
    Nirmal Pathak

    You need to add following line in /etc/inittab file after installing Desktop Environment & Xorg packages.

    exec /etc/X11/prefdm -nodaemon

  13. Nicolas M. Avatar
    Nicolas M.

    Nirmal Pathak > Acually just changing the default runlevel from 3 to 5 in the inittab should suffice.

  14. Nirmal Pathak Avatar
    Nirmal Pathak

    Once the minimal installation is done & then you are installing the Deskstop Packages changing Default runlevel from 3 to 5 does not start Xorg for GUI hence we need to add “exec /etc/X11/prefdm -nodaemon” in /etc/inittab file. πŸ™‚

  15. […] Just to clarify, you selected "Desktop" during the install and have no GUI? You could try this: http://www.jbmurphy.com/2011/12/01/h…nimal-install/ […]

  16. Asif N Avatar

    Thanks!! Great help!

  17. tons872 Avatar
    tons872

    thanks a lot.!!!

  18. J.D. Avatar
    J.D.

    Thanks, this is exactly what I was looking for!

  19. jbmurphy Avatar

    Thanks for talking the time to comment. Glad I could help.

  20. Taner Avatar
    Taner

    Thanks for the guidance. It worked nicely.

    Any idea what would be the command(s) to remove GUI support?

    Thanks in advance..

  21. jbmurphy Avatar

    I usually don’t remove the GUI, I just change the init state to 3. Actually I usually leave it at three and run startx when I need a GUI.

  22. Taner Avatar
    Taner

    Thanks..

  23. vicky Avatar
    vicky

    thanks

  24. Mike Avatar

    Very helpful for installing the Gnome desktop. I am an avid supporter of the CentOS project, so I need to install the basic server without the desktop. However, I am currently testing a restore of email and needed to add a desktop and Thunderbird.

    Thanks again!

  25. Thamizharasan P (India) Avatar
    Thamizharasan P (India)

    Its very helpful , Thanks a lot πŸ™‚

  26. Bhanu Avatar
    Bhanu

    Super ..Great help!!!!!!!!!!!!!!!!!Nice information ….

  27. […] about twice a year and I can never remember which packages are needed.Β  Jeffrey B. Murphy has a post that explains it simply, and I’ll repeat the simple yum command here: yum groupinstall […]

  28. Leydi Avatar

    Gracias por compartir!!… Muy util!… Justo lo que buscaba

  29. shuimuyq Avatar
    shuimuyq

    Thanks a lot!

  30. Andre Avatar
    Andre

    Thanks for the tip !
    Precise info!
    Cheers

  31. ali fraz Avatar
    ali fraz

    excellent post great work really appreciate

  32. Alan Avatar
    Alan

    Thanks! This helped.

  33. ismail Avatar
    ismail

    I installed centos 6.2 x86_64 minimal gnome and i want to switch to full gnome but don’t know how. Do you have any solution for this ?

  34. jbmurphy Avatar

    I hardly ever use a GUI, so I don’t know. Sorry.

  35. S V Prasad Avatar
    S V Prasad

    Hi,

    I installed centos 6.3 basic server on a Fujitsu Laptop lifebook T4215. I could not install using full install so i installed using basic Video driver. Later I downloaded drivers from Intel related to GM945 graphic processor hoping that it would take care of display issue. Then i added as explained in this thread gnome desktop and modified the /inittab file as well. The display just hangs and I tried CTL+ALT+F6 to switch to CLI mode but nothing happens. Looks like I have to reinstall again. Could any of you suggest how can I go back to command mode again with out reinstalling everything again. Any help would be greatly appreciated.

    Thanks in advance.
    S V Prasad

  36. jbmurphy Avatar

    If you hit Ctrl + Alt + F1, that should take you back to the text console. Log in, change your init state back to 3. Reboot. Then make sure your gnome session works with startx. Will that work? Not sure about the different drivers, but if it works with startx, it should work with init state 5. I think.

    Hope that helps.

  37. S V Prasad Avatar
    S V Prasad

    I tried hitting , (comma) as suggested by you but still I can see blank screen only. Am I missing something. When should I press the “comma key”. After I boot the system it lists windows or Centos. I select centos and booting process starts. I can see some colour bands wirh centos then everything goes blank and there is no way I could do anything after that. No key works. I have to only power down to start again. I am not clear when should i press the suggested key. Could you please bit more clear. Thanks for your help.

  38. jbmurphy Avatar

    Sorry, WordPress hid my “Ctrl + Alt + F1 “.

  39. jbmurphy Avatar

    And you hit Ctrl + Alt + F1 after the system is done booting and it goes blank. This should show you the console loggin, where you can login and change your init state back to 3. Then reboot.
    After that log in and try startx. This should allow you to troubleshoot X. Hope that helps.

  40. S V Prasad Avatar
    S V Prasad

    Thanks Murphy but unfortunately still it is not coming out. May be I have to reinstall everything again. I fear may be the display driver has some problem.

  41. jbmurphy Avatar

    Sorry I wasn’t able to help. I am sure you have re-installed by now, but the only other thing I could think fo was to ssh into the box from another machine and chage the initab back to 3 remotely.

  42. S V Prasad Avatar
    S V Prasad

    I did reinstall everything and updated video drivers. Now everything is working fine. Thanks for your support.

  43. […] λ‚΄μš©μ€ μ΄κ³³μ—μ„œ μ°Έμ‘°ν•˜μ˜€μŠ΅λ‹ˆλ‹€: http://www.jbmurphy.com/2011/12/01/how-to-add-gnome-to-centos-6-minimal-install/ […]

  44. chadunplugged Avatar
    chadunplugged

    Worked like a charm! GJDM

  45. jbmurphy Avatar

    Thanks for taking the time to comment. It always makes my day!

  46. marcelo Avatar
    marcelo

    Thanks a lot. Help me a lot.

  47. Ed Avatar
    Ed

    Thank-you * inifinity

  48. Cailin Coilleach Avatar

    Yup, helped me too πŸ™‚

    Throwing this into Evernote, so I will always have it handy. Thanks!

  49. Dan Avatar
    Dan

    Thank you very much. I was setting up VMware Fusion on my Mac and installed CentOS 6 minimal and then installed gnome-desktop and gdm but the login screen was just blocks or whatever those special characters are. Not sure which of the groupinstall was necessary, don’t care, it works.

    Thank you